77 lines
1.3 KiB
Plaintext
77 lines
1.3 KiB
Plaintext
# ip地址
|
|
|
|
## dnake的设备信息
|
|
|
|
连接 `192.168.3.1` 查看 设备的ip地址信息
|
|
|
|
### 家庭内网网卡 192.168.3.3
|
|
```sh
|
|
# 开放 5555 端口
|
|
|
|
adb tcpip 5555
|
|
|
|
# 链接地址dnake
|
|
adb connect 192.168.3.3:5555
|
|
|
|
# 断开dnake
|
|
adb disconnect 192.168.3.3:5555
|
|
|
|
# 查看链接状态
|
|
adb devices
|
|
|
|
# 进入shell
|
|
adb shell
|
|
|
|
# 上传文件
|
|
adb push local_path remote_path
|
|
|
|
# 下载文件
|
|
adb pull remote_path local_path
|
|
```
|
|
|
|
#### 抓包和调试
|
|
|
|
```sh
|
|
# 抓包
|
|
adb shell tcpdump -i any -s 0 -w /sdcard/dnake.pcap
|
|
# 下载抓包文件
|
|
adb pull /sdcard/dnake.pcap .
|
|
# 使用 Wireshark 打开 dnake.pcap 进行分析
|
|
|
|
# 抓包只抓目的地址为
|
|
adb shell tcpdump -i any -s 0 -w /sdcard/remote.pcap dst 192.168.9.4
|
|
|
|
|
|
```
|
|
|
|
## dnake 楼道内网网卡 192.168.9.57
|
|
|
|
## danke 楼道内网网关 192.168.9.1
|
|
|
|
## dnake 楼道电梯管理地址 192.168.9.4
|
|
|
|
dnake程序的端口 5060
|
|
|
|
密码一般是 123456
|
|
|
|
### 终端跳转到楼道管理
|
|
```sh
|
|
# 连接家庭内网网卡
|
|
adb connect 192.168.3.3:5555
|
|
|
|
adb shell
|
|
|
|
adb kill-server
|
|
adb start-server
|
|
|
|
# 从家庭内网跳转到楼道内网
|
|
adb connect 192.168.9.4:5555
|
|
adb disconnect 192.168.9.4:5555
|
|
|
|
# 指定连接到具体设备的shell
|
|
adb -s 192.168.9.4:5555 shell
|
|
```
|
|
|
|
### 管理的admin界面 8080
|
|
|
|
网页访问 http://192.168.9.57:8080 |