notes/Extracting Foscam IP Camera Firmware.-NMYp5rfE.sh
#Get Firmware
wget "http://foscam.us/downloads/MJPEG%20indoor%20PT%20camera-11.22.2.51.zip"
unzip MJPEG\ indoor\ PT\ camera-11.22.2.51.zip
cd System\ firmware
binwalk -e lr_cmos_11_22_2_51.bin
mkdir mnt
sudo mount rom\ 514f2579.romfs mnt
ls mnt
sudo cp -pfr mnt/* rom/
sudo umount mnt
#Web UI
cd ../Web\ UI
#binwalk -e 2.4.10.5.bin #Does not work
#Instead, we do it manually
let x=0
binwalk 2.4.10.5.bin|awk '{print $1}'|grep "^[0-9]"|while read line;
do
echo $(($line-$x))
dd if=2.4.10.5.bin of=$RANDOM bs=1 skip=$x count=$(($line-$x))
let x=$line
done
file *
thunar
syntax highlighted by Code2HTML, v. 0.9.1