1. 联网的API模板
1 2 3 4 5
| IP=<xx.xx.xx.xx> USER=<account name> PASSWD=<your password>
curl --location --request GET 'http://202.113.18.106:801/eportal/?c=ACSetting&a=Login&loginMethod=1&protocol=http%3A&hostname=202.113.18.106&port=&iTermType=1&wlanuserip='$IP'&wlanacip=null&wlanacname=null&redirect=null&session=null&vlanid=0&mac=00-00-00-00-00-00&ip='$IP'&enAdvert=0&jsVersion=2.4.3&DDDDD='$USER'&upass='$PASSWD'&R1=0&R2=0&R3=0&R6=0¶=00&0MKKey=123456&buttonClicked=&redirect_url=&err_flag=&username=&password=&user=&cmd=&Login=' --header 'Connection: keep-alive' --header 'Upgrade-Insecure-Requests: 1' --header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.128 Safari/537.36' --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9' --header 'Referer: http://202.113.18.106/' --header 'Accept-Language: zh,en-US;q=0.9,en;q=0.8' --header 'Cookie: PHPSESSID=ovt8a9cipcg3qvs1iru5imn6q4; SL_GWPT_Show_Hide_tmp=1; SL_G_WPT_TO=en; SL_wptGlobTipTmp=1'
|
2. 注销网关的API
1 2 3 4 5 6 7 8 9 10 11
| curl 'http://202.113.18.106:801/eportal/?c=ACSetting&a=Logout&loginMethod=1&runRadius=1&DDDDD=&protocol=http%3A&hostname=202.113.18.106&port=&iTermType=1&wlanuserip=null&wlanacip=null&wlanacname=null&redirect=null&session=null&vlanid=undefined&mac=00-00-00-00-00-00&ip=&queryACIP=0&jsVersion=2.4.3' \ -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9' \ -H 'Accept-Language: zh,en-US;q=0.9,en;q=0.8,zh-CN;q=0.7' \ -H 'Cookie: PHPSESSID=nao32p0q126vq9se8up9ioh2s0' \ -H 'DNT: 1' \ -H 'Proxy-Connection: keep-alive' \ -H 'Referer: http://202.113.18.106/' \ -H 'Upgrade-Insecure-Requests: 1' \ -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36' \ --compressed \ --insecure
|
3. 其他途径:
如果本机无curl也无网络无法安装,推荐使用clash的局域网代理功能,在命令行设置代理后,先安装好net-tools然后继续:
1 2
| export http_proxy=<xx.xx.xx.xx>:<port> export https_proxy=<xx.xx.xx.xx>:<port>
|
当命令行设置代理之后,该终端可以通过代理将请求发在代理主机上,然后间接上网(局域网内可直接通信~), 当然这样描述不是很清楚,可以直接问我,演示一遍就直接会了~
4. 南开的DNS服务器:
- 202.113.16.41
- 222.30.45.41