Skip to content
This repository was archived by the owner on Feb 9, 2024. It is now read-only.

Commit 436fbf0

Browse files
committed
Emergency update on https.
1 parent 896cc7d commit 436fbf0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ipgw.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ requireuinfo()
4444
disconnect()
4545
{
4646
requireuinfo
47-
LOGOUT=`curl -s -d "action=logout&ac_id=1&user_ip=&nas_ip=&user_mac=&url=&username=$USER_NAME&password=$USER_PASS&save_me=0" "http://ipgw.neu.edu.cn:"${p}"/srun_portal_pc.php?ac_id=1&" 2>&1`
47+
LOGOUT=`curl -s -d "action=logout&ac_id=1&user_ip=&nas_ip=&user_mac=&url=&username=$USER_NAME&password=$USER_PASS&save_me=0" "https://ipgw.neu.edu.cn/srun_portal_pc.php?ac_id=1&" 2>&1`
4848
if [[ "$LOGOUT" =~ "网络已断开" ]];
4949
then
5050
echo "断开连接成功!"
@@ -57,7 +57,7 @@ disconnect()
5757
connectasphone()
5858
{
5959
requireuinfo
60-
LOGIN=`curl -H "Content-type: application/x-www-form-urlencoded" -A "Mozilla/5.0 (iPhone; CPU iPhone OS 8_0_2 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12A366 Safari/600.1.4" -s -d "action=login&ac_id=1&user_ip=&nas_ip=&user_mac=&url=&username=$USER_NAME&password=$USER_PASS&save_me=0" "http://ipgw.neu.edu.cn:"${p}"/srun_portal_pc.php?ac_id=1&" 2>&1`
60+
LOGIN=`curl -H "Content-type: application/x-www-form-urlencoded" -A "Mozilla/5.0 (iPhone; CPU iPhone OS 8_0_2 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12A366 Safari/600.1.4" -s -d "action=login&ac_id=1&user_ip=&nas_ip=&user_mac=&url=&username=$USER_NAME&password=$USER_PASS&save_me=0" "https://ipgw.neu.edu.cn/srun_portal_pc.php?ac_id=1&" 2>&1`
6161
if [[ "$LOGIN" =~ "网络已连接" ]];
6262
then
6363
echo "网络连接成功!"
@@ -71,7 +71,7 @@ connectasphone()
7171
connect()
7272
{
7373
requireuinfo
74-
LOGIN=`curl -H "Content-type: application/x-www-form-urlencoded" -A "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36" -s -d "action=login&ac_id=1&user_ip=&nas_ip=&user_mac=&url=&username=$USER_NAME&password=$USER_PASS&save_me=0" "http://ipgw.neu.edu.cn:"${p}"/srun_portal_pc.php?ac_id=1&" 2>&1`
74+
LOGIN=`curl -H "Content-type: application/x-www-form-urlencoded" -A "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36" -s -d "action=login&ac_id=1&user_ip=&nas_ip=&user_mac=&url=&username=$USER_NAME&password=$USER_PASS&save_me=0" "https://ipgw.neu.edu.cn/srun_portal_pc.php?ac_id=1&" 2>&1`
7575
if [[ "$LOGIN" =~ "网络已连接" ]];
7676
then
7777
echo "网络连接成功!"
@@ -84,7 +84,7 @@ connect()
8484
}
8585
query()
8686
{
87-
INFO=`curl -s -d "action=get_online_info&key=$k" "http://ipgw.neu.edu.cn:"${p}"/include/auth_action.php?k=$k" 2>&1`
87+
INFO=`curl -s -d "action=get_online_info&key=$k" "https://ipgw.neu.edu.cn/include/auth_action.php?k=$k" 2>&1`
8888
#echo $k;
8989
#echo $INFO;
9090
DATA=${INFO%%,*}
@@ -169,7 +169,7 @@ done
169169

170170

171171
k=$RANDOM
172-
p=$(($RANDOM % 4 + 801))
172+
#p=$(($RANDOM % 4 + 801))
173173

174174
if [[ $OPT_CONNECT = true ]] || [ ! -n "$OPT_DISCONNECT" ];
175175
then

0 commit comments

Comments
 (0)