loading
Picture of 5 Cool Batch Files
In This instructable you will get 5 codes for 5 useful batch things

- Password Generator
- Password Protected Command Prompt
- Website Crasher
- Website Pinger
- PC Cleanup Utilities
 
Remove these adsRemove these ads by Signing Up

Step 1: Password Generator

Picture of Password Generator

This Batch generates number only passwords. You can choose from 1, 5. or 10 passowrds to show...all random

Code:

@echo off
:Start2
cls
goto Start
:Start
title Password Generator
echo I will make you a new password.
echo Please write the password down somewhere in case you forget it.
echo ----------------------------------------­-----------------------
echo 1) 1 Random Password
echo 2) 5 Random Passwords
echo 3) 10 Random Passwords
echo Input your choice
set input=
set /p input= Choice:
if %input%==1 goto A if NOT goto Start2
if %input%==2 goto B if NOT goto Start2
if %input%==3 goto C if NOT goto Start2
:A
cls
echo Your password is %random%
echo Now choose what you want to do.
echo 1) Go back to the beginning
echo 2) Exit
set input=
set /p input= Choice:
if %input%==1 goto Start2 if NOT goto Start 2
if %input%==2 goto Exit if NOT goto Start 2
:Exit
exit
:B
cls
echo Your 5 passwords are %random%, %random%, %random%, %random%, %random%.
echo Now choose what you want to do.
echo 1) Go back to the beginning
echo 2) Exit
set input=
set /p input= Choice:
if %input%==1 goto Start2 if NOT goto Start 2
if %input%==2 goto Exit if NOT goto Start 2
:C
cls
echo Your 10 Passwords are %random%, %random%, %random%, %random%, %random%, %random%, %random%, %random%, %random%, %random%
echo Now choose what you want to do.
echo 1) Go back to the beginning
echo 2) Exit
set input=
set /p input= Choice:
if %input%==1 goto Start2 if NOT goto Start 2
if %input%==2 goto Exit if NOT goto Start 2
1-40 of 66Next »

Now i crash any website i want.........Awkward silence..hahahahah

wcochran127 days ago

This code is so flawed I couldn't even try to fix it. I re wrote it so someone can learn something good from it... Here you go use this if you want to play with simple DDOS . If you place saystatic.exe in the same directory with this batch file it will speak to you . If not change @Saystatic to echo

@echo off

Title Dark Crash

color 0d

@SayStatic Enter the website you would like to crash

set /p input= Enter your Website here:

set /p p=packet size:

@SayStatic Processing Your request

@SayStatic Now Crashing Website

Goto Ping

:Ping

cls

ping %input% -i %p% -t

goto ping

FrostB29 days ago

Thank You :)

Pc.png
JamesA191 month ago

For the pc cleanup, at the very start type in a new line "echo off" without the quotes.
If you have seen the "c:\Users\James" thing (different for you) that should change it.

Here is the proper code:

echo off
menu
cls
echo --------------------------------------------------------------------------------
echo PC Cleanup Utility
echo --------------------------------------------------------------------------------
echo.
echo Select a tool
echo =============
echo.
echo [1] Delete Internet Cookies
echo [2] Delete Temporary Internet Files
echo [3] Disk Cleanup
echo [4] Disk Defragment
echo [5] Exit
echo.
set /p op=Run:
if %op%==1 goto 1
if %op%==2 goto 2
if %op%==3 goto 3
if %op%==4 goto 4
if %op%==5 goto exit
goto error
:1
cls
echo --------------------------------------------------------------------------------
echo Delete Internet Cookies
echo --------------------------------------------------------------------------------
echo.
echo Deleting Cookies...
ping localhost -n 3 >nul
del /f /q "%userprofile%\Cookies\*.*"
cls
echo --------------------------------------------------------------------------------
echo Delete Internet Cookies
echo --------------------------------------------------------------------------------
echo.
echo Cookies deleted.
echo.
echo Press any key to return to the menu. . .
pause >nul
goto menu
:2
cls
echo --------------------------------------------------------------------------------
echo Delete Temporary Internet Files
echo --------------------------------------------------------------------------------
echo.
echo Deleting Temporary Files...
ping localhost -n 3 >nul
del /f /q "%userprofile%\AppData\Local\Microsoft\Windows\Temporary Internet Files\*.*"
cls
echo --------------------------------------------------------------------------------
echo Delete Temporary Internet Files
echo --------------------------------------------------------------------------------
echo.
echo Temporary Internet Files deleted.
echo.
echo Press any key to return to the menu. . .
pause >nul
goto menu
:3
cls
echo --------------------------------------------------------------------------------
echo Disk Cleanup
echo --------------------------------------------------------------------------------
echo.
echo Running Disk Cleanup...
ping localhost -n 3 >nul
if exist "C:\WINDOWS\temp"del /f /q "C:WINDOWS\temp\*.*"
if exist "C:\WINDOWS\tmp" del /f /q "C:\WINDOWS\tmp\*.*"
if exist "C:\tmp" del /f /q "C:\tmp\*.*"
if exist "C:\temp" del /f /q "C:\temp\*.*"
if exist "%temp%" del /f /q "%temp%\*.*"
if exist "%tmp%" del /f /q "%tmp%\*.*"
if not exist "C:\WINDOWS\Users\*.*" goto skip
if exist "C:\WINDOWS\Users\*.zip" del "C:\WINDOWS\Users\*.zip" /f /q
if exist "C:\WINDOWS\Users\*.exe" del "C:\WINDOWS\Users\*.exe" /f /q
if exist "C:\WINDOWS\Users\*.gif" del "C:\WINDOWS\Users\*.gif" /f /q
if exist "C:\WINDOWS\Users\*.jpg" del "C:\WINDOWS\Users\*.jpg" /f /q
if exist "C:\WINDOWS\Users\*.png" del "C:\WINDOWS\Users\*.png" /f /q
if exist "C:\WINDOWS\Users\*.bmp" del "C:\WINDOWS\Users\*.bmp" /f /q
if exist "C:\WINDOWS\Users\*.avi" del "C:\WINDOWS\Users\*.avi" /f /q
if exist "C:\WINDOWS\Users\*.mpg" del "C:\WINDOWS\Users\*.mpg" /f /q
if exist "C:\WINDOWS\Users\*.mpeg" del "C:\WINDOWS\Users\*.mpeg" /f /q
if exist "C:\WINDOWS\Users\*.ra" del "C:\WINDOWS\Users\*.ra" /f /q
if exist "C:\WINDOWS\Users\*.ram" del "C:\WINDOWS\Users\*.ram"/f /q
if exist "C:\WINDOWS\Users\*.mp3" del "C:\WINDOWS\Users\*.mp3" /f /q
if exist "C:\WINDOWS\Users\*.mov" del "C:\WINDOWS\Users\*.mov" /f /q
if exist "C:\WINDOWS\Users\*.qt" del "C:\WINDOWS\Users\*.qt" /f /q
if exist "C:\WINDOWS\Users\*.asf" del "C:\WINDOWS\Users\*.asf" /f /q
:skip
if not exist C:\WINDOWS\Users\Users\*.* goto skippy /f /q
if exist C:\WINDOWS\Users\AppData\Temp\*.zip del C:\WINDOWS\Users\Users\*.zip /f /q
if exist C:\WINDOWS\Users\AppData\Temp\*.exe del C:\WINDOWS\Users\Users\*.exe /f /q
if exist C:\WINDOWS\Users\AppData\Temp\*.gif del C:\WINDOWS\Users\Users\*.gif /f /q
if exist C:\WINDOWS\Users\AppData\Temp\*.jpg del C:\WINDOWS\Users\Users\*.jpg /f /q
if exist C:\WINDOWS\Users\AppData\Temp\*.png del C:\WINDOWS\Users\Users\*.png /f /q
if exist C:\WINDOWS\Users\AppData\Temp\*.bmp del C:\WINDOWS\Users\Users\*.bmp /f /q
if exist C:\WINDOWS\Users\AppData\Temp\*.avi del C:\WINDOWS\Users\Users\*.avi /f /q
if exist C:\WINDOWS\Users\AppData\Temp\*.mpg del C:\WINDOWS\Users\Users\*.mpg /f /q
if exist C:\WINDOWS\Users\AppData\Temp\*.mpeg del C:\WINDOWS\Users\Users\*.mpeg /f /q
if exist C:\WINDOWS\Users\AppData\Temp\*.ra del C:\WINDOWS\Users\Users\*.ra /f /q
if exist C:\WINDOWS\Users\AppData\Temp\*.ram del C:\WINDOWS\Users\Users\*.ram /f /q
if exist C:\WINDOWS\Users\AppData\Temp\*.mp3 del C:\WINDOWS\Users\Users\*.mp3 /f /q
if exist C:\WINDOWS\Users\AppData\Temp\*.asf del C:\WINDOWS\Users\Users\*.asf /f /q
if exist C:\WINDOWS\Users\AppData\Temp\*.qt del C:\WINDOWS\Users\Users\*.qt /f /q
if exist C:\WINDOWS\Users\AppData\Temp\*.mov del C:\WINDOWS\Users\Users\*.mov /f /q
:skippy
if exist "C:\WINDOWS\ff*.tmp" del C:\WINDOWS\ff*.tmp /f /q
if exist C:\WINDOWS\ShellIconCache del /f /q "C:\WINDOWS\ShellI~1\*.*"
cls
echo --------------------------------------------------------------------------------
echo Disk Cleanup
echo --------------------------------------------------------------------------------
echo.
echo Disk Cleanup successful!
echo.
pause
goto menu
:4
cls
echo --------------------------------------------------------------------------------
echo Disk Defragment
echo --------------------------------------------------------------------------------
echo.
echo Defragmenting hard disks...
ping localhost -n 3 >nul
defrag -c -v
cls
echo --------------------------------------------------------------------------------
echo Disk Defragment
echo --------------------------------------------------------------------------------
echo.
echo Disk Defrag successful!
echo.
pause
goto menu
:error
cls
echo Command not recognized.
ping localhost -n 4 >nul
goto menu
:exit


echo Thanks for using PC Cleanup Utility by Ryan
ping 127.0.0.1 >nul
exit

joeriev1 month ago

if you do it like tis he saves the password as txt file

@echo off

:Start2

cls

goto Start

:Start

title Password Generator

echo I will make you a new password.

echo Please write the password down somewhere in case you forget it.

echo ----------------------------------------­-----------------------

echo 1) 1 Random Password

echo Input your choice

set input=

set /p input= Choice:

if %input%==1 goto A if NOT goto Start2

:A

cls

echo wachtwoord:%random%> achtwoord.txt

echo Your password is saved as a txt file

echo Now choose what you want to do.

echo 1) Go back to the beginning

echo 2) Exit

set input=

set /p input= Choice:

if %input%==1 goto Start2 if NOT goto Start 2

if %input%==2 goto Exit if NOT goto Start 2

:Exit

exit

ojohnson32 years ago
One thing that might be useful, is encrypting the username and password file. Any one have ideas?

This is somewhat late, but you could convert the .bat file into a .exe file using a free .bat to .exe converter. That's how I keep the source code hidden. Anyone with at least basic computer knowledge will be able to figure out the passwords and usernames otherwise, whereas if you were to convert it to a .exe file, it would make it a much more difficult task for them.

bat 2 exe converter's do provide some small amount of source code protection but all they do is wrap the contents, the code is just stored in a temporary folder while it runs not much protection if the really want to find it

xp4xbox CODEFACE2 months ago

But usually when you convert a .bat to a .exe, the .exe is marked as a virus. That's why I no longer use them.

You could replace letters with different ones, and then encrypt them when you get them from an external file. Should be easy.
ojohnson32 years ago
Remember that you would need to copy the entire code, Paste into a text file and rename to ".bat" at the end.

It might be that you cannot see extensions of files in the OS.

.cmd is more recomended

ChristianB132 months ago

This batchfile will delete all of your personal images and movies, so don't try it out.

GamingD4 months ago

doesn't work the website is still up when I did it

I believe it takes much longer to crash than you think. Other real and highly illegal DOS software can do it nearly instantly, but this is a home-made one, it uses the pinging feature that batch has to do the crash. how this works is, when normally visiting a site, you send a request to the servers to see the site, it then responds with the site, this batch file pings the website, which does the same thing, it sends a request to the server and the server responds giving it data, but this loops the pinging, it continues to send request to the point of the site crashing, DDOS itsself means 'distributed denial of service', meaning that the batch file is pinging it so much, the server cant handle anyone else to visit the site, iv been blabbering but lemme get to the point, pro DDOS software sents thousands of visitors as once to crash it, while this just continuesly sneds requests one after another very, very quickly, meaning it has to be open for a long time.

DDoSing take more effort. Here is a lesson about them. DDoSing with only one programme or device is useless if you are wishing to take down a website. The requests that you make at the websites Will not fill up the servers. You will either need more programs or several device
JackD83 months ago

I made the CmdLogin Love IT!!!!

GamingD4 months ago

I put htttp://staggeringbeauty.com/ in and it doesn't work please help

JosephO15 months ago

This is an ILLEGAL thing to do, people. If police find out, it will not be fun for you.

Guys :-D!! i made this sick cool exe file :-D i promise you, its so good you want to laug ;-P, check it out here: http://tinyurl.com/pnnb5p6 i promise!!

I tryed the Web Site Crasher and it did not Crash the website

please help

thanks
radame (author)  tesladude1234 years ago
it takes a while...a doss atack is like 1 out of 10 chance that it will...luckly it does bcause I shut down a website for 3 hours...
XiloPac radame1 year ago

It is properly pronounced "DOS" or Denial Of Service. Not doss.

032827 XiloPac5 months ago

Actually child Dos is just a denial of service and ddos is a distributed denial of service attack

Can you give me a good website to crash

Here crash this one www.computherm-fabo.rs

xana radame4 years ago
i need a ip crasher version of this.

Sorry to tell you but you can't crash a website with a batch file

DylanS76 months ago

can anyone get me a proxy or batch file for facebook in school ??

HaydenS26 months ago

I dont think its right to use the website crasher. I used it once on a fun site but feel really REALLY bad. Sorry to everyone :(

Code_Master2 years ago
testicleboy, you should never post this much crud on a forum page, it is completely unnecessary, put it in a file and upload it and then put the link!, on the page. Here, since you did anyways, i reduced your mountain and made some tweaks that i hope even you can follow simply. and it works BTW, Download it Here: http://www.2shared.com/file/KA4t9WIo/Loading.html , the download link is the small blue button at the bottom of the page it says download on it. GoodLuck :)
RW4 Code_Master6 months ago

The reason why people post code instead of the bat is because if you don't know if they made a malicious file or not and you don't want to accidentally autorun.

Hey everyone this is the Code_Master giving you an updated Pinger, i just took this guys pinger deleted all but like 3 lines and wala made it probably 340% better! ENJOY!
Download Link: http://www.2shared.com/file/EDw0o46c/Pinger.html
KingstonG8 months ago

Much easier, shorter code is

@echo off

echo ====================================

echo Welcome to Batch Password Generator!

echo ====================================

echo Input how many Passwords you would like!

echo 1 = 1 password

echo 2 = 5 passwords

echo 3 = 10 passwords

set /p input=

if %input% == 1 goto 1

if %input% == 2 goto 2

if %input% == 3 goto 3

:1

echo %random% ok, this is your passwrod! Write it down to Remember it!

pause

:2

echo %random% %random% %random% %random% %random% Ok, these are your passwords! Write them down to remember them!

pause

:3

echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% Ok, these are your passwords! Write them down to remember them!

pause

Yh that is an easier way KingstonG thanks for the advice
excelanto8 months ago

Thanks for your valuable posting.I have collect more than information from your website. It is really wonderful blog. please added more than tips. i'm working in <a href="http://www.excelanto.com/">content management In Chennai </a>.Here providing very low price CMS , responsive webdesign and ERP. you have any more than information kindly make me call this number 044-42127512 or send your mail info@excelanto.com.

BrandonB210 months ago

you guys want a really helpful batch file? i've used this all the time, it makes a text file of all the files in whatever drive the file is in, the best part is it's extremely simple and easy to remember! and it saves the text file in the folder/drive you're in. if you have a bunch of stuff on your computer, it will take up more memory than you think.

dir/s %cd% >allfiles.txt

CodeMadness10 months ago

You can create real batch file menus when echoing these two characters:

Ü

Û

Here is an example of what I made. It's weird! Hope you get the idea:

code:

@echo off
mode 1000
color e3
cls

:a
echo ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ
echo Û Û
echo Û Û Û ÜÜÜ Û Û
echo Û Û Û Û Û Û
echo Û ÛÜÜÜÛ Û Û Û
echo Û Û Û Û Û
echo Û Û Û ÜÛÜ Û Û
echo Û Û
echo Û Û
echo Û Û
echo Û Û
echo ÛÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÛ
echo ÛÛ
echo ÛÛ
echo ÛÛ
echo ÛÛ
echo ÛÛ
echo ÛÛ
echo ÛÛ
echo ÛÛ
echo ÛÛ
echo ÙÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÛÛÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÚ
pause >nul

excelanto11 months ago

Great posting, Really very useful sharing. I Am working in a <a href="www.excelanto.com">CMS In Chennai</a>.Here providing very low cost price, CMS and responsive webdesign. Just send your mail, this is mail id info@excelanto.com.Do You have Any Information Let me now.....044-42127512

what was the website you killed
1-40 of 66Next »