-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
简化方法 #1
Comments
有道理,直接模拟POST请求肯定更简单 当时是怕学校的接口会变 才用的操作浏览器的方法(不过好像接口也没变过) |
目前我这里似乎是可以的,Wireshark抓包后发现包含有认证内容的数据包只有这一个POST请求,在宿舍区以及教学区域都已经完成测试了,只要post就能通。~~我严重怀疑当年卖给学校这个认证端的公司是不是注销了~~-------- 原始邮件 --------发件人: arthurJHM ***@***.***>日期: 2021年12月26日周日 15:20收件人: arthurJHM/ECUSTNetWorkAutoReConnection ***@***.***>抄送: wuhaocheng29 ***@***.***>, Author ***@***.***>主 题: Re: [arthurJHM/ECUSTNetWorkAutoReConnection] 简化方法 (Issue #1)
校园网的认证方式其实相当简单如果你会用firefox抓包的话
打开firefox的F12监听请求,你会发现其中有一个POST包很有意思
POST http://172.20.13.100:804/include/auth_action.php HTTP/1.1
User-Agent: [本机UA]
Content-Type: application/x-www-form-urlencoded
Body: action=login&username=[学号]&password={B}[urlencoded(base64([yourpasswd]))]&ac_id=18&user_ip=&nas_ip=&user_mac=&ajax=1
想办法发出这个样子的请求返回字符串login.ok={Cookie}不用管Cookie通过ping百度即可检测是否断开
有道理,直接模拟POST请求肯定更简单 当时是怕学校的接口会变 才用的操作浏览器的方法(不过好像接口也没变过)
还有你可以试一下你说的这个方法 直接发这一个请求好像还不大行
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
是连的ECUST 这个wifi吧? 那之后我试试看 |
校园网的认证方式其实相当简单
如果你会用firefox抓包的话The text was updated successfully, but these errors were encountered: