Closed InDimension closed 6 years ago
RESTART: C:\Users\msi\Downloads\drcom-generic-master\drcom-generic-master\latest-wired-python3.py auth svr: 172.30.255.2 username: (已经正确填写) password: (已经正确填写) mac: 0x448a5b6dc13 bind ip: 0.0.0.0 [challenge] recv 02029221929a1a0001000100f303e8f000000000ac1d2a21f000a8ac00004fe416c100000000dc02000000000000000000000000000000000000000000000000000000000000000000000000 [DEBUG] challenge: 02029221929a1a0001000100f303e8f000000000ac1d2a21f000a8ac00004fe416c100000000dc02000000000000000000000000000000000000000000000000000000000000000000000000 [challenge] challenge packet sent. Traceback (most recent call last): File "C:\Users\msi\Downloads\drcom-generic-master\drcom-generic-master\latest-wired-python3.py", line 480, in main() File "C:\Users\msi\Downloads\drcom-generic-master\drcom-generic-master\latest-wired-python3.py", line 470, in main package_tail = login(username, password, server) File "C:\Users\msi\Downloads\drcom-generic-master\drcom-generic-master\latest-wired-python3.py", line 382, in login packet = mkpkt(salt, usr, pwd, mac) File "C:\Users\msi\Downloads\drcom-generic-master\drcom-generic-master\latest-wired-python3.py", line 288, in mkpkt data += CONTROLCHECKSTATUS TypeError: can't concat bytes to str
不知道是不是我PY安装有误?抑或是哪里操作不当?
我也是近似的问题,我觉得这个代码有问题,还需要调试 我做了以下的修改 还会出现问题,我以前自己适配python3的时候最后也有这种问题:self.count 没有len()
self.count
len()
😄 改好了发pr吧
修改后的文件,有条件的测试一下,我最近事情比较多,这几天没时间搞这个了 pppoe.txt
RESTART: C:\Users\msi\Downloads\drcom-generic-master\drcom-generic-master\latest-wired-python3.py auth svr: 172.30.255.2 username: (已经正确填写) password: (已经正确填写) mac: 0x448a5b6dc13 bind ip: 0.0.0.0 [challenge] recv 02029221929a1a0001000100f303e8f000000000ac1d2a21f000a8ac00004fe416c100000000dc02000000000000000000000000000000000000000000000000000000000000000000000000 [DEBUG] challenge: 02029221929a1a0001000100f303e8f000000000ac1d2a21f000a8ac00004fe416c100000000dc02000000000000000000000000000000000000000000000000000000000000000000000000 [challenge] challenge packet sent. Traceback (most recent call last): File "C:\Users\msi\Downloads\drcom-generic-master\drcom-generic-master\latest-wired-python3.py", line 480, in
main()
File "C:\Users\msi\Downloads\drcom-generic-master\drcom-generic-master\latest-wired-python3.py", line 470, in main
package_tail = login(username, password, server)
File "C:\Users\msi\Downloads\drcom-generic-master\drcom-generic-master\latest-wired-python3.py", line 382, in login
packet = mkpkt(salt, usr, pwd, mac)
File "C:\Users\msi\Downloads\drcom-generic-master\drcom-generic-master\latest-wired-python3.py", line 288, in mkpkt
data += CONTROLCHECKSTATUS
TypeError: can't concat bytes to str