Page 1 of 1

Basic Worm Creation

PostPosted: Sat May 30, 2009 1:22 am
by theavanc
Hello,
I have been a little fixated on worms and there creation lately. I understand how they work and what they do but my programming skills are currently fairly basic. I was hoping someone might be able to give me some ideas or at least a jumping off point for a simple worm. If its possible my programming language of choice is python. Thank you, any help is greatly appreciated.

Re: Basic Worm Creation

PostPosted: Sat May 30, 2009 2:59 am
by zenithSmil3
Google.


Disclaimer :
HackThisSite does not support illegal activities.

Re: Basic Worm Creation

PostPosted: Sat May 30, 2009 4:59 am
by Nines
zenithSmil3 wrote:Google.


Disclaimer :
HackThisSite does not support illegal activities.


This is a completely pointless post. What he is asking isn't illegal in the slightest. He mentioned nothing about releasing them. What is to say he isn't writing it to test on his own network? Really, if people can't ask questions here, then why do we bother having a forum? Please give a little more thought to your comments before you click the submit button.

@theavanc:

There used to be some dated examples on http://www.62nds.co.nz, although they removed all of their source due to hosting conflicts. I will say this:

Asking for worm source code in IRC channels, etc, is a risky business, especially if they are newer worms as it looks like you're going to be the author of the next variant. You don't want to get caught writing anything that goes beyond your own computer or network, and don't listen to stupid people that say it'll magically escape. If you write your own worm, you know what it does, so you can have as much fun with it as you like. I know someone personally (lived just down the road) who was arrested and sent to a pound-me-in-the-ass prison for 2 years for writing worms and sending them off into the wild, so it's not worth any 5 minutes of fame for doing it. So if your intention is to release it into the wild, you're asking for trouble that you won't want.

Aside from that, if you're doing this to test your network and just see if it can spread its self, then you can't really use python, as it's an interpreted language. It'd need to be compiled to binary to be effective and when you have to have specific criteria just for your script to run on a potential target, then the chances of spreading are slim. So for this reason I'd probably stick with C/C++.

If you know how they work, then you just basically code that. You need to do all the basic stuff like add it to the registry for startup, copy to hidden folders, work out your method of computer to computer copying, etc.

For examples of this, look for popular, old virus source code. Blaster, Sasser, Netsky, etc. There are examples dotted all over the internet, many of which will have been heavily commented so it's worth having a look for those.

Re: Basic Worm Creation

PostPosted: Sat May 30, 2009 5:43 am
by zenithSmil3
Hmm... sorry about that, I misinterpreted it and based it upon another thread that I found.

Does anyone know of a website or book or any resource that is related to programming viruses? I have listened to a few of the con lectures and want to see what's "running under the hood" so to speak. The only extensive resource i have found to date is the little black book of viruses by Ludwig but it is an old book and somewhat of a slow read. Any direction would be greatly appreciated.


Upon reflection, I realize they're both in completely different context.

Re: Basic Worm Creation

PostPosted: Sat May 30, 2009 12:39 pm
by haha01haha01
theavanc wrote:Hello,
I have been a little fixated on worms and there creation lately. I understand how they work and what they do but my programming skills are currently fairly basic. I was hoping someone might be able to give me some ideas or at least a jumping off point for a simple worm. If its possible my programming language of choice is python. Thank you, any help is greatly appreciated.


The main problem with coding these things is how to spread them... Lets say one computer got infected. Now what? Real worms are usually based on exploits that let them inject themselves into other computers, in order to spread fast. The rest is fairly simple, depending on what you want the worm to do.

Re: Basic Worm Creation

PostPosted: Sun May 31, 2009 3:13 pm
by fiftysixer
Moved thread to proper place - this has nothing to do with the HTS Programming missions.