drcom6.0D版 心跳包发送后认证服务器返回 This program can not be run in Dos mode
- Dominant language
- Python
- Stars
- 1.2k
- Forks
- 264
- PR merge metrics
- No merged PRs in 30d
Description
2023.9.7 晚上9点左右突然掉线,重启电脑后 使用原来的 python 脚本无法上网,使用drcom客户端后可以正常上网。
经过WireShark抓包进行比对后 发现 python 发送心跳包以后 认证服务器会返回一个 长度为 272的包 WireShark 中可以看到包内有明显的
This program can not be run in Dos mode 字样。
如图所示

**正常的DrCom客户端的心跳包不会有这样的提示 并且发现DrCom客户端发送的心跳包跟python脚本发送的心跳包内容有差别**
**python如图**

**DrCom如图**

**使用的配置**
server = '10.10.10.5'
username = '#'
password = '#'
CONTROLCHECKSTATUS = '\x20'
ADAPTERNUM = '\x08'
host_ip = '172.26.191.228'
IPDOG = '\x01'
host_name = 'fuyumi'
PRIMARY_DNS = '10.10.10.23'
dhcp_server = '10.10.10.173'
AUTH_VERSION = '\x2f\x00'
mac = 0x464151810000
host_os = 'Windows'
KEEP_ALIVE_VERSION = '\xdc\x02'
ror_version = True
**python脚本为**
[latest-wired.py](https://raw.githubusercontent.com/drcoms/generic/master/latest-wired.py)
**正常的DrCom客户端抓包文件**
[drcom](http://ruomoe.cc:8000/uploads/t.pcapng)
**不正常的Python脚本抓包文件**
[python](http://ruomoe.cc:8000/uploads/d2.pcapng)
**python脚本日志**
[log](http://ruomoe.cc:8000/uploads/drcom_client.log)
_ps: 不正常的抓包文件中 开头是不正常的 后边儿打开了drcom客户端 是正常的 忘记关闭抓包了 qaq_
Contributor guide
Assessment
This issue has not been assessed yet.