Last active
April 10, 2019 09:06
-
-
Save jahentao/618c94aa7c8663ad31d6e5a154a30a63 to your computer and use it in GitHub Desktop.
浙江大学(宁波校区)软件学院_上网验证 #Util
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
# 采用curl命令行方式 | |
# 我的用户名 21851075,密码 123456ABC | |
username=21851075 | |
password=123456ABC | |
pass1=$(echo -n $password | md5sum |cut -d ' ' -f1) | |
pass2=$(echo ${pass1:8:16}) | |
curl -H "Content-Type: application/x-www-form-urlencoded" \ | |
-b srun_login=$username%7C$password \ | |
-A "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36" \ | |
-d "username=$username&password=$pass2&drop=0&type=1&n=100" \ | |
http://192.0.0.6/cgi-bin/do_login |
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
# 采用curl命令行方式 | |
# 我的用户名 21851075,密码 123456ABC | |
username=21851075 | |
password=123456ABC | |
curl -H "Content-Type: application/x-www-form-urlencoded" \ | |
-b srun_login=$username%7C$password \ | |
-A "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36" \ | |
-d "username=$username&password=$password&drop=0&type=1&n=1" \ | |
http://192.0.0.6/cgi-bin/force_logout |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment