|
发表于 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 open4 x, G* p3 ^* l0 ]. q
trying user:"telecomadmin" pass:"nE7jA%5m"3 ]5 D! [! A0 P% K* f; r6 F5 z% A
reset facTelnetSteps:
' v6 |: R1 |! p* K% ~ L' KTraceback (most recent call last):6 C! j' Z; ]' z1 V( _: Y
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 703, in urlopen1 q" j q) f1 d1 C/ y/ \
httplib_response = self._make_request(6 s/ Z+ B$ Z2 Q9 J" Z" \
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 449, in _make_request
' Z# ]. k7 K" O. x& E8 [2 d3 @$ ^ six.raise_from(e, None)1 \. q3 ~7 V. ]2 Z/ W
File "<string>", line 3, in raise_from
8 c# R. \2 Q3 u! O" M5 b x File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 444, in _make_request2 ` o* D& E$ l1 J; e
httplib_response = conn.getresponse()
. q3 k! E: [7 V# ?% ~' W File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\http\client.py", line 1347, in getresponse. P- d: A. `% ]6 y8 X ]
response.begin()# U- u |0 d) f( H
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\http\client.py", line 307, in begin
7 e, l7 i( R$ a/ o4 A) { version, status, reason = self._read_status(); ^' [6 g" k- l8 B$ z) ~
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\http\client.py", line 276, in _read_status
5 s2 O8 ]2 E5 I raise RemoteDisconnected("Remote end closed connection without"5 v) t( d. `: u+ E3 J' V& K, |
http.client.RemoteDisconnected: Remote end closed connection without response
* s g; m$ [5 j# h; p% m3 x4 y6 _* S+ ~2 E$ q
During handling of the above exception, another exception occurred:
9 ~: k& e( l) x. T
% U! \# l( }# kTraceback (most recent call last):. A- ^; j6 f% x& L8 {+ {
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\requests\adapters.py", line 489, in send
! N: a6 J1 b1 ]# a- J3 \& o resp = conn.urlopen(8 ~& e6 P6 s+ Z; b
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 787, in urlopen7 Z( S/ \) F+ E4 A6 C
retries = retries.increment(
1 F& \1 [8 |4 e4 c7 ^ File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\util\retry.py", line 550, in increment
4 k- G2 r$ e1 s* P1 V M) r0 w* z raise six.reraise(type(error), error, _stacktrace)
# _8 v& P& C j5 o! A/ V' ?6 C1 [ File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\packages\six.py", line 769, in reraise, b- R! ?4 ` v0 C, \+ y$ I1 C8 n0 J
raise value.with_traceback(tb)/ i' ^. ?# v3 c, I) N
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 703, in urlopen( G9 c6 C- e& c5 @- V
httplib_response = self._make_request(5 B$ [- A' A. A9 }+ j5 v( Q
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 449, in _make_request% C# z9 H! f! v6 I
six.raise_from(e, None)
: e# q. ]; ]' _9 s6 W% F3 K File "<string>", line 3, in raise_from- F5 u- F7 h E
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 444, in _make_request' k: ^+ Q& b4 f: P1 Z" B
httplib_response = conn.getresponse()
- B9 J! f( ?- U' i File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\http\client.py", line 1347, in getresponse; v, P' g7 I4 B( z
response.begin()
4 q# j8 j* j( y9 }, J File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\http\client.py", line 307, in begin
3 r) F6 N( v9 T' P- V version, status, reason = self._read_status()8 {/ O3 Q3 G& [
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\http\client.py", line 276, in _read_status. V, P7 B9 a* Y. C- v
raise RemoteDisconnected("Remote end closed connection without"
, a' }, \2 P5 Y* D3 J. l3 iurllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
8 _8 S, v, A( S7 D1 u- m0 I7 C) i
9 t% U2 {% ]% Z' D: z6 f: @& TDuring handling of the above exception, another exception occurred:! }: S9 v" I5 i1 A+ a$ D. j
. ]" J+ @; ?, P* V y: rTraceback (most recent call last):6 { q( d; ] `& `5 E
File "zte_factroymode.py", line 314, in <module>
- D" @ t; L1 | main()
& P7 I; P% B# s" I' n( p File "zte_factroymode.py", line 310, in main
$ \1 E* N% m7 g. d4 _ dealTelnet(args.ip, args.port, args.user, args.pw, args.action)! N& N1 n# z: R1 W- _; u4 Z' v
File "zte_factroymode.py", line 268, in dealTelnet( w- j0 {% p" |8 m, e( H
telnet = dealFacAuth(WebFacTelnet, ip, port, users, pws); r: q8 A E; [ I `3 d$ L+ C
File "zte_factroymode.py", line 220, in dealFacAuth3 J3 w' J# W0 O
if webfac.reset():
+ O ` N! f* b, m! P File "zte_factroymode.py", line 59, in reset6 y- [6 `3 U2 U$ l
resp = self.S.post(f"http://{self.ip}:{self.port}/webFac", data='SendSq.gch')
" F6 h! k, w/ a6 o File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\requests\sessions.py", line 635, in post/ |& o+ b( q* \' K# b
return self.request("POST", url, data=data, json=json, **kwargs)
' c" [% `% y+ u! D1 Z1 l/ o8 h, ~7 k File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\requests\sessions.py", line 587, in request
( b( l3 Q9 n, t4 U1 G" r- p resp = self.send(prep, **send_kwargs)
" l q! b/ a, p& C File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\requests\sessions.py", line 701, in send+ y Z+ A+ c y4 {6 x! ?; W
r = adapter.send(request, **kwargs)
8 h2 ?( }/ n% C1 b) g! O File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\requests\adapters.py", line 547, in send
- u: y+ D. I$ d6 s raise ConnectionError(err, request=request)/ Y6 [9 z! s9 y0 u I, U
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) |
|