获取登陆报文
惠尔顿 web登录, wireshark 抓包分析过程
可以看到 HTTP POST 中 有用户名 密码 等关键信息.
方法1
需要 netcat 命令
把报文中的 HTTP POST 完整数据, 保存下载, 另存为 auth.http
登陆测试
1 |
|
测试网络连通
使用 DNS 或者 ICMP协议不能测试出真实的网络互连状态,
惠尔顿上网行为管理器会拦截 TCP/UDP的传输.1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26root@localhost:~# curl -vvv baidu.com
* Rebuilt URL to: baidu.com/
* Trying 220.181.38.148...
* Connected to baidu.com (220.181.38.148) port 80 (#0)
> GET / HTTP/1.1
> Host: baidu.com
> User-Agent: curl/7.47.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Tue, 22 Jun 2021 02:44:22 GMT
< Server: Apache
< Last-Modified: Tue, 12 Jan 2010 13:48:00 GMT
< ETag: "51-47cf7e6ee8400"
< Accept-Ranges: bytes
< Content-Length: 81
< Cache-Control: max-age=86400
< Expires: Wed, 23 Jun 2021 02:44:22 GMT
< Connection: Keep-Alive
< Content-Type: text/html
<
<html>
<meta http-equiv="refresh" content="0;url=http://www.baidu.com/">
</html>
* Connection #0 to host baidu.com left intact
root@localhost:~#
开机自启
1 |
|
间隔登陆 保持心跳
1 |
|
每间隔N分钟, 与上网行为管理器 保持心跳连接.
验证
1 |
|
方法2
在没有 curl, 没有 netcat的情境下1
2
3
4
5认证
wget --post-data "param[UserName]=XXX¶m[UserPswd]=XXX&uri=id=&url=&user=&mac=&force=0" "http://10.100.100.3/user-login-auth?id=&url=&user=&mac=" -O /dev/null
测试
wget http://www.baidu.com/
完美 !!!