Created
July 15, 2013 19:24
-
-
Save phieber/6002650 to your computer and use it in GitHub Desktop.
CVE-30360 WLan enable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
HOST=192.168.0.1 | |
USER=admin | |
PASS=password | |
curl --cookie-jar cookies.txt http://${HOST}/login.asp -s | |
curl --cookie cookies.txt --cookie-jar cookies.txt --data "user=${USER}&pws=${PASS}" http://${HOST}/goform/login -s | |
curl --cookie cookies.txt --cookie-jar cookies.txt --data "dir=admin/&WFReset=Wifi%%20Factory%%20Reset%%20&file=wireless" http://${HOST}/goform/Wls -s | |
curl --cookie cookies.txt http://${HOST}/goform/logout -s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment