Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import telnetlib
- Host = raw_input("Telnet to Host : ")
- user = raw_input("Username : ")
- pwd = raw_input("Password : ")
- try:
- tel = telnetlib.Telnet(Host)
- tel.read_until('sername:')
- tel.write(user + '\n')
- tel.read_until('assword:')
- tel.write(pwd + '\n')
- print "[+]Login Success..!!"
- tel.close()
- raw_input("Press any Key to quit: ")
- except Exception as e:
- print "[-]Connection Error..!!!"
- raise e
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement