Last active
October 8, 2015 01:48
-
-
Save hupili/3258159 to your computer and use it in GitHub Desktop.
CUHK Wireless Portal Login Scripts
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 | |
login_url="https://securelogin.wlan.cuhk.edu.hk/cgi-bin/login" | |
post_data="user=<username>&password=<password>&cmd=authenticate&Login=Log+In" | |
mkdir -p tmp | |
wget --secure-protocol=sslv3 $login_url --post-data="$post_data" -O tmp/login.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 | |
logout_url="https://securelogin.wlan.cuhk.edu.hk/auth/logout.html?logout=Logout" | |
mkdir -p tmp | |
wget --secure-protocol=sslv3 --tries=1 --timeout=5 $logout_url -O tmp/logout.html |
Substitute the following and with corresponding information.
<username>
<password>
We recently had this error: routines:SSL23_GET_SERVER_HELLO:reason(1112)
.
See a related post, http://carnivore.it/2011/10/07/error_14077458_ssl_routines_ssl23_get_server_hello_reason_1112
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Substitute and with corresponding information.