drcoms / drcom-generic Goto Github PK
View Code? Open in Web Editor NEWDr.COM/DrCOM 现已覆盖 d p x三版。
License: GNU Affero General Public License v3.0
Dr.COM/DrCOM 现已覆盖 d p x三版。
License: GNU Affero General Public License v3.0
双击latest-pppoe.py等了几秒就关闭了,然后用系统拨号提示691密码帐号不对,
文件在百度云
我把x00全部替换成了获取到的代码,但是还是不行。
pcapng file: dinggao.pcapng
copy following statements to drcom.conf or overwrite field between "# CONFIG" and "# CONFIG_END" in latest-wired.py
server = '222.240.158.125'
username='1429981'
password='123456'
CONTROLCHECKSTATUS = '\x20'
ADAPTERNUM = '\x04'
host_ip = '172.27.56.113'
IPDOG = '\x01'
host_name = 'DRCOMFUCKER'
PRIMARY_DNS = '222.246.129.80'
dhcp_server = '172.27.11.253'
AUTH_VERSION = '\x22\x00'
mac = 0x74e6e231a74c
host_os = 'WINDIAOS'
KEEP_ALIVE_VERSION = '\xd8\x02'
http://yunpan.cn/cuuc5jZ5EQXny 访问密码 745c
里面有3个文件 drcom.pcapng是用Drcom客户端登陆的抓包
latest-wired.pcapng是用latest-wired测试的抓包 还有就是执行latest-wired的日志文件
请帮忙看下,先谢谢了
通过配置、我的路由已经能够上外网了
但是我发现有一些需要账号密码验证的网页却打不开(比如微博登录界面、输入账号密码按登录、会显示无法打开此网页、同样的情况还有淘宝、百度、论坛等)
试过其他电脑其他浏览器(包括LAN口和wifi的连接方式)、通过排查感觉是latest-wired.py这个文件的问题、即我用网线直连笔记本、打开这个脚本后能上其他网站、但遇到账号密码验证的网页就只能加载登录页、但填完信息后登录网页却无法显示的情况。
产品版本:5.2.0.201504291.A.W.100591
主模块:5.2.0.201504290.A.W.100591
通讯模块:0.8(U64.R110908)Build(k35.20150404)
升级模块:5.2.0.201504110.A.W.100591
检测模块:5.2.0.201504110.A.W.100591
网际协议:IPV4
认证/封装方式:Dr.COM / 不封装防代理
内网认证:已禁用
只有在网线连路由器时不用登客户端,无线连路由器的话还得登客户端,这是咋回事呢?
最新的问题在最下楼层,此小问题根据5楼建议已经改正
用的是这个https://github.com/drcoms/drcom-generic/blob/master/latest-wired.py脚本,直接下载然后运行就报错,这里是报错内容
Traceback (most recent call last):
File "D:\test\latest-wired.py", line 350, in
main()
File "D:\test\latest-wired.py", line 336, in main
daemon()
File "D:\test\latest-wired.py", line 331, in daemon
with open('/var/run/jludrcom.pid','w') as f:
IOError: [Errno 2] No such file or directory: '/var/run/jludrcom.pid'
电脑是WIN7 64位,32位,XP也试过了,都是报这个错,用的是python2.7.10版本,听说D版是最好搞的认证,我估计可能是我哪里设置出现问题了把,环境变量已经设置,直接python正常
D:>python
Python 2.7.10 (default, May 23 2015, 09:44:00) [MSC v.1500 64 bit (AMD64)] on wi
n32
Type "help", "copyright", "credits" or "license" for more information.
另外需要问什么问题补充也可以说,由于不抓包直接运行脚本也出错我就不把包贴出来影响大家的判断了,
[*] Sending EAPOL start
[*] Got EAP Request for identity
[*] Sending EAP response with identity = [2015043634]
[*] Got EAP Request for MD5-Challenge
[*] Sending EAP response with password
[*] Got EAP Success
[*] 802.1X Login successfully
[*] Got Unknown EAP Response
[*] Got EAP Request for identity
[*] Sending EAP response with identity = [2015043634]
[*] Got Unknown EAP Response
[*] Got EAP Request for identity
[*] Sending EAP response with identity = [2015043634]
路由内部是可以屏通 外网的
#coding=utf-8
import os
import multiprocessing
import drcom
import eapauth
user_info = {'username': "2015043634",
'password': "wsx130758",
'ethernet_interface': "eth0.2",
'daemon': True,
'dhcp_command': 'dhclient eth0.2'
}
need_drcom = False
if not (os.getuid() == 0):
print 'Need root'
exit(-1)
#802.1x成功以后就进入正常drcom认证
if need_drcom:
auth = eapauth.EAPAuth(user_info, success_handler=drcom.main)
auth.serve_forever()
else:
auth = eapauth.EAPAuth(user_info)
auth.serve_forever()
使用latest-wired测试登陆失败(从头开始试了好多次,还换了台pc),我将drcom和latest-wired的抓包记录,drcom_client.log都上传到网盘里了。求问各位大大,十分感谢!
我们学校(SZU)的drcom客户端在输入账号密码前有选择运营商这一项,但是版本还是5.2.0(D)。不知道是不是这个影响。
另外,发现抓包转换后的config.txt里的mac值每一次都不一样,不知道有没有关= =
链接: http://pan.baidu.com/s/1jIhbRqm 密码: w15b
上次修改latest-wired.py的时候,git给自动改成了crlf换行了,在linux下执行会出现not found问题,改回lf换行可解决问题。
抓包文件 http://pan.baidu.com/s/1jGk2wjs 密码 3k7t
Traceback (most recent call last):
File "latest-wired.py", line 32, in
s.bind(("0.0.0.0", 61440))
File "", line 1, in bind
socket.error: [Errno 98] Address already in use
不好意思我又出了点问题,我路由器刷的openwrt,按照教程在rc.local里面添加了 drcom & 。 但是并没有自动运行。手动输入命令运行一切正常,但是它就是不会随路由器启动而运行。
我们学校的校园网每天凌晨会关主路由器,导致掉线。早上重新开校园网后,drcom不会自动重新拨号,该如何让drcom自动重启啊?
进入命令提示符(或shell)进入 drcom_p_config.py 所在目录,输入 python drcom_p_config.py > config.txt
到了这步,我的cmder出现以下问题:
E:\drcom-generic-master
λ python drcom_p_config.py > config.txt
File "drcom_p_config.py", line 22
print 'server = '%s'' % '.'.join([str(ord(i)) for i in text[offset-12:offset-8]])
不知道是出现了啥问题,是因为我安装了最新的python 3 没有安装python2 的原因咩
我的wireshark抓包文件:http://pan.baidu.com/s/1c2oIx7i
root@raspberrypi:~# python ~/drcom8021x/main.py
[] Sending EAPOL start
[] Got EAP Request for identity
[] Sending EAP response with identity = [llj2]
[*] Got EAP Request for MD5-Challenge
[] Sending EAP response with password
[*] Got EAP Success
运行main.py后执行到这里就停止了,
drcom.py debug输出停止到输出bind-ip,但是停止main.py进程手动运行drcom.py,能够正常验证drcom。
拨号已成功,只是
yy@yy-upc:$ python2 latest-pppoe.py$
[] open local port:61440
[] DEBUG MODE:False
[] pppoe: send challenge request
[] pppoe: received challenge response
[] pppoe: send heartbeat request
[] pppoe: received heartbeat response
[*] [keep-alive2] send1
Traceback (most recent call last):
File "latest-pppoe.py", line 273, in
main()
File "latest-pppoe.py", line 270, in main
keep_alive2(s, pppoe)
File "latest-pppoe.py", line 198, in keep_alive2
data, address = s.recvfrom(1024)
File "latest-pppoe.py", line 79, in recvfrom
return self.recv()
File "latest-pppoe.py", line 68, in recv
log('received message packet, dropped. message:' + gbk2utf8(data[4:]))
File "latest-pppoe.py", line 46, in gbk2utf8
return string.decode('gb2312').encode().decode()
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-10: ordinal not in range(128)
yy@yy-upc:
不知问题出在那里?
福建江夏学院DR.COM5.2 (D)版
产品版本:5.2.0.201310121.A.W.100291
主模块:5.2.0.201310120.A.W.100291
通讯模块:0.8(U64.R110908)Build(k22.20131011)
升级模块:5.2.0.201303040.A.W.100291
检测模块:5.2.0.201303040.A.W.100291
网际协议:IPV4
认证/封装方式:Dr.COM / 不封装防代理
内网认证:已禁用
pcapng file: dr.pcapng
copy following statements to drcom.conf or overwrite field between "# CONFIG" and "# CONFIG_END" in latest-wired.py
server = '10.2.255.250'
username='13107651772'
password=''
CONTROLCHECKSTATUS = '\x20'
ADAPTERNUM = '\x03'
host_ip = '10.3.116.165'
IPDOG = '\x01'
host_name = 'DRCOMFUCKER'
PRIMARY_DNS = '10.1.1.88'
dhcp_server = '10.3.116.254'
AUTH_VERSION = '\x16\x00'
mac = 0x020c80546f0c
host_os = 'WINDIAOS'
KEEP_ALIVE_VERSION = '\xdc\x02'
我们学校刚开始上dr.com,D版,我按照教程配置成功了,请问拷贝给室友测试时,config里面的host_ip字段不改或者干脆留空会不会有影响
这是之前抓包的结果
链接: http://pan.baidu.com/s/1sjxL8W9 密码: ppd3
Traceback (most recent call last):
File "latest-wired.py", line 34, in
s.bind(("0.0.0.0", 61440))
File "C:\python27\lib\socket.py", line 228, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 10013]
重启电脑之后就又能运行了
File "C:\Users\i5051\Documents\dr\latest-wired.py", line 34, in
s.bind(("0.0.0.0", 61440))
File "C:\Python27\lib\socket.py", line 222, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 10048] 通常每个套接字地址(协议/网络地址/端口)
使用在线的配置生成器,搞出来的东西一直不正常的样子,
server是空的,username一长串乱码,mac也对不上……
盘.百度.com/s/1pJBu21P
这是抓到的包
嗯,我用的是x版
经测试,电脑测试正常,在路由器中运行出错。
[Errno 128] Network is unreachable
输出如下。
auth svr:10.1.1.254
username:xxx
password:xxx
mac:0xd73c020cf08dL
0.0.0.0
Traceback (most recent call last):
File "/usr/bin/drcom.py", line 384, in <module>
main()
File "/usr/bin/drcom.py", line 375, in main
package_tail = login(username, password, server)
File "/usr/bin/drcom.py", line 302, in login
salt = challenge(svr,time.time()+random.randint(0xF,0xFF))
File "/usr/bin/drcom.py", line 88, in challenge
s.sendto("\x01\x02"+t+"\x09"+"\x00"*15, (svr, 61440))
socket.error: [Errno 128] Network is unreachable
附/usr/bin/drcom_client.log
auth svr:10.1.1.254
username:xxx
password:xxx
mac:0xd73c020cf08dL
0.0.0.0
附配置文件/etc/drcom.conf
server = '10.1.1.254'
username='xxx'
password='xxx'
CONTROLCHECKSTATUS = '\x20'
ADAPTERNUM = '\x03'
host_ip = '172.23.134.15'
IPDOG = '\x01'
host_name = 'DRCOMFUCKER'
PRIMARY_DNS = '218.196.40.9'
dhcp_server = '218.196.40.8'
AUTH_VERSION = '\x27\x00'
mac = 0xd73c020cf08d
host_os = 'WINDIAOS'
KEEP_ALIVE_VERSION = '\xd8\x02'
望指点迷津
看列表里说我们学校只需要认证802.1x就可以了
802项目的所有py文件下载并配置好了 放进usr\bin文件夹并且编辑好了rc.local
重启路由器没有进行认证是怎么回事
另外“段落拷贝到/etc/drcom.conf中”并没有找到这个文件 我新建了文本并拷贝其中上传到etc文件夹当中 是否有所影响
谢谢
可以的话可以采用https://github.com/drcoms/drcom-generic/raw/master/custom/pppoe.sh,修改放入 /usr/bin/pppoe.sh ,并且给予执行权限 (chmod +x /usr/bin/pppoe.sh) 然后在 /etc/rc.local 的 exit 0 前加
sleep 15
pppoe.sh
这个执行了还是有心跳
root@OpenWrt:~# ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
File "/usr/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/usr/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
File "/usr/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/usr/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha1
ERROR:root:code for hash sha224 was not found.
Traceback (most recent call last):
File "/usr/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/usr/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha224
ERROR:root:code for hash sha256 was not found.
Traceback (most recent call last):
File "/usr/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/usr/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha256
ERROR:root:code for hash sha384 was not found.
Traceback (most recent call last):
File "/usr/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/usr/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha384
ERROR:root:code for hash sha512 was not found.
Traceback (most recent call last):
File "/usr/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/usr/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha512
Traceback (most recent call last):
File "/usr/bin/drcom", line 3, in <module>
from hashlib import md5
ImportError: cannot import name md5
学校D版 端口限速2M 但是每个账号可以同时登陆两个终端 希望能够支持多播
测试环境是 Win10 + python 2.7.10, 修改 lastest-wired.py 开启测试模式后如果账号密码或其他参数填错,会不断的重新登陆,导致认证服务器临时禁用相应账号
////2016.05.01 update////
目前的情况是先用别的办法通过1x之后手动运行drcom.py,会出现fail错误,具体的错误代码参看楼下几楼。搜索、思考和测试了几天,目前暂时没有任何进展。我会一直留意这个issue的情况。
/////
一些信息:
我使用的Drcom拨号器是Ver5.2.1(X)版本(已附带安装包),协议信息如下:
产品版本:5.2.1.201507101.A.W.100440
主模块:5.2.1.201506110.A.W.100440
通讯模块:0.8(U62.R110908)(1x)Build(k36.20150515)
升级模块:5.2.1.201506110.A.W.100440
检测模块:5.2.1.201506110.A.W.100440
网际协议:IPV4
认证/封装方式:802.1X_Ext / 不封装防代理
内网认证:已禁用
现在的情况:
我用贵项目中的在线配置器 http://drcoms.github.io/drcom-generic/,按要求生成配置信息之后,发现MAC识别错和identity识别不出来,所以我手动修正了这些数据,然后粘贴替换了配置信息。
还有就是,我这里的交换机对1x的多播不能识别,所以我改成0xff广播了。
现在的情况就是,可以通过802.1x认证,也可以反应802.1x心跳。但是,始终没有发送Drcom协议的UDP包(61440端口),通过Wireshark抓包,也可以程序中根本没有发出UDP包。不知道这是什么情况,头疼了很多天,特来请教。。
头疼了很多天了都,希望你们技术牛人可以帮帮我。万分感激。有关抓包文件和拨号器安装包已经传到网盘。链接: http://pan.baidu.com/s/1o8UuDfW 密码: m1wc
谢谢大家。。。
我们学校是5.20P的,抓包替换后点系统自带的pppoe客户端 输入账号密码后点链接就马上提升错误。好像是服务器拒绝了,然后点开latest-pppot.py后代码一闪而过,什么都没有,网上不了。怎么办?抓的包已经发您邮箱
auth svr:202.195.192.197
username:152070006
password:030615
mac:0x20ce0b12ea1L
[challenge] recv 0202c70080bc030001000100f003e8f000000000c0a85213f000a8ac00004fe416c100000000dc02000000000000000000000000000000000000000000000000000000000000000000000000
[DEBUG] challenge:
0202c70080bc030001000100f003e8f000000000c0a85213f000a8ac00004fe416c100000000dc02000000000000000000000000000000000000000000000000000000000000000000000000
[challenge] challenge packet sent.
[mkpkt] 0301001daa6ed52c322267736f6845534c9341053135323037303030360000000000000000000000000000000000000000000000000000002007a862359d1c83bf219dde2d21aa3b19c5bde0a3f0b99801c0a852130000000000000000000000000a12c58f40a1404501000000004452434f4d4655434b4552000000000000000000000000000000000000000000da02870100000000000000000000000000000000940000000500000001000000280a00000200000057494e4449414f530000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001f00020c8081438d0000020ce0b12ea10000e913
[login] send 0301001daa6ed52c322267736f6845534c9341053135323037303030360000000000000000000000000000000000000000000000000000002007a862359d1c83bf219dde2d21aa3b19c5bde0a3f0b99801c0a852130000000000000000000000000a12c58f40a1404501000000004452434f4d4655434b4552000000000000000000000000000000000000000000da02870100000000000000000000000000000000940000000500000001000000280a00000200000057494e4449414f530000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001f00020c8081438d0000020ce0b12ea10000e913
[login] recv 050000050b28d24431d69f
[login] packet sent.
[login] login failed.
长春理工大学去年已由d版客户端更换为p版,更新后可以直接使用标准PPPoE拨号方式上网,请及时更新WiKi。
配置完成之後IPv4能夠正常使用,但是IPv6只能Ping通校內網,請問是沒有加入IPv6的相關認證嗎
路由器 openwrt 14.07 barrier_breaker cpu:ar7241
版本:barrier_breaker/14.07/ar71xx/generic/packages/oldpackages/
python_2.7.3-2_ar71xx.ipk
python-pcap_1.1-1_ar71xx.ipk
以及安装上述软件包所需的相关依赖
调试信息:
路由器:
root@OpenWrt:~# pppoe.sh
/usr/bin/pppoe.sh: line 16: 1: not found
[] open local port:61440
[] DEBUG MODE:True
[] pppoe: send challenge request
packet:0701080001000000
[] pppoe: received challenge response
packet:07011000020000000cbf610c0a000188a8a80000e659f16700000000dc020000
[] pppoe: send heartbeat request
packet:0702600003000000000000000a0001880062001a0cbf610cf8bfa2320000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
[] pppoe: heartbeat response failed, retry
[] pppoe: reset idx to 0x01
[] pppoe: send challenge request
packet:0701080001000000
[] pppoe: received challenge response
packet:070110000200000028bf610c0a000188a8a80000e659f16700000000dc020000
[] pppoe: send heartbeat request
packet:0702600003000000000000000a0001880062001a28bf610cb0bfa2320000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
[] pppoe: heartbeat response failed, retry
[] pppoe: reset idx to 0x01
[] pppoe: send challenge request
packet:0701080001000000
[] pppoe: received challenge response
packet:070110000200000045bf610c0a000188a8a80000e659f16700000000dc020000
[] pppoe: send heartbeat request
packet:0702600003000000000000000a0001880062001a45bf610ceabfa2320000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
[] pppoe: heartbeat response failed, retry
[] pppoe: reset idx to 0x01
[] pppoe: send challenge request
packet:0701080001000000
[] pppoe: received challenge response
packet:070110000200000062bf610c0a000188a8a80000e659f16700000000dc020000
[] pppoe: send heartbeat request
packet:0702600003000000000000000a0001880062001a62bf610c24bfa2320000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
[] pppoe: heartbeat response failed, retry
[] pppoe: reset idx to 0x01
[] pppoe: send challenge request
packet:0701080001000000
[] pppoe: received challenge response
packet:07011000020000007ebf610c0a000188a8a80000e659f16700000000dc020000
[] pppoe: send heartbeat request
packet:0702600003000000000000000a0001880062001a7ebf610c1cbfa2320000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
[] pppoe: heartbeat response failed, retry
[] pppoe: reset idx to 0x01
[] pppoe: send challenge request
packet:0701080001000000
[] pppoe: received challenge response
packet:07011000020000009abf610c0a000188a8a80000e659f16700000000dc020000
[] pppoe: send heartbeat request
packet:0702600003000000000000000a0001880062001a9abf610cd4bfa2320000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
[] pppoe: heartbeat response failed, retry
[] pppoe: reset idx to 0x01
PC:
drcom-pppoe2.py
[] open local port:61440
[] DEBUG MODE:True
[] pppoe: send challenge request
packet:0701080001000000
[] pppoe: received challenge response
packet:07011000020000006ec0610c0a000188a8a80000e659f16700000000dc020000
[] pppoe: send heartbeat request
packet:0702600003000000000000000a0001880062001a6ec0610cce5fd571000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000
[] pppoe: received heartbeat response
packet:07023000040020007ebb2da0000000004439d8eddd58e0244c3a8200104404a2b
0824000100000000000000000000000
[] [keep-alive2] send1
packet:070028000b010f272f12000000000000000000000000000000000000000000000
000000000000000
[] received message packet, dropped. message:联通微信沃派全面升级,5大特权免费
享,每月赠送2.5G上网流量;同时现场开通沃支付业务,可享9元看电影, 95折购物,加油
减3毛等优惠,详情请咨询联通校园营业厅
[] received message packet, dropped. message:联通微信沃派全面升级,5大特权免费
享,每月赠送2.5G上网流量;同时现场开通沃支付业务,可享9元看电影, 95折购物,加油
减3毛等优惠,详情请咨询联通校园营业厅
[] [keep-alive2] recv file, resending..
[] [keep-alive2] send1
packet:070128000b01dc022f12000000000000000000000000000000000000000000000
000000000000000
[] [keep-alive2] recv1
packet:070128000b02dc022f120000000000006fc0610c0000000000000000000000000
000000000000000
[] [keep-alive2] send2
packet:070128000b01dc022f12000000000000000000000000000000000000000000000
000000000000000
[] [keep-alive2] recv2
packet:070128000b02dc022f120000000000006fc0610c0000000000000000000000000
000000000000000
[] [keep-alive2] send3
packet:070228000b03dc022f120000000000006fc0610c0000000000000000dd0b38120
000000000000000
[] [keep-alive2] recv3
packet:070228000b04dc022f120000000000006fc0610c0000000000000000000000000
000000000000000
[] [keep-alive2] keep-alive2 loop was in daemon.
[] [keep_alive2] send 3
packet:070328000b01dc022f120000000000006fc0610c0000000000000000000000000
000000000000000
如题,重庆大学A区宿舍是自动获取IP,应该如何填写呢?
是不是这个PY 每过一段时间 会自动断一下 然后又好了 窗口不会关也没有任何异常显示 就是 网会断一下子 我现在是湖南农大的联通网
参照此教程 https://github.com/drcoms/drcom-generic/wiki/p%E7%89%88%E7%AE%80%E7%95%A5%E4%BD%BF%E7%94%A8%E5%92%8C%E9%85%8D%E7%BD%AE%E8%AF%B4%E6%98%8E
进行到此步 : 拨号成功(用pppoe-dialer.exe拨号) 但是 运行 latest-pppoe.py 并不能上网。。
电脑已配置python环境。
正常用联通客户端拨号的抓包文件及所用文件如下:
百度云链接:http://pan.baidu.com/s/1gdM1sGF 密码:r1ct
在此谢谢您了。。
我在电脑上测试了能上的,但是放到路由器上就不行了
我 python /usr/bin/drcom
但就会显示
DrCOM Auth Router for GDUFE
[challenge] challenge packet sent.
Traceback (most recent call last):
File "/usr/bin/drcom", line 345, in
main()
File "/usr/bin/drcom", line 323, in main
loginpart()
File "/usr/bin/drcom", line 329, in loginpart
package_tail = login(username, password, server)
File "/usr/bin/drcom", line 258, in login
packet = mkpkt(salt, usr, pwd, mac)
File "/usr/bin/drcom", line 214, in mkpkt
data += dump(int(data[4:10].encode('hex'),16)^mac).rjust(6,'\x00') #mac xor md51
LookupError: no codec search functions registered: can't find encoding
这应该是路由器没插网线的情况下出现吧?但通过opkg update能过更新列表的(ustc的软件源,学校不用登都能上)这说明网线有插的
哪我是什么原因导致不能上?
kill which process
RT,得不到配置文件,WIRESHARK筛选显示不出LOGIN包。。
本地提取出错:
Traceback (most recent call last):
File "drcom_d_config.py", line 20, in <module>
offset = re.search('\xf0\x00\xf0\x00[\x00-\xFF]{4}\x03\x01', text).start() + 8
AttributeError: 'NoneType' object has no attribute 'start'
在线提取无法获取 server,username 乱码。
————————————————————
链接: http://share.weiyun.com/af74a0d0670893974970383a371512f5 (密码:Z2sy)
这是抓包。
链接: http://share.weiyun.com/b4456aa5928fec4f58cb43b42c478397 (密码:qRL3)
这是学校客户端的日志,貌似从 u62 升级到了 u64。
————————————————————
有时客户端发神经,显示获取用户信息超时,但此时可以通过网页进行账号认证。
该网页认证同时用于 WiFi 接入的认证。
如题,请问该系列拨号端支持的Drcom拨号是否向下兼容?3.73U64可以使用吗,还是需要自行修改代码?
我是X版的drcom,就是D+802.1X认证的。。按照步骤:输入 python drcom_d_config.py > config.txt后,报错了。。C:\Users\admin\Desktop\a>python drcom_d_config.py> config.txt
Traceback (most recent call last):
File "drcom_d_config.py", line 19, in
offset = re.search('\xf0\x00\xf0\x00[\x00-\xFF]{4}\x03\x01', text).start() +
8
AttributeError: 'NoneType' object has no attribute 'start'
Traceback (most recent call last):
File "latest-wired.py", line 34, in
s.bind(("0.0.0.0", 61440))
File "D:\Program Files\Python27\lib\socket.py", line 228, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 10048] 通常每个套接字地址(协议/网络地址/端口)
大连东软信息学院用的5.2.0(P)抓取后的文件
http://pan.baidu.com/s/1ntrg7rF
使用Auto config生成相应参数
在latest.py中修改相应之参数后仍然691
求巨巨帮忙看看
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.