Basic Worm Creation

Discuss how to write good code, break bad code, your current pet projects, or the best way to approach novel problems

Basic Worm Creation

Post by theavanc on Sat May 30, 2009 1:22 am
([msg=24593]see Basic Worm Creation[/msg])

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.
theavanc
New User
New User
 
Posts: 2
Joined: Thu May 28, 2009 12:11 am
Blog: View Blog (0)


Re: Basic Worm Creation

Post by zenithSmil3 on Sat May 30, 2009 2:59 am
([msg=24596]see Re: Basic Worm Creation[/msg])

Google.


Disclaimer :
HackThisSite does not support illegal activities.
Meh.
User avatar
zenithSmil3
Poster
Poster
 
Posts: 108
Joined: Wed May 13, 2009 8:58 am
Blog: View Blog (0)


Re: Basic Worm Creation

Post by Nines on Sat May 30, 2009 4:59 am
([msg=24602]see Re: Basic Worm Creation[/msg])

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.
User avatar
Nines
Poster
Poster
 
Posts: 191
Joined: Sun Apr 13, 2008 5:57 pm
Blog: View Blog (0)


Re: Basic Worm Creation

Post by zenithSmil3 on Sat May 30, 2009 5:43 am
([msg=24605]see Re: Basic Worm Creation[/msg])

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.
Meh.
User avatar
zenithSmil3
Poster
Poster
 
Posts: 108
Joined: Wed May 13, 2009 8:58 am
Blog: View Blog (0)


Re: Basic Worm Creation

Post by haha01haha01 on Sat May 30, 2009 12:39 pm
([msg=24625]see Re: Basic Worm Creation[/msg])

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.
There are 11 types of people in the world - those who understand binary, those who don't and those who already heard this joke.
User avatar
haha01haha01
Poster
Poster
 
Posts: 134
Joined: Tue Jan 13, 2009 10:08 am
Location: HackThisSite.org
Blog: View Blog (0)


Re: Basic Worm Creation

Post by fiftysixer on Sun May 31, 2009 3:13 pm
([msg=24676]see Re: Basic Worm Creation[/msg])

Moved thread to proper place - this has nothing to do with the HTS Programming missions.
Image
Big fan of Image
fiftysixer
Experienced User
Experienced User
 
Posts: 88
Joined: Thu Mar 26, 2009 6:50 pm
Blog: View Blog (0)



Return to Programming

Who is online

Users browsing this forum: No registered users and 0 guests