Skip to content

Instantly share code, notes, and snippets.

@jstepien
Created Mar 29, 2010
Embed
What would you like to do?
An automatic authentication for pwwifi's Cisco access points.
#!/bin/sh
die() {
echo "Fail" 1>&2
exit 1
}
user=123456
pass=allyourbasearebelongtous
url="https://1.1.1.1/login.html?buttonClicked=4&err_flag=0&err_msg=&info_flag=0&info_msg=&password=$pass&redirect_url=&username=$user"
curl --insecure -s -o /dev/null "$url" || die
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment