Advertisement
Guest User

Untitled

a guest
Oct 25th, 2016
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. account=["chris","pass"]
  2. netstat=["oracle","uunet"]
  3. import time
  4. def telnet():
  5. tclient=input("Host: ")
  6. if tclient in netstat:
  7. time.sleep(1)
  8. print ("-"*20)
  9. time.sleep(0.5)
  10. print ("Connected to "+(str(tclient)))
  11. time.sleep(0.5)
  12. print ("-"*20)
  13. usern=input("USERNAME: ")
  14. time.sleep(0.5)
  15. passw=input("PASSWORD: ")
  16. if usern and passw in account:
  17. print ("connected to "+(str(tclient)))
  18. time.sleep(0.5)
  19. print("-"*20)
  20. time.sleep(1)
  21. #enter here the text file in the pycache of the selected host
  22. else:
  23. print ("Host not in netstat, please try again")
  24. telnet()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement