Virus code 5: Clone Virus

This is a virus code of clone virus in c/c++. This virus clones itself. You can convert it into java by making small changes that any java programmer can make out.





Clone virus code. If the image is not visible right click on the image and select 'show picture'



Before you use this virus you need to compile . Just select the complie option in your c compiler. DONT RUN IT OR SELECT THE RUN OPTION, I repeat dont run it. Now exit the compiler . Find the size of the .exe file generated in bytes. Replace the value of "X" with is value(in bytes).

Now recompile it and exit.



What this virus does is it makes all the files in the current directory a virus. You need to find out the header files for yourself as this only for educational purpose . Just remember to run this virus inside a new folder that contains no important exe and normal files . This virus will make them too as virus.



This is intended for c/c++ programmers who have knowledge about data structure. This is only and only for knowledge sake

4 comments:

Sun Shadow said...

Sir in addition to the code, if you give proper interepretation for each step, it would be useful for beginners like me. Because I dont understand the structures like ffblk and all..

Heatblast said...

please please please
for god's sake ask users to use virtual PC for experiments n also suggest ways to get rid of these viruse.

Itbangladesh said...

Does anti virus catch it?

vinay said...

coding is hard to understand

Post a Comment

Join

Join our Yahoo group newsletter. Dont worry we wont spam your inbox.

Ask Questions