Skip to content

Instantly share code, notes, and snippets.

@phieber
Created July 15, 2013 19:24
Show Gist options
  • Save phieber/6002650 to your computer and use it in GitHub Desktop.
Save phieber/6002650 to your computer and use it in GitHub Desktop.
CVE-30360 WLan enable
#!/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