Wednesday 22 August 2012

Batch file



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,
ashu

0 comments:

Post a Comment

 

Get Latest Updates: Subscribe Now | Like Us on Facebook

X