I bought a new Gen 3 camera to replace a bad Gen 1 camera so I needed to cut off the USB and put on a female RJ45
I opened both cameras to verify pin layout since colors were different. Below are pictures of the Gen 3 camera inside and the female RJ45 I mated it to.
I bought a RJ45 jack from Menards, the camera wires are very thin so I needed to strip them longer, fold them in half and put a thin solder coat on them. I was then able to press them into the RJ45 block, snap the cover on. and coat the whole thing with liquid tape (a rubberized paint)
From Camera to Female RJ45
Green wire to RJ45 Pin1
Brown wire to RJ45 Pin2
Blue wire to RJ45 Pin3
White wire to RJ45 Pin6