Advertisement
metalx1000

wansview IPCAM telnet busybox install

May 16th, 2015
3,569
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.80 KB | None | 0 0
  1. #http://alexkaskasoli.com/wansview.pdf  <-- notes
  2. #wansview IPCAM telnet firmware 51.3.0.152
  3. #user: root
  4. #password: 123456
  5.  
  6. #get full version of busybox
  7. #download to desktop mipsel version
  8. wget "http://www.busybox.net/downloads/binaries/latest/busybox-mipsel" -O busybox
  9.  
  10. #now on the camera itself connect to your desktop and get the file
  11. #note that there is very limited space on this device,
  12. #but you can put the binary of busybox in "/tmp"
  13. #it's running in RAM, so will be lost on reboot of camera :(
  14. cd /tmp
  15. /system/system/bin/ftp <desktop ip>
  16.  
  17. #once you download the file, make sure it's executable and then run it
  18. chmod 777 busybox
  19. ./busybox
  20.  
  21. #now you can use DD and NetCat in busybox to image partitions
  22. #mtdblock6 device is the main fs # use mount to figure this out
  23. #on camera
  24. ./busybox nc -l -p 60000 < /dev/mtdblock6
  25.  
  26. #on desktop
  27. nc <camera IP> 60000 > system.img
  28.  
  29. #note that Netcat does not disconnect when done
  30. #watch file and when it stops growing it's done
  31. #in this case it's 3MB
  32.  
  33. #this image is a jffs2 file, which I can't seem to mount or extract directly
  34. #but, you can create a partition and mount it from there
  35. sudo modprobe mtdram total_size=32768 erase_size=256
  36. sudo modprobe mtdblock
  37. #modprobe mtdchar
  38. sudo mknod /dev/mtdblock2 b 31 0
  39. sudo dd if=system.img of=/dev/mtdblock2
  40. mkdir mnt
  41. sudo mount -t jffs2 /dev/mtdblock2 mnt/
  42.  
  43.  
  44. #ssh server
  45. cd /tmp
  46. /tmp/busybox wget "http://landley.net/aboriginal/downloads/binaries/extras/dropbearmulti-mipsel" -O dropbearmulti
  47. chmod +x dropbearmulti
  48. ln -s dropbearmulti dropbearkey
  49. ln -s dropbearmulti dbclient
  50. ln -s dropbearmulti dropbear
  51. mkdir /etc/dropbear
  52. cd /etc/dropbear
  53. /tmp/dropbearkey -t rsa -f dropbear_rsa_host_key
  54. /tmp/dropbearkey -t dss -f dropbear_dss_host_key
  55. /tmp/dropbear start
  56. #/tmp/dropbear dropbear -i
  57. #have fun
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement