Open 987428652 opened 6 years ago
谢谢大佬,可以用啦
会断怎么办
依旧会断,显示如下:#python /usr/bin/drcom[] auth svr: 172.30.1.80[] pppoe_flag: 2a[] keep_alive2_flag: dc[] open local port:61440[] DEBUG MODE:True[] pppoe: send challenge request packet:0701080001000000[] pppoe: received challenge response packet:0701100002020000e2a242020a33d293a8ac00004fe416c100000000dc020000[] pppoe: send heartbeat request packet:0702600003000000000000000a33d2930062002ae2a2420210fcb2947b9aac320 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000[] pppoe: heartbeat response failed, retry[] pppoe: reset idx to 0x01[] pppoe: send challenge request packet:0701080001000000[] pppoe: received challenge response packet:0701100002030000ffa242020a33d293a8ac00004fe416c100000000dc020000[] pppoe: send heartbeat request packet:0702600003000000000000000a33d2930062002affa2420297de15b99a016a710 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000[] pppoe: heartbeat response failed, retry[] pppoe: reset idx to 0x01[] pppoe: send challenge request packet:0701080001000000[] pppoe: received challenge response packet:07011000020300001fa342020a33d293a8ac00004fe416c100000000dc020000[] pppoe: send heartbeat request packet:0702600003000000000000000a33d2930062002a1fa342022f0ec580e533f4080 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000[] pppoe: heartbeat response failed, retry[] pppoe: reset idx to 0x01[] pppoe: send challenge request packet:0701080001000000[] pppoe: received challenge response packet:07011000020100003da342020a33d293a8ac00004fe416c100000000dc020000[] pppoe: send heartbeat request packet:0702600003000000000000000a33d2930062002a3da34202829e8623b70a7ab200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000[] pppoe: heartbeat response failed, retry[] pppoe: reset idx to 0x01[] pppoe: send challenge request packet:0701080001000000[] pppoe: received challenge response packet:07011000020300005ba342020a33d293a8ac00004fe416c100000000dc020000[] pppoe: send heartbeat request packet:0702600003000000000000000a33d2930062002a5ba34202aa48ab83d76109ee00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000[] pppoe: heartbeat response failed, retry[] pppoe: reset idx to 0x01[] pppoe: send challenge request packet:0701080001000000[] pppoe: received challenge response packet:070110000201000079a342020a33d293a8ac00004fe416c100000000dc020000[] pppoe: send heartbeat request packet:0702600003000000000000000a33d2930062002a79a34202dc3c8a93de9ee23500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000[] pppoe: heartbeat response failed, retry[] pppoe: reset idx to 0x01[] pppoe: send challenge request packet:0701080001000000[] pppoe: received challenge response packet:070110000203000097a342020a33d293a8ac00004fe416c100000000dc020000[] pppoe: send heartbeat request packet:0702600003000000000000000a33d2930062002a97a342025c44527cd1cfb50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000^A[] pppoe: heartbeat response failed, retry[] pppoe: reset idx to 0x01[] pppoe: send challenge request packet:0701080001000000[] pppoe: received challenge response packet:0701100002010000b5a342020a33d293a8ac00004fe416c100000000dc020000[] pppoe: send heartbeat request packet:0702600003000000000000000a33d2930062002ab5a3420285d1016a40f722c100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000^C[] pppoe: heartbeat response failed, retry[] pppoe: reset idx to 0x01[] pppoe: send challenge request packet:0701080001000000[] pppoe: received challenge response packet:0701100002030000cfa342020a33d293a8ac00004fe416c100000000dc020000[] pppoe: send heartbeat request packet:0702600003000000000000000a33d2930062002acfa34202c36557b30a08d7bc00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000[] pppoe: heartbeat response failed, retry[] pppoe: reset idx to 0x01[] pppoe: send challenge request packet:0701080001000000[] pppoe: received challenge response packet:0701100002020000eea342020a33d293a8ac00004fe416c100000000dc020000[] pppoe: send heartbeat request packet:0702600003000000000000000a33d2930062002aeea342021fa94438ba06c7f500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000[] pppoe: heartbeat response failed, retry[] pppoe: reset idx to 0x01[] pppoe: send challenge request packet:0701080001000000[] pppoe: received challenge response packet:07011000020300000ba442020a33d293a8ac00004fe416c100000000dc020000[] pppoe: send heartbeat request packet:0702600003000000000000000a33d2930062002a0ba442024dd62f7b6e64e6b300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000[] pppoe: heartbeat response failed, retry[] pppoe: reset idx to 0x01[] pppoe: send challenge request packet:0701080001000000[] pppoe: received challenge response packet:07011000020200002aa442020a33d293a8ac00004fe416c100000000dc020000[] pppoe: send heartbeat request packet:0702600003000000000000000a33d2930062002a2aa442026a458af7a528f54300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000[] pppoe: heartbeat response failed, retry[] pppoe: reset idx to 0x01[] pppoe: send challenge request packet:0701080001000000[] pppoe: received challenge response packet:070110000203000047a442020a33d293a8ac00004fe416c100000000dc020000[] pppoe: send heartbeat request packet:0702600003000000000000000a33d2930062002a47a442021063d30a6021d7b500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000[] pppoe: heartbeat response failed, retry[] pppoe: reset idx to 0x01[] pppoe: send challenge request packet:0701080001000000[] pppoe: received challenge response packet:070110000202000066a442020a33d293a8ac00004fe416c100000000dc020000[] pppoe: send heartbeat request packet:0702600003000000000000000a33d2930062002a66a44202e7b919d9f246437d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000[] pppoe: heartbeat response failed, retry[] pppoe: reset idx to 0x01[] pppoe: send challenge request packet:0701080001000000[] pppoe: received challenge response packet:070110000201000085a442020a33d293a8ac00004fe416c100000000dc020000[] pppoe: send heartbeat request packet:0702600003000000000000000a33d2930062002a85a4420233f6c0ccdc91d3ed00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000[] pppoe: heartbeat response failed, retry[] pppoe: reset idx to 0x01[] pppoe: send challenge request packet:0701080001000000[] pppoe: received challenge response packet:0701100002030000a3a442020a33d293a8ac00004fe416c100000000dc020000[] pppoe: send heartbeat request packet:0702600003000000000000000a33d2930062002aa3a442025932c325d112c98700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000[] pppoe: heartbeat response failed, retry[] pppoe: reset idx to 0x01[] pppoe: send challenge request packet:0701080001000000[] pppoe: received challenge response packet:0701100002010000c1a442020a33d293a8ac00004fe416c100000000dc020000[] pppoe: send heartbeat request packet:0702600003000000000000000a33d2930062002ac1a4420233d33908d3b808be00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000[] pppoe: heartbeat response failed, retry[] pppoe: reset idx to 0x01[] pppoe: send challenge request packet:0701080001000000[] pppoe: received challenge response packet:0701100002030000dfa442020a33d293a8ac00004fe416c100000000dc020000[] pppoe: send heartbeat request packet:0702600003000000000000000a33d2930062002adfa44202b8b31fa9036fc4fa00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000[] pppoe: heartbeat response failed, retry[] pppoe: reset idx to 0x01[] pppoe: send challenge request packet:0701080001000000[] pppoe: received challenge response packet:0701100002020000fea442020a33d293a8ac00004fe416c100000000dc020000[] pppoe: send heartbeat request packet:0702600003000000000000000a33d2930062002afea44202e3888cadf00c9a1c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000[] pppoe: heartbeat response failed, retry[] pppoe: reset idx to 0x01[] pppoe: send challenge request packet:0701080001000000[] pppoe: received challenge response packet:07011000020300001ba542020a33d293a8ac00004fe416c100000000dc020000[] pppoe: send heartbeat request packet:0702600003000000000000000a33d2930062002a1ba54202d889d01476a4a8cb00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000[] pppoe: heartbeat response failed, retry[] pppoe: reset idx to 0x01[] pppoe: send challenge request packet:0701080001000000[] pppoe: received challenge response packet:07011000020200003aa542020a33d293a8ac00004fe416c100000000dc020000[] pppoe: send heartbeat request packet:0702600003000000000000000a33d2930062002a3aa5420270f53d8b2714b7ea00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000[] pppoe: heartbeat response failed, retry[] pppoe: reset idx to 0x01[] pppoe: send challenge request packet:0701080001000000[] pppoe: received challenge response packet:070110000203000057a542020a33d293a8ac00004fe416c100000000dc020000[] pppoe: send heartbeat request packet:0702600003000000000000000a33d2930062002a57a542022beefaabfb50adaa00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000[] pppoe: heartbeat response failed, retry[] pppoe: reset idx to 0x01[] pppoe: send challenge request packet:0701080001000000[] pppoe: received challenge response packet:070110000202000076a542020a33d293a8ac00004fe416c100000000dc020000[] pppoe: send heartbeat request packet:0702600003000000000000000a33d2930062002a76a542026ad52497e460458200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000[] pppoe: heartbeat response failed, retry[] pppoe: reset idx to 0x01[] pppoe: send challenge request packet:0701080001000000[] pppoe: received challenge response packet:070110000201000095a542020a33d293a8ac00004fe416c100000000dc020000[] pppoe: send heartbeat request packet:0702600003000000000000000a33d2930062002a95a54202b143f61f872da58800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000[] pppoe: heartbeat response failed, retry[] pppoe: reset idx to 0x01[] pppoe: send challenge request packet:0701080001000000[] pppoe: received challenge response packet:0701100002030000b3a542020a33d293a8ac00004fe416c100000000dc020000[] pppoe: send heartbeat request packet:0702600003000000000000000a33d2930062002ab3a542020ecb573ac6c3ca9b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000[] pppoe: heartbeat response failed, retry[] pppoe: reset idx to 0x01[] pppoe: send challenge request packet:0701080001000000[] pppoe: received challenge response packet:0701100002010000d1a542020a33d293a8ac00004fe416c100000000dc020000[] pppoe: send heartbeat request packet:0702600003000000000000000a33d2930062002ad1a54202286f72f2de51d17b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000[] pppoe: heartbeat response failed, retry[] pppoe: reset idx to 0x01[] pppoe: send challenge request packet:0701080001000000[] pppoe: received challenge response packet:0701100002030000efa542020a33d293a8ac00004fe416c100000000dc020000[] pppoe: send heartbeat request packet:0702600003000000000000000a33d2930062002aefa54202ebaa979d9ff2704c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000[] pppoe: heartbeat response failed, retry[] pppoe: reset idx to 0x01[] pppoe: send challenge request packet:0701080001000000[] pppoe: received challenge response packet:07011000020200000ea642020a33d293a8ac00004fe416c100000000dc020000[] pppoe: send heartbeat request packet:0702600003000000000000000a33d2930062002a0ea64202475ac6f6ec6d1d0d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000[] pppoe: heartbeat response failed, retry[] pppoe: reset idx to 0x01[] pppoe: send challenge request packet:0701080001000000[] pppoe: received challenge response packet:07011000020300002ba642020a33d293a8ac00004fe416c100000000dc020000[] pppoe: send heartbeat request packet:0702600003000000000000000a33d2930062002a2ba6420272ece6ff5b78d05900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000[] pppoe: heartbeat response failed, retry[] pppoe: reset idx to 0x01[] pppoe: send challenge request packet:0701080001000000[] pppoe: received challenge response packet:07011000020200004aa642020a33d293a8ac00004fe416c100000000dc020000[] pppoe: send heartbeat request packet:0702600003000000000000000a33d2930062002a4aa642022c9393a51f01bed900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000[] pppoe: heartbeat response failed, retry[] pppoe: reset idx to 0x01[] pppoe: send challenge request packet:0701080001000000[] pppoe: received challenge response packet:070110000203000067a642020a33d293a8ac00004fe416c100000000dc020000[] pppoe: send heartbeat request packet:0702600003000000000000000a33d2930062002a67a642029feee972bb6d213c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000[] pppoe: heartbeat response failed, retry[] pppoe: reset idx to 0x01[] pppoe: send challenge request packet:0701080001000000[] pppoe: received challenge response packet:070110000202000086a642020a33d293a8ac00004fe416c100000000dc020000
修改 server = '172.30.1.80' pppoe_flag = '\x2a' keep_alive2_flag = '\xdc'为 server = '172.29.0.2' pppoe_flag = '\x2f' keep_alive2_flag = '\xdc'后,不知道是否是跑动成功了(路由器内的py脚本修改 IS_TEST = True 为 IS_TEST = False后跑失败,只能True才成功),显示如下: [] auth svr: 172.29.0.2 [] pppoe_flag: 2f [] keep_alive2_flag: dc [] open local port:61440 [] DEBUG MODE:True [] pppoe: send challenge request packet:0701080001000000 [] pppoe: received challenge response packet:07011000020000006cc353000a33f72da8a80000e659f16700000000dc020000 [] pppoe: send heartbeat request packet:0702600003000000000000000a33f72d0062002f6cc35300ca96cdc6000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000 [] pppoe: received heartbeat response packet:0702300004002000b265b3b1000000004439d8edcae80004162282667f6904f6b 0824000100000000000000000000000 [] [keep-alive2] send1 packet:070028000b010f272f12000000000000000000000000000000000000000000000 000000000000000 [] received message packet, dropped. message: You have witnessed too much... [] [keep-alive2] recv file, resending.. [] [keep-alive2] send1 packet:070128000b01dc022f12000000000000000000000000000000000000000000000 000000000000000 [] [keep-alive2] recv1 packet:070128000b02dc022f120000000000006dc353000000000000000000000000000 000000000000000 [] [keep-alive2] send2 packet:070128000b01dc022f12000000000000000000000000000000000000000000000 000000000000000 [] [keep-alive2] recv2 packet:070128000b02dc022f120000000000006dc353000000000000000000000000000 000000000000000 [] [keep-alive2] send3 packet:070228000b03dc022f120000000000006dc35300858da18363b3016b000000000 000000000000000 [] [keep-alive2] recv3 packet:070228000b04dc022f120000000000006dc353000000000000000000000000000 000000000000000 [] [keep-alive2] keep-alive2 loop was in daemon. [] [keep_alive2] send 3 packet:070328000b01dc022f120000000000006dc353000000000000000000000000000 000000000000000 [] [keep_alive2] recv packet:070328000b02dc022f120000000000006ec353000000000000000000000000000 000000000000000 [] [keep_alive2] send 4 packet:070428000b03dc022f120000000000006ec353008a80ac63d0c3f998000000000 000000000000000 [] [keep_alive2] recv packet:070428000b04dc022f120000000000006ec353000000000000000000000000000 000000000000000 [] pppoe: send challenge request packet:0702080001000000 [] pppoe: received challenge response packet:0702100002000000d2c353000a33f72da8a80000e659f16700000000dc020000 [] pppoe: send heartbeat request packet:0703600003000000000000000a33f72d0063002fd2c353004a9eb8fb054b0f1d0 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000 [] pppoe: heartbeat response failed, retry [] pppoe: reset idx to 0x01 [] pppoe: send challenge request packet:0701080001000000 [] pppoe: received challenge response packet:0701100002000000f0c353000a33f72da8a80000e659f16700000000dc020000 [*] pppoe: send heartbeat request packet:0702600003000000000000000a33f72d0062002ff0c35300f2f13119000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000
大概一小时多,会断,这个脚本跑起来有时候显示响应错误
你好,请问现在6.0.0P还可以跑吗
景德镇陶瓷大学更新6.0.0(p)版后,所用py脚本(5.2.0p版本)不能使用了,跑起来后显示如下 [] auth svr: 172.29.0.2 [] pppoe_flag: 2f [] keep_alive2_flag: dc [] open local port:61440 [] DEBUG MODE:False [] pppoe: send challenge request [] pppoe: received challenge response [] pppoe: send heartbeat request [] pppoe: heartbeat response failed, retry [] pppoe: reset idx to 0x01 [] pppoe: send challenge request [] pppoe: received challenge response [] pppoe: send heartbeat request [] pppoe: heartbeat response failed, retry [] pppoe: reset idx to 0x01 [] pppoe: send challenge request [] pppoe: received challenge response [] pppoe: send heartbeat request [] pppoe: heartbeat response failed, retry [] pppoe: reset idx to 0x01 [] pppoe: send challenge request [] pppoe: received challenge response [] pppoe: send heartbeat request ^C[] pppoe: heartbeat response failed, retry [] pppoe: reset idx to 0x01 [] pppoe: send challenge request [] pppoe: received challenge response [] pppoe: send heartbeat request [] pppoe: heartbeat response failed, retry [] pppoe: reset idx to 0x01 [] pppoe: send challenge request [] pppoe: received challenge response Traceback (most recent call last): File "/usr/bin/drcom", line 451, in
main()
File "/usr/bin/drcom", line 446, in main
pppoe.send(s)
File "/usr/bin/drcom", line 310, in send
data = self._make_heartbeat(sip=sip, challenge_seed=seed, first=True)
File "/usr/bin/drcom", line 281, in _make_heartbeat
crc2 = (DrcomCRC32(data) * 19680126) & 0xFFFFFFFF
NameError: global name 'DrcomCRC32' is not defined
6.0.0.zip