Loading docs/service/network/README.md +2 −2 Changes for docs/service/network/README.md: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -38,7 +38,7 @@ sidebar: auto #!/bin/bash source /etc/profile set -e curl https://cas.sustc.edu.cn/cas/login?service=http%3A%2F%2F172.16.16.20%3A803%2Fsustc_cas.php > a.txt curl https://cas.sustech.edu.cn/cas/login?service=http%3A%2F%2F172.16.16.20%3A803%2Fsustc_cas.php > a.txt s=$(grep -o -E "on\"\ value=\"(.+?)\"" a.txt) echo $s s=${s#*\"} Loading @@ -47,7 +47,7 @@ s=${s%%\"*} echo $s unm=此处填入教/学工号 pwd=此处填入密码 curl "https://cas.sustc.edu.cn/cas/login?service=http%3A%2F%2F172.16.16.20%3A803%2Fsustc_cas.php" --data "username=$unm&password=$pwd&execution=$s&_eventId=submit&geolocation=" curl "https://cas.sustech.edu.cn/cas/login?service=http%3A%2F%2F172.16.16.20%3A803%2Fsustc_cas.php" --data "username=$unm&password=$pwd&execution=$s&_eventId=submit&geolocation=" ``` [给路由器写了一个登录南科大校园网的脚本](https://www.whexy.com/post/openwrt-zhi-jie-jue-nan-ke-da-xiao-yuan-wang-deng-lu-nan-ti/) Loading Loading
docs/service/network/README.md +2 −2 Changes for docs/service/network/README.md: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -38,7 +38,7 @@ sidebar: auto #!/bin/bash source /etc/profile set -e curl https://cas.sustc.edu.cn/cas/login?service=http%3A%2F%2F172.16.16.20%3A803%2Fsustc_cas.php > a.txt curl https://cas.sustech.edu.cn/cas/login?service=http%3A%2F%2F172.16.16.20%3A803%2Fsustc_cas.php > a.txt s=$(grep -o -E "on\"\ value=\"(.+?)\"" a.txt) echo $s s=${s#*\"} Loading @@ -47,7 +47,7 @@ s=${s%%\"*} echo $s unm=此处填入教/学工号 pwd=此处填入密码 curl "https://cas.sustc.edu.cn/cas/login?service=http%3A%2F%2F172.16.16.20%3A803%2Fsustc_cas.php" --data "username=$unm&password=$pwd&execution=$s&_eventId=submit&geolocation=" curl "https://cas.sustech.edu.cn/cas/login?service=http%3A%2F%2F172.16.16.20%3A803%2Fsustc_cas.php" --data "username=$unm&password=$pwd&execution=$s&_eventId=submit&geolocation=" ``` [给路由器写了一个登录南科大校园网的脚本](https://www.whexy.com/post/openwrt-zhi-jie-jue-nan-ke-da-xiao-yuan-wang-deng-lu-nan-ti/) Loading