楼主: 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
' |; \  g8 c+ L6 J9 U  E, |输出结果
! x# o) Z! `+ xhttps://www.chinadsl.net/forum.php?mod=attachment&aid=MTAzNzkyfGI3YjhjYjRkfDE3ODE1OTQ0NjF8MHw%3D
9 L+ ^; z5 [: Z/ m! e
在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 m2 |8 X4 l1 O/ |) M& K) t1 H
trying  user:"telecomadmin" pass:"nE7jA%5m"" J0 \+ B- @# T$ T+ Y
reset facTelnetSteps:! T8 R; Q; }$ j6 X& x; D
Traceback (most recent call last):* K0 x) p% G' c; k
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 703, in urlopen
9 T3 Q) ^! Z. W( ?, i! A  @    httplib_response = self._make_request(" R  h8 A) l- t' {
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 449, in _make_request
; F, D4 C$ A3 ~/ n    six.raise_from(e, None)5 |7 J, N) a0 C- q- ?3 E- u
  File "<string>", line 3, in raise_from$ ?5 b# P2 v, j! ?  U
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 444, in _make_request
, L" [+ d, L( ?8 a' G    httplib_response = conn.getresponse()! C( h2 T" N  c8 i  h9 w6 ~
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\http\client.py", line 1347, in getresponse
8 A7 H. D/ f! _2 w    response.begin(): @' U, f4 p% t# D5 r2 m' K
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\http\client.py", line 307, in begin* J* f: P, J. ^: q
    version, status, reason = self._read_status()! B( O1 L  B% K3 Z" h) w
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\http\client.py", line 276, in _read_status: s% W& [9 K0 D/ y
    raise RemoteDisconnected("Remote end closed connection without"; Y* S2 T  x: g( O
http.client.RemoteDisconnected: Remote end closed connection without response" [& M) T4 b: N
+ C7 p( @7 l, }. ^7 J; A
During handling of the above exception, another exception occurred:) u/ _3 c5 e; L. a0 w9 ]# [

* Y# ~2 L4 L! jTraceback (most recent call last):# @5 n, S( y% [1 I) ~- _
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\requests\adapters.py", line 489, in send8 B" w* J) `" C& q1 D
    resp = conn.urlopen(0 A- y) ^4 a+ c/ q+ |2 Y
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 787, in urlopen! ]- L7 l$ P  w" w
    retries = retries.increment(
$ ~, M; f8 K) I6 c+ m4 o- @$ Y  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\util\retry.py", line 550, in increment
$ r3 N& Y! j" K. v/ k    raise six.reraise(type(error), error, _stacktrace)# i$ C0 D6 Y9 P3 d4 c, _
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\packages\six.py", line 769, in reraise
6 b7 f" S' O5 A  {5 C% @3 A7 a    raise value.with_traceback(tb)/ k* y# a& G" D& @, q% F6 e
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 703, in urlopen
4 t3 b, x( J' f    httplib_response = self._make_request(+ j9 \6 w+ U4 I  j8 B  m
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 449, in _make_request
. z! ~' ]/ {; K. ^    six.raise_from(e, None)
5 j. H8 ]9 R( i2 Y  File "<string>", line 3, in raise_from+ N7 N$ J; q8 p' N; ~6 O1 ~  f
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 444, in _make_request! N9 Y5 T+ Z6 g6 ?3 _0 F7 o5 f
    httplib_response = conn.getresponse()
0 L  W' h) o$ h9 x- P8 W1 f  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\http\client.py", line 1347, in getresponse
& R: o; i- _$ D4 m, e2 e0 ^    response.begin()
8 l9 `" d  h7 m$ f6 y/ C% P  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\http\client.py", line 307, in begin
5 R& `, u) E2 F+ M: v    version, status, reason = self._read_status()
  {# V* ^* t+ r5 x8 d2 ]5 c4 p  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\http\client.py", line 276, in _read_status
2 _3 a2 |  D7 @: y    raise RemoteDisconnected("Remote end closed connection without") Z) ?! T( p6 V& x0 F* [' Y* j
urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')): g4 |, h& I1 b: R, N% b

4 a4 Q+ s9 T, r  IDuring handling of the above exception, another exception occurred:3 v3 i: o# M+ b" x/ M+ ~

$ R0 ^9 ]: |. xTraceback (most recent call last):7 t0 J( i) f( w* G
  File "zte_factroymode.py", line 314, in <module>
4 @! z: I! ~! t9 }0 v0 r; ?    main()
, Z4 ]& D! ^7 C( \9 {$ l  File "zte_factroymode.py", line 310, in main
' k2 c2 F$ `0 u& S6 z( ]    dealTelnet(args.ip, args.port, args.user, args.pw, args.action)* s) E+ L$ S5 T5 [  A
  File "zte_factroymode.py", line 268, in dealTelnet
; n. O* K, m* G6 M: N7 k1 S    telnet = dealFacAuth(WebFacTelnet, ip, port, users, pws)( w- _9 a" z5 O3 S; c( Q2 N
  File "zte_factroymode.py", line 220, in dealFacAuth& s' Y0 l, a- d, u' e4 ^: l
    if webfac.reset():
2 ]3 }+ ?. k( t  File "zte_factroymode.py", line 59, in reset
5 K# v) ]* ?& V    resp = self.S.post(f"http://{self.ip}:{self.port}/webFac", data='SendSq.gch')% V0 a- C0 Q* s0 u$ d
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\requests\sessions.py", line 635, in post- ~) J; S/ }1 V3 @/ N7 H+ ~/ @! a2 I
    return self.request("POST", url, data=data, json=json, **kwargs)
8 M: w( X% `/ w: Z0 R8 W  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\requests\sessions.py", line 587, in request
5 g3 j) Y' k  x% v6 K8 a( F& p5 Q    resp = self.send(prep, **send_kwargs). b  G9 G& \- T5 o
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\requests\sessions.py", line 701, in send; \: A7 U) P5 a' S: y5 `
    r = adapter.send(request, **kwargs)
/ }& J( _; d/ N  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\requests\adapters.py", line 547, in send
! E7 D8 A4 Y" r* z. h( w* y  a    raise ConnectionError(err, request=request)5 |4 y5 S1 y0 h  l6 [2 M
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
 楼主| 发表于 2023-2-2 19:02:33 | 显示全部楼层
bluck88 发表于 2023-2-2 17:43
3 {0 k( z& f. T* V, @% ID:\python\yang\zte_modem_tools-main>python zte_factroymode.py --user telecomadmin --pass nE7jA%5m -- ...

2 M6 X: ]( l# u/ Q, Q什么型号的?
发表于 2023-2-3 10:23:42 | 显示全部楼层
douniwandsl 发表于 2023-2-2 19:02" o% d6 _$ ?0 t9 v
什么型号的?

1 l$ d& C1 t& w% S( a/ ^; `F450A    8080端口
发表于 2023-2-4 13:26:43 | 显示全部楼层
猫粮花了,没东西,不让下载附件
 楼主| 发表于 2023-2-4 15:38:27 | 显示全部楼层
DIVIDE 发表于 2023-2-4 13:264 e8 T4 A" ]& g
猫粮花了,没东西,不让下载附件
( b2 c  X0 i& ?4 B# e
点击就能下载
发表于 2023-2-4 23:23:40 | 显示全部楼层
感谢楼主分享,这个具体要怎么使用呢?下载了,不会用呀。在Windows应用商店里安装了Python,那下载的这个zte_modem_tools-main里面的文件要放在那个文件夹下呢?readme文件,也没看懂如何使用。希望大神指点一下,谢谢啦!
发表于 2023-2-7 01:09:23 | 显示全部楼层
感谢大神,前来膜拜
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

站长推荐上一条 /1 下一条

相关侵权、举报、投诉及建议等,请发 E-mail:yesdong@qq.com

Powered by Discuz! X5.0 Licensed © 2001-2026 Discuz! Team.44152102000001

在本版发帖QQ客服返回顶部