Last active
October 7, 2015 04:17
-
-
Save hupili/3104041 to your computer and use it in GitHub Desktop.
login and logout scripts of fduwireless
This file contains 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 | |
# 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 |
This file contains 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 | |
wget --post-data="userStatus=1&err_flag=0&err_msg=" http://1.1.1.1/logout.html -O logout.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hope other FDU users can also benefit from it.