找回密码
 注册

QQ登录

只需一步,快速开始

楼主: douniwandsl

[工具] ZTE 中兴全系列破解光猫开telnet开源工具 应该兼容到 TelnetONU 1.6了

    [复制链接]
发表于 2023-1-31 22:22:22 | 显示全部楼层
虽然猫粮不够还没下,还是感谢楼主
发表于 2023-2-1 12:39:25 | 显示全部楼层
qiner_1984 发表于 2023-1-30 20:05  ^% p" y- X" l. ^) ]4 I; ?/ t
输出结果9 E& o4 y6 m9 D" S& `1 Q* ^
https://www.chinadsl.net/forum.php?mod=attachment&aid=MTAzNzkyfGMzMTJiNDBjfDE3NDYxMDgzNjF8MHw%3D
' X3 J, l% p& w& F  Y. D
在cmd里直接输入python3 zte.....py 而不是先输入python 进入python交互模式后再输入一遍python3 xxxxx.py
发表于 2023-2-2 17:43:40 | 显示全部楼层
D:\python\yang\zte_modem_tools-main>python zte_factroymode.py --user telecomadmin --pass nE7jA%5m -- 192.168.1.1 8080 telnet open
7 g* Z8 Y5 @7 k" O- Strying  user:"telecomadmin" pass:"nE7jA%5m"6 {$ V) g. b! @  D: k
reset facTelnetSteps:4 G: X+ b6 o( \1 N
Traceback (most recent call last):8 `: K/ }# V1 V- n; O, k" w/ d. }6 l
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 703, in urlopen
6 }( y7 ]  v6 Q% F% C: r- s1 m. C    httplib_response = self._make_request(" A: S" k4 T" G' H; `
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 449, in _make_request
$ ~" ~3 B) \* ~    six.raise_from(e, None)
- h4 A+ C! e# ~; N* P  File "<string>", line 3, in raise_from
, p1 M$ F( f5 V' `. [& u2 \  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 444, in _make_request: {/ p. X+ a9 p2 P& R+ X, t9 V
    httplib_response = conn.getresponse()
' [( Y1 N' M# Y9 a3 ^  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\http\client.py", line 1347, in getresponse. A' d/ P# w. I% g+ [8 {
    response.begin(), ~* y# h" T# y4 Y. j
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\http\client.py", line 307, in begin3 e: C/ t- U  r4 I0 V4 ^% `7 h8 z
    version, status, reason = self._read_status()& ^1 E( x1 o& [/ u$ X
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\http\client.py", line 276, in _read_status
- ~( o4 I& Q" Z1 J, b    raise RemoteDisconnected("Remote end closed connection without"
, o) s& {" p4 G' H) i, ]) Ehttp.client.RemoteDisconnected: Remote end closed connection without response9 U% h- S  I; S5 M# T

/ [1 Z6 C  [4 Z. t5 ^1 y5 NDuring handling of the above exception, another exception occurred:
4 L7 g7 ]/ I  y' P- T5 S
8 D0 M4 ?. t+ t- H, S4 W% b8 o! c2 ATraceback (most recent call last):
( Y6 k  h/ c% `! {! m: Z  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\requests\adapters.py", line 489, in send
2 j3 I4 |) X+ E+ U3 l    resp = conn.urlopen(
# Q: [% l. l) L5 v, ]- J! h0 ?  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 787, in urlopen
; Q' X1 x! `2 i0 W    retries = retries.increment(; u) [/ ~  h4 Y
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\util\retry.py", line 550, in increment
0 b2 \5 H& x( W8 G$ \( t( ^' G    raise six.reraise(type(error), error, _stacktrace)5 q; O* L  v6 r5 N1 j
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\packages\six.py", line 769, in reraise4 B: }; T- a% P" Z
    raise value.with_traceback(tb)
  q: x) j" c) n2 \  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 703, in urlopen% H! R, d. [4 F- D% M* ^
    httplib_response = self._make_request(
( D: l6 y9 d0 O- J; T. o: e  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 449, in _make_request6 n6 g/ _1 ?$ e
    six.raise_from(e, None)  I) ^4 c8 h; x
  File "<string>", line 3, in raise_from
( g3 g$ e. D+ v0 v: o  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 444, in _make_request, L7 p1 F! c4 g
    httplib_response = conn.getresponse()
. a6 T. ?3 ~$ h% e1 A( ~  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\http\client.py", line 1347, in getresponse
- Y+ P  L' W$ O" G/ d7 g    response.begin()/ y: v( ?  q7 X0 e6 Q$ M8 ^
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\http\client.py", line 307, in begin+ m  u. J* a/ ]" y4 N
    version, status, reason = self._read_status()
; n. l) ^$ ~$ `5 I8 f! A0 [+ @  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\http\client.py", line 276, in _read_status$ X: N/ A$ \& G* t: e
    raise RemoteDisconnected("Remote end closed connection without"" o6 F. P1 [) D8 f) V
urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))% R- f6 M* D; O/ q  V- @

2 I" p  p5 B/ L, ^& K% k+ m4 w8 z' K/ dDuring handling of the above exception, another exception occurred:
' `+ p. g% ?' I
( z* E& ]: k0 c' Y) E$ I+ @Traceback (most recent call last):
8 u; m7 ]3 R0 x1 r: t0 W1 i+ p  File "zte_factroymode.py", line 314, in <module>) L( |9 R5 R0 R7 s
    main()0 Z8 s8 Z7 |1 X
  File "zte_factroymode.py", line 310, in main
9 Q9 C# R( X/ @! ], R    dealTelnet(args.ip, args.port, args.user, args.pw, args.action)
5 `4 w* F9 f9 I. ]  File "zte_factroymode.py", line 268, in dealTelnet/ t" F( _/ V, ~- h9 t( L
    telnet = dealFacAuth(WebFacTelnet, ip, port, users, pws)
& D  H7 l1 S' M1 h+ Z* p1 w  File "zte_factroymode.py", line 220, in dealFacAuth
) y- L3 u2 x* H: g& l/ v4 P4 ?* m  _    if webfac.reset():
9 c) V. K* A8 l2 f! Z: V6 k  File "zte_factroymode.py", line 59, in reset, w0 @' r/ g- p6 Q% F+ g' N7 c/ V
    resp = self.S.post(f"http://{self.ip}:{self.port}/webFac", data='SendSq.gch')$ w- h" d3 j2 J, v
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\requests\sessions.py", line 635, in post9 a" C3 n: G/ P! F
    return self.request("POST", url, data=data, json=json, **kwargs)7 ^1 I2 V1 m# h" K% I
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\requests\sessions.py", line 587, in request# v, k( b8 d! o& S
    resp = self.send(prep, **send_kwargs)3 V! s5 ?* I& h8 I- m
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\requests\sessions.py", line 701, in send" ~7 w6 G8 h3 Y* R* T4 l
    r = adapter.send(request, **kwargs)2 E8 ]  N6 X: z- X/ u6 P7 j8 q4 v
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\requests\adapters.py", line 547, in send
( Q/ D. U/ z: Q: Y  ^& q% J' s, C    raise ConnectionError(err, request=request)2 P+ G. t7 R6 C* o+ c( U8 B% k( `, H" |
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
 楼主| 发表于 2023-2-2 19:02:33 | 显示全部楼层
bluck88 发表于 2023-2-2 17:43) `6 t3 x8 f/ ~8 l$ Z) ^0 E1 t
D:\python\yang\zte_modem_tools-main>python zte_factroymode.py --user telecomadmin --pass nE7jA%5m -- ...

3 e. g8 A) e& m什么型号的?
发表于 2023-2-3 10:23:42 | 显示全部楼层
douniwandsl 发表于 2023-2-2 19:026 J1 o- K- h) o3 O, Y' j! A) P
什么型号的?
# Q% O, }8 ^: h9 Z- x* [9 O6 U
F450A    8080端口
发表于 2023-2-4 13:26:43 | 显示全部楼层
猫粮花了,没东西,不让下载附件
 楼主| 发表于 2023-2-4 15:38:27 | 显示全部楼层
DIVIDE 发表于 2023-2-4 13:26: W4 F, F9 ]; I+ t2 O  D
猫粮花了,没东西,不让下载附件

0 {) [4 J# s0 X) q8 H& T" J点击就能下载
发表于 2023-2-4 23:23:40 | 显示全部楼层
感谢楼主分享,这个具体要怎么使用呢?下载了,不会用呀。在Windows应用商店里安装了Python,那下载的这个zte_modem_tools-main里面的文件要放在那个文件夹下呢?readme文件,也没看懂如何使用。希望大神指点一下,谢谢啦!
发表于 2023-2-7 01:09:23 | 显示全部楼层
感谢大神,前来膜拜
*滑块验证:
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|宽带技术网 |网站地图 粤公网安备44152102000001号

GMT+8, 2025-5-1 22:06 , Processed in 0.027345 second(s), 5 queries , Redis On.

Powered by Discuz! X3.5 Licensed

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表