Advertisement
metalx1000

Extracting Foscam IP Camera Firmware.

Jan 19th, 2014
719
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.59 KB | None | 0 0
  1. #Get Firmware
  2. wget "http://foscam.us/downloads/MJPEG%20indoor%20PT%20camera-11.22.2.51.zip"
  3.  
  4. unzip MJPEG\ indoor\ PT\ camera-11.22.2.51.zip
  5. cd System\ firmware
  6. binwalk -e lr_cmos_11_22_2_51.bin
  7. mkdir mnt
  8. sudo mount rom\ 514f2579.romfs mnt
  9. ls mnt
  10. sudo cp -pfr mnt/* rom/
  11. sudo umount mnt
  12.  
  13. #Web UI
  14. cd ../Web\ UI
  15. #binwalk -e 2.4.10.5.bin #Does not work
  16. #Instead, we do it manually
  17.  
  18. let x=0
  19. binwalk 2.4.10.5.bin|awk '{print $1}'|grep "^[0-9]"|while read line;
  20. do
  21. echo $(($line-$x))
  22. dd if=2.4.10.5.bin of=$RANDOM bs=1 skip=$x count=$(($line-$x))
  23. let x=$line
  24. done
  25.  
  26. file *
  27.  
  28. thunar
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement