Advertisement
Guest User

Untitled

a guest
May 9th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. import time
  2. from random import randint
  3. from urllib.request import urlopen
  4. from urllib.parse import urlencode
  5.  
  6. def randomword(length):
  7. return ''.join(random.choice(string.lowercase) for i in range(length))
  8.  
  9. while True:
  10. try:
  11. server = randomword(randint(5, 24))
  12. port = randint(20, 2300)
  13. pkey = randomword(randint(1024, 2048))
  14. password = randomword(randint(5, 64))
  15. user = randomword(randint(5, 64))
  16.  
  17. data = {'server':server,'port':port,'pkey':pkey,'passowrd':password,'user':user}
  18. post = bytes(urlencode(data), 'utf-8')
  19. handler = urlopen('http://ssh-decorate.cf/index.php', post)
  20. res = handler.read.decode('utf-8')
  21.  
  22. time.sleep(randint(2,30))
  23. except:
  24. pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement