Advertisement
metalx1000

Smart Plug ssh Access

May 7th, 2015
1,419
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.63 KB | None | 0 0
  1. #Kankun Smart Plug
  2. #http://www.amazon.com/Intelligent-Smart-Wireless-Android-Smartphone/dp/B00MWR6ZY4/ref=sr_1_7?ie=UTF8&qid=1431015855&sr=8-7&keywords=smart+plug
  3.  
  4. ifconfig -a
  5. sudo ifconfig wlan0 up
  6. ifconfig -a
  7.  
  8. sudo iwlist wlan0 scan
  9. sudo iwconfig wlan0 essid 0K_SP3
  10. sudo dhclient wlan0
  11. ifconfig wlan0
  12.  
  13. sudo arp-scan -l -I wlan0
  14. nmap 192.168.10.253
  15.  
  16. google-chrome 192.168.10.253
  17. ssh root@192.168.10.253 #password is one of these: admin, 1234, or p9z34c
  18. passwd
  19.  
  20. #turn power off #on by default
  21. echo 0 > /sys/class/leds/tp-link:blue:relay/brightness
  22.  
  23. #turn power on
  24. echo 1 > /sys/class/leds/tp-link:blue:relay/brightness
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement