Skip to content

a python script for newly added certification @ south china university of technology

Notifications You must be signed in to change notification settings

iseekwonderful/DrCOM-Scut

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python版 scut drcom 认证

8月5日

更新udp认证 bug: 一次断开后,第二次链接有问题,可能是下线包发送有问题。 [Critical]: Server Reject Due to auth left in server, retry in few minutes 出现后下次断开重连即可

Scapy版客户端.

8月2日更新:

  1. 去除scapy依赖, 方便在openwrt上运行, 只需要安装python-simplepython-codec, 和 coreutils-nohup包(大小在2.7M左右,如果你的flash是4M的话需要外挂u盘).
  2. 修复keep-alive问题。在C14测试稳定

Warning:

  1. macOS 不支持 python 2.7 的raw socket, 请使用scapy_example.py
  2. 如果你的路由器的CPU是AR71XX或MT762X,请前往华工路由器群下载C版本,资源占用较Python版本较少,且有开发团队支撑
  3. Python版针对对认证过程感兴趣或路由器奇葩CPU的用户。

硬件配置:

Flash >= 8M 或 外挂U盘

安装配置:

  1. 安装openwrt到路由器
  2. 使用ssh登陆到openwrt(win下推荐putty, linux和osx直接ssh)
  3. 更新openwrt包管理器: opkg update
  4. 安装依赖项: opkg install python-simple, python-codec, coreutils-nohup. 如果是openwrt bb(14)及之前版本, 请安装python-mini, 即: opkg install, python-mini python-codec, coreutils-nohup(未测试)
  5. scp openwrt.py到路由器(以/root为例): scp openwrt.py root@router_ip_address:~/ 将router_ip_address改为你的路由器ip即可。
  6. 运行: python openwrt.py -u username -p password -i 接口
  7. 第6步测试通过后, 使用 nohup python openwrt.py -u username -p password -i 接口 & 后台运行。(在openwrt上接口一般是eth0.1或者eth0.2)

资源占用:

在NewWifi mini(MT7620, 128M RAM, 16M Flash)上: 6250 6196 root S 7956 6% 0% python openwrt.py

Python 客户端更新:https://github.com/iseekwonderful/DrCOM-Scut

  1. 去掉scapy依赖,只需要python-mini 和 python-codec
  2. 解决掉线问题 使用树莓派或cpu不支持的同学可以试下

About

a python script for newly added certification @ south china university of technology

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages