Skip to content

Commit 1be962e

Browse files
committed
feat: 获取 ZXHN F4600T 光猫超级管理密码(抓包)
1 parent 1848bb5 commit 1be962e

138 files changed

Lines changed: 1252 additions & 556 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
---
2+
title: "获取 ZXHN F4600T 光猫超级管理密码(抓包)"
3+
date: 2023-08-11T23:03:29+08:00
4+
draft: false
5+
---
6+
7+
## 准备
8+
9+
- 抓包工具 - whistle
10+
- 小翼管家手机 app
11+
12+
## 原理
13+
14+
利用小翼管家的远程控制路由器的功能,通过开关网关上设置进行触发网络请求,该请求会发送到小翼管家的内部的服务器,然后服务器进行对应的设备的指令的下发。
15+
16+
主要是获取该接口相关的请求中的认证信息,具体是什么认证信息我们不用追究。只需要篡改其请求的请求参数,将参数改为获取光猫的超级密码即可。
17+
18+
请求参数:
19+
20+
```json
21+
{
22+
"Params": [],
23+
"MethodName": "GetTAPasswd",
24+
"RPCMethod": "CallMethod",
25+
"ObjectPath": "/com/ctc/igd1/Telecom/System",
26+
"InterfaceName": "com.ctc.igd1.SysCmd",
27+
"ServiceName": "com.ctc.igd1"
28+
}
29+
```
30+
31+
## 过程
32+
33+
由于 `whistle` 是一个 `npm` 的包, 所以请提前准备 `npm` 环境。
34+
通过 `npm install -g whistle` 进行安装,安装完毕后使用 `w2 start` 进行启动。
35+
36+
![whistle启动](./whistle-start.png "whistle启动")
37+
38+
接下来我们可以通过其中返回的地址在浏览器进行访问,可见如下界面:
39+
40+
![whistle网络](./whistle-network.png "whistle网络")
41+
42+
首先配置 `https` 的启用,否则到时候抓到的连接的数据里面没有办法查看请求参数,也就没有办法进行篡改。
43+
44+
![whistle https](./whistle-https-1.png "whistel https 入口")
45+
46+
{{< style "width: 50%;margin:0 auto;" >}}
47+
![whistle https](./whistle-https-2.png "whistel https 配置项")
48+
{{< /style >}}
49+
50+
### 手机网络设置
51+
52+
将手机连入与电脑同一网络的局域网中,然后打开网络设置,找到代理设置。这里以 `iPhone` 进行举例:
53+
54+
{{< mermaid >}}
55+
graph TB;
56+
A[WiFi] --> B[已连接电脑热点的详情]
57+
B --> C[ HTTP 代理 ]
58+
C --> D[ 手动 ]
59+
D --> E[ 服务器 填写电脑的局域网 IP 地址 ]
60+
E --> F[ 端口 填写 whistle 所提供的端口 8899 ]
61+
{{< /mermaid >}}
62+
63+
默认情况下 `whistle` 是已经在进行数据的监听,如果未进行监听数据则可以打开 `Network` 下的 `Record` 开关,使其打开监听,如果太多杂乱的数据可以先进行点击 `Clear` 进行清除。
64+
65+
设置完成过后就可以打开手机上的小翼管家, 进行触发接口调用的操作
66+
67+
确保能够正确进入到网关的设置界面,先断开 WiFi 使用移动流量进行访问, 然后找到自己的网关详情,点击网关设置按钮进入设置页面。
68+
69+
这时候我们连接我们的 WiFi ,等待 WiFi 成功连接后,点击指示灯的切换。
70+
71+
就可以在 `whistle` 中查看到捕获到的接口请求数据:
72+
73+
![whistle data](./whistle-get-data.png "获取到的数据")
74+
75+
其中 `Host``nos9.189.cube.com` 则是我们想要的接口请求。
76+
77+
### 重发请求
78+
79+
首先我们进行编辑该请求,将其中的 body 参数改为本文提供的参数
80+
81+
![whistle edit](./whistle-edit.png "编辑请求")
82+
83+
将 body 参数进行如下替换后,点击右上角的蓝色纸飞机按钮进行发送请求。
84+
85+
![whistle body](./whistle-body.png "编辑body参数并且发送")
86+
87+
其中在 `Response` 中的 `Body` 中的内容则包含你的网关的超级密码,不同地区可能有些许不同。
88+
成都地区的密码在 `Params` 字段的 数组的第一个字符串。
89+
90+
![whistle result](./whistle-result.png "接口请求结果")
91+
92+
## 总结
93+
94+
成功获取密码后则可以通过 `网关地址:8080`进行访问管理页面,输入帐号`telecomadmin`,使用上面获取到的密码即可登录。
95+
96+
`whistle` 是一个非常棒的库,对于`IOS`端的抓包非常方便,并且该软件是免费且跨平台的,只要有`node`环境的都可以使用。
97+
98+
{{< admonition type=info title="参考" >}}
99+
100+
- [电信光猫抓包获取超级密码](https://blog.wenfxl.com/w-f-x-l-20221022-ty-centos-7x.html)
101+
102+
{{< /admonition >}}
167 KB
Loading
187 KB
Loading
77.9 KB
Loading
40.5 KB
Loading
57.4 KB
Loading
39.9 KB
Loading
72.8 KB
Loading
7.88 KB
Loading

docs/404.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
<meta property="og:description" content="Keep Focus!" />
99
<meta property="og:type" content="website" />
1010
<meta property="og:url" content="https://liaobinbin.com/404.html" /><meta property="og:site_name" content="Boiao Ch" />
11-
1211
<meta name="twitter:card" content="summary"/>
1312
<meta name="twitter:title" content="404 Page not found"/>
1413
<meta name="twitter:description" content="Keep Focus!"/>
@@ -91,7 +90,7 @@ <h1 id="error-emoji"></h1>
9190
})();
9291
</script></div>
9392
</main><footer class="footer">
94-
<div class="footer-container"><div class="footer-line"><a href="https://gohugo.io/" target="_blank" rel="noopener noreffer" title="Hugo 0.92.2">Hugo</a> 强力驱动 | 主题 - <a href="https://github.com/dillonzq/LoveIt" target="_blank" rel="noopener noreffer" title="LoveIt 0.2.11"><i class="far fa-kiss-wink-heart fa-fw" aria-hidden="true"></i> LoveIt</a>
93+
<div class="footer-container"><div class="footer-line"><a href="https://gohugo.io/" target="_blank" rel="noopener noreffer" title="Hugo 0.115.2">Hugo</a> 强力驱动 | 主题 - <a href="https://github.com/dillonzq/LoveIt" target="_blank" rel="noopener noreffer" title="LoveIt 0.2.11"><i class="far fa-kiss-wink-heart fa-fw" aria-hidden="true"></i> LoveIt</a>
9594
</div><div class="footer-line" itemscope itemtype="http://schema.org/CreativeWork"><i class="far fa-copyright fa-fw" aria-hidden="true"></i><span itemprop="copyrightYear">2008 - 2023</span></div>
9695
</div>
9796
</footer></div>

0 commit comments

Comments
 (0)