Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- account=["chris","pass"]
- netstat=["oracle","uunet"]
- import time
- def telnet():
- tclient=input("Host: ")
- if tclient in netstat:
- time.sleep(1)
- print ("-"*20)
- time.sleep(0.5)
- print ("Connected to "+(str(tclient)))
- time.sleep(0.5)
- print ("-"*20)
- usern=input("USERNAME: ")
- time.sleep(0.5)
- passw=input("PASSWORD: ")
- if usern and passw in account:
- print ("connected to "+(str(tclient)))
- time.sleep(0.5)
- print("-"*20)
- time.sleep(1)
- #enter here the text file in the pycache of the selected host
- else:
- print ("Host not in netstat, please try again")
- telnet()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement