Skip to content

Instantly share code, notes, and snippets.

@hupili
Last active October 7, 2015 04:17
Show Gist options
  • Save hupili/3104041 to your computer and use it in GitHub Desktop.
Save hupili/3104041 to your computer and use it in GitHub Desktop.
login and logout scripts of fduwireless
#!/bin/bash
# fill in your username and password before
# invoking this script
post="buttonClicked=4&redirect_url=www.baidu.com%2F&err_flag=0&username=<<username>>&password=<<password>>"
wget --post-data "$post" http://1.1.1.1/login.html -O baidu.html
#!/bin/bash
wget --post-data="userStatus=1&err_flag=0&err_msg=" http://1.1.1.1/logout.html -O logout.html
@hupili
Copy link
Author

hupili commented Jul 13, 2012

Save them to login.sh and logout.sh separately and fill in login information. Enjoy it~ Then we do not need to open browser everytime~~~~~~ I will login 4 times a day. This can save me 4 minutes per day.

@hupili
Copy link
Author

hupili commented Jul 13, 2012

Hope other FDU users can also benefit from it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment