bmork / defogger

D-Link DCS-8000LH usage info and defogging tools
263 stars 37 forks source link

Is this Applicable to DSC-P6000LH? #11

Open AmmarkoV opened 4 years ago

AmmarkoV commented 4 years ago

Hello..! I have two DSC-P6000LH cameras, running firmware 1.03.03. Any idea on the procedure to enable rtsp ? Will it be the same with the 8000 model?

bodforss commented 4 years ago

i to have two DSC-P6000LH cameras, on firmware 1.02.00 and have the same question. @AmmarkoV, did you get lucky?

jardarn commented 4 years ago

I managed to get rtsp working on the P6000LH, but only after flashing it with the 8000LH firmware from the console. I'm not shure but i think they are pretty much the same hardware wise.

bodforss commented 4 years ago

Ok, neat. from console you say, is that serial console or is there a BLE-console option when running defogger? which 8000LH firmware did you use? i will give this a shot as soon as i have the courage ;), later tonight or tomorrow maybe..

jardarn commented 4 years ago

serial console. The only thing working prior to flashing was setting up wifi with dcs8000lh-configure.py. Using the console i tftp'ed the DCS-8000LH_Ax_v2.02.02_3014.bin file to /tmp and used "/sbin/fw_upgrade forceUpdate DCS-8000LH_Ax_v2.02.02_3014.bin" to flash. Worked for me but may not work for you. :)

bodforss commented 4 years ago

i didnt manage to forceUpgrade the firmware like you did, but i managed to edit the opt.local by copying the flash partitions via tftp and back :) now i have rtsp-stream :) next step is to get the camera up n running with homebridge-camera-ffmpeg. and maybe to retain myDlink functionality for compatibility ;)

jardarn commented 4 years ago

Great that you found a solution! I couldn't overwrite the mtd2 partition before after i flashed. Maybe because i was on original firmware version 1.03.00. I use it with zoneminder, h264 and the url /video/flv.cgi.

jokker87 commented 3 years ago

@bmork many, many thanks for your research.

I managed to downgrade my DCS-P6000LH (HW-Revision A1) from the latest FW 1.04.01 to 1.02.00 with the help of a USB-to-TTL-Adapter. Just connect the camera as @bmork describes and enter "alpha136" at the uboot prompt. Start the web-server and send the original FW 1.02.00 (https://tsd.dlink.com.tw/) for P6000 to the update cgi. This downgrades the FW to the last vulnerable version (command-injection) and you're able to use defogger.

I didn't have the balls to update the userdata-partition. Need to understand more clearly what is happening there and if i'm confident enough, i will try it.

Is anybody familiar on how it would be possible to get mjpeg-streaming working on the cam?

OmegaLeWolf commented 1 month ago

I managed to downgrade my DCS-P6000LH (HW-Revision A1) from the latest FW 1.04.01 to 1.02.00 with the help of a USB-to-TTL-Adapter. Just connect the camera as @bmork describes and enter "alpha136" at the uboot prompt. Start the web-server and send the original FW 1.02.00 (https://tsd.dlink.com.tw/) for P6000 to the update cgi. This downgrades the FW to the last vulnerable version (command-injection) and you're able to use defogger.

Sorry about the bump, how did you manage to build the firmware? The primary server that it connects to to download tools is down and the backup doesn't have the file it needs. Was it still up at the time? Thanks :D