drcoms / drcoms/drcom-generic

drcom6.0D版 心跳包发送后认证服务器返回 This program can not be run in Dos mode

Open
#383 0 comments 0 reactions 0 assignees View on GitHub
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 字样。

如图所示
![图片](https://github.com/drcoms/drcom-generic/assets/16109205/2f824e23-2ea2-4a0b-9cf6-28310aee9c67)

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

![图片](https://github.com/drcoms/drcom-generic/assets/16109205/dccc02c8-86fa-4cc3-b040-52860c6fcb0a)

**DrCom如图**
![图片](https://github.com/drcoms/drcom-generic/assets/16109205/b85ade30-2c45-44a3-8bde-5647ffea301f)

**使用的配置**
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.