Tuesday, December 22, 2009

C++ warm-like program - A virus spreading mechanism.

IMPORTANT: THIS INFORMATION IS FOR EDUCATIONAL PURPOSES ONLY. I'M NOT RESPONSIBLE FOR YOU USING IT THE WRONG WAY, AND ALSO GETTING IN TROUBLE BY DOING SO. DO WHATEVER YOU DO AT YOUR OWN RISK!!!


Some time ago i wrote this C++ worm-like program with VC6.

What it does:
(1) When run on Windows (XP), it checks what apps are running on the system, and overwrites (infects) their exe files. (no system file is touched)
(2) When an infected file is run, the worm is executed 1st, then the actual program is run.
(3) Waits for a floppy disk insertion and overwrites the 1st file found in it. The origional file is backedup.

It does no actual harm to the computer, just displays a message. Though run this only on a computer/windows installation you don't use for every day purposes. Because it'll overwrite some exes.

At this point all it does is displaying a message when an infected file is run, but you can add additional code to do whatever you want! What this program got is a virus spreading mechanism.



(C) Kasun Liyanage (geekat02@yahoo.com)

No comments:

Post a Comment