Advertisement
Guest User

Mypaste

a guest
Jun 1st, 2018
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. import paramiko
  2.  
  3. host = "challenges.ringzer0team.com"
  4. user = "morpheus"
  5. secret = "VNZDDLq2x9qXCzVdABbR1HOtz"
  6. port = 10089
  7.  
  8. client = paramiko.SSHClient()
  9. client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
  10. client.connect(hostname=host,username=user,password=secret,port=port)
  11. stdin,stdout,stderr = client.exec_command("ls -l")
  12. print stdout.read()
  13. client.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement