Yohoa / Network-Nuaa-by-Raf

Login in nuaa.portal WLAN with CLI tools.
3 stars 1 forks source link

验证页改版了,接入了统一身份认证 #5

Open splendidmata opened 5 years ago

splendidmata commented 5 years ago

要重新抓取curl了

Yohoa commented 4 years ago

抓了一下新的request,大概是这样子:

登录的请求

就是一个很简单的GET Request

curl 'http://211.65.106.6:801/eportal/?c=Portal&a=login&callback=dr1003&login_method=1&user_account=%2C1%2C{你的学号}&user_password={你的密码}&wlan_user_ip=172.31.206.180&wlan_user_ipv6=&wlan_user_mac=000000000000&wlan_ac_ip=&wlan_ac_name=JiangNing_ME60&jsVersion=3.3.2&v=6226' -H 'Host: 211.65.106.6:801' -H 'Accept: */*' -H 'Connection: keep-alive' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Safari/605.1.15' -H 'Accept-Language: en-us' -H 'Referer: http://211.65.106.6/a79.htm?url=http://ftp.nuaa.edu.cn/&Ftype=31&submit.x=35&submit.y=2&wlanuserip=172.31.206.180&wlanacname=JiangNing_ME60' -H 'Accept-Encoding: gzip, deflate' --compressed

注销的请求

curl 'http://211.65.106.6:801/eportal/?c=Portal&a=logout&callback=dr1003&login_method=1&user_account=drcom&user_password=123&ac_logout=0&register_mode=1&wlan_user_ip=172.31.206.180&wlan_user_ipv6=&wlan_vlan_id=0&wlan_user_mac=000000000000&wlan_ac_ip=&wlan_ac_name=JiangNing_ME60fjsVersion=3.3.2&v=4608' -H 'Host: 211.65.106.6:801' -H 'Accept: */*' -H 'Connection: keep-alive' -H 'Cookie: PHPSESSID=et7tn0ft0inppb9mvolmdmgkv1' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Safari/605.1.15' -H 'Accept-Language: en-us' -H 'Referer: http://211.65.106.6/a79.htm?url=http://ftp.nuaa.edu.cn/&Ftype=31&submit.x=35&submit.y=2&wlanuserip=172.31.206.180&wlanacname=JiangNing_ME60' -H 'Accept-Encoding: gzip, deflate' --compressed

看起来是dr.com相关的平台

splendidmata commented 4 years ago

感觉比之前那个还简单一些