Instructables

5 Cool Batch Files

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 42Next »
ojohnson31 year 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.

You could replace letters with different ones, and then encrypt them when you get them from an external file. Should be easy.
I tryed the Web Site Crasher and it did not Crash the website

please help

thanks

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

radame (author)  tesladude1233 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 radame2 months ago

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

Can you give me a good website to crash
xana radame3 years ago
i need a ip crasher version of this.
Regulators3 months ago

this is cool, but i made my own batch file, that allow you to download file from internet, just like download manager. please visit this instructables

http://www.instructables.com/id/How-To-download-Fi...

thanks dude!

Decim81 year ago
if anyone needs me to crash a website please ask, this program will not do anything, but i have made my own.

If anyone would please crash my school website, fairmont.k12.mn.us that would be great. Or if you're in for more of a challenge you could crash skyward.com :P

hay send me an email if your still interested in the school site thing my email is ddogss196@gmail.com

ddogs196 Decim84 months ago

hay can you send me the commands for it cause i have to be connected to a server to crash the site and the server

Decim8 would you give out this version that "works"
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 :)
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
bdblock943 years ago
is there any way i could program this so that it crashes a set website as soon as it is opened?
Unfortunately, you can't instantly crash it. It does the equivalent of opening a thousand tabs of the website, and it can't do it instantly. If you want it to open IE, just do "start www.example.com" and that'll open it in your default browser.
MonkiMan1 year ago
you can just go to command prompt and type ping www.google.com (insert the website you need) much easer
Tetheu981 year ago
Made this one cause I think that instead of choosing how many you want, the number of digits it has. Seems a bit more useful.

@echo off
:Start
rem This will basically reset everything
cls
color 07
title Password Generator
echo I will make you a new password.
echo Please write the password down somewhere in case you forget it.
echo This may take a little while to generate.
echo -----------------------------------------------------------------
echo 1) 3 digits password
echo 2) 4 digits password
echo 3) 5 digits password
echo 4) 6 digits password
echo 5) Exit
set /p choice=
if %choice%==1 goto Three
if %choice%==2 goto Four
if %choice%==3 goto Five
if %choice%==4 goto Six
if %choice%==5 exit
:Wrong
echo %choice% is not valid.
echo Choose one of the options
echo above.
ping localhost -n >nul 3
goto Start
:Three
cls
set /a three=%random%
if /i %three% gtr 999 goto Three
if /i %three% lss 100 goto Three
goto Threeok
:Threeok
cls
echo. & echo.
echo Your 3 digits password is %three%
echo Press ENTER
pause>nul
goto Start
:Four
cls
set /a four=%random%
if /i %four% gtr 9999 goto Four
if /i %four% lss 1000 goto Four
goto Fourok
:Fourok
cls
echo. & echo.
echo Your 4 digits password is %four%.
echo Press ENTER
pause>nul
goto Start
:Five
cls
set /a five=%random%
if /i %five% gtr 99999 goto Five
if /i %five% lss 10000 goto Five
goto Fiveok
:Fiveok
cls
echo. & echo.
echo Your 5 digits password is %five%.
echo Press ENTER
pause>nul
goto Start
:Six
cls
echo Generating...
set /a six=%random%%random%
if /i %six% gtr 999999 goto Six
if /i %six% lss 100000 goto Six
goto Sixok
:Sixok
cls
echo. & echo.
echo Your 6 digits password is %six%.
echo Press ENTER
pause>nul
goto Start
You could shorten your code monumentally by incorporating modulo expressions to constrain the value of the random number.

Example:
set /a num=%random% %% 999

The above would generate a random number between 999 and 0. You can change the minimum number using this method:

set /a num=%random% %% 6 + 1

The above method could be used for a dice in games. It will generate a random number between 6 and 1 (1,2,3,4,5,6).

So, instead of adding all of those sections:

@echo off
setlocal enabledelayedexpansion

:top
cls
echo Welcome to the magical password maker!
echo It only makes passwords that are all numbers.
echo Maximum of 5 characters
echo Type in the amount of digits you want your password to be...
set /p len=
if %len% gtr 10 goto top
if %len% equ 1 set /a pass=%random% %% 10
if %len% equ 2 set /a pass=%random% %% 90 + 10
if %len% equ 3 set /a pass=%random% %% 990 + 100
if %len% equ 4 set /a pass=%random% %% 9990 + 1000
if %len% equ 5 set /a pass=%random% %% 99990 + 10000
cls
echo ...And your password is
echo.
echo %pass%
pause>nul
goto top

Although your idea has been used in many ways, such as Guess the Number games and what not.

Good effort, if you need any help, just ask.



Tetheu981 year ago
Sorry for the English mistakes. I'm Brazilian, English isn't my native language. :P
olijake1 year ago
In reply to "testicle boy":

I do not know if this is too late, but here is the code:
----------------
@echo off
color 09
for /L %%a in (0,1,99) do (
cls
echo loading %a%%
ping localhost -n 1 >nul
)
cls
echo loading 100%
ping localhost -n 2 >nul
i know this is not with the subject but help me make this shorter :)
@echo off
color 09
echo loading 1 %
ping localhost -n 1 >nul
cls
echo loading 2 %
ping localhost -n 1 >nul
cls
echo loading 3 %
ping localhost -n 1 >nul
cls
echo loading 4 %
ping localhost -n 1 >nul
cls
echo loading 5 %
ping localhost -n 1 >nul
cls
echo loading 6 %
ping localhost -n 1 >nul
cls
echo loading 7 %
ping localhost -n 1 >nul
cls
echo loading 8 %
ping localhost -n 1 >nul
cls
echo loading 9 %
ping localhost -n 1 >nul
cls
echo loading 10 %
ping localhost -n 1 >nul
cls
echo loading 11 %
ping localhost -n 1 >nul
cls
echo loading 12 %
ping localhost -n 1 >nul
cls
echo loading 13 %
ping localhost -n 1 >nul
cls
echo loading 14 %
ping localhost -n 1 >nul
cls
echo loading 15 %
ping localhost -n 1 >nul
cls
echo loading 16 %
ping localhost -n 1 >nul
cls
echo loading 17 %
ping localhost -n 1 >nul
cls
echo loading 18 %
ping localhost -n 1 >nul
cls
echo loading 19 %
ping localhost -n 1 >nul
cls
echo loading 20 %
ping localhost -n 1 >nul
cls
echo loading 21 %
ping localhost -n 1 >nul
cls
echo loading 22 %
ping localhost -n 1 >nul
cls
echo loading 23 %
ping localhost -n 1 >nul
cls
echo loading 24 %
ping localhost -n 1 >nul
cls
echo loading 25 %
ping localhost -n 1 >nul
cls
echo loading 26 %
ping localhost -n 1 >nul
cls
echo loading 27 %
ping localhost -n 1 >nul
cls
echo loading 28 %
ping localhost -n 1 >nul
cls
echo loading 29 %
ping localhost -n 1 >nul
cls
echo loading 30 %
ping localhost -n 1 >nul
cls
echo loading 31 %
ping localhost -n 1 >nul
cls
echo loading 32 %
ping localhost -n 1 >nul
cls
echo loading 33 %
ping localhost -n 1 >nul
cls
echo loading 34 %
ping localhost -n 1 >nul
cls
echo loading 35 %
ping localhost -n 1 >nul
cls
echo loading 36 %
ping localhost -n 1 >nul
cls
echo loading 37 %
ping localhost -n 1 >nul
cls
echo loading 38 %
ping localhost -n 1 >nul
cls
echo loading 39 %
ping localhost -n 1 >nul
cls
echo loading 40 %
ping localhost -n 1 >nul
cls
echo loading 41 %
ping localhost -n 1 >nul
cls
echo loading 42 %
ping localhost -n 1 >nul
cls
echo loading 43 %
ping localhost -n 1 >nul
cls
echo loading 44 %
ping localhost -n 1 >nul
cls
echo loading 45 %
ping localhost -n 1 >nul
cls
echo loading 46 %
ping localhost -n 1 >nul
cls
echo loading 47 %
ping localhost -n 1 >nul
cls
echo loading 48 %
ping localhost -n 1 >nul
cls
echo loading 49 %
ping localhost -n 1 >nul
cls
echo loading 50 %
ping localhost -n 1 >nul
cls
echo loading 51 %
ping localhost -n 1 >nul
cls
echo loading 52 %
ping localhost -n 1 >nul
cls
echo loading 53 %
ping localhost -n 1 >nul
cls
echo loading 54 %
ping localhost -n 1 >nul
cls
echo loading 55 %
ping localhost -n 1 >nul
cls
echo loading 56 %
ping localhost -n 1 >nul
cls
echo loading 57 %
ping localhost -n 1 >nul
cls
echo loading 58 %
ping localhost -n 1 >nul
cls
echo loading 59 %
ping localhost -n 1 >nul
cls
echo loading 60 %
ping localhost -n 1 >nul
cls
echo loading 61 %
ping localhost -n 1 >nul
cls
echo loading 62 %
ping localhost -n 1 >nul
cls
echo loading 63 %
ping localhost -n 1 >nul
cls
echo loading 64 %
ping localhost -n 1 >nul
cls
echo loading 65 %
ping localhost -n 1 >nul
cls
echo loading 66 %
ping localhost -n 1 >nul
cls
echo loading 67 %
ping localhost -n 1 >nul
cls
echo loading 68 %
ping localhost -n 1 >nul
cls
echo loading 69 %
ping localhost -n 1 >nul
cls
echo loading 70 %
ping localhost -n 1 >nul
cls
echo loading 71 %
ping localhost -n 1 >nul
cls
echo loading 72 %
ping localhost -n 1 >nul
cls
echo loading 73 %
ping localhost -n 1 >nul
cls
echo loading 74 %
ping localhost -n 1 >nul
cls
echo loading 75 %
ping localhost -n 1 >nul
cls
echo loading 76 %
ping localhost -n 1 >nul
cls
echo loading 77 %
ping localhost -n 1 >nul
cls
echo loading 78 %
ping localhost -n 1 >nul
cls
echo loading 79 %
ping localhost -n 1 >nul
cls
echo loading 80 %
ping localhost -n 1 >nul
cls
echo loading 81 %
ping localhost -n 1 >nul
cls
echo loading 82 %
ping localhost -n 1 >nul
cls
echo loading 83 %
ping localhost -n 1 >nul
cls
echo loading 84 %
ping localhost -n 1 >nul
cls
echo loading 85 %
ping localhost -n 1 >nul
cls
echo loading 86 %
ping localhost -n 1 >nul
cls
echo loading 87 %
ping localhost -n 1 >nul
cls
echo loading 88 %
ping localhost -n 1 >nul
cls
echo loading 89 %
ping localhost -n 1 >nul
cls
echo loading 90 %
ping localhost -n 1 >nul
cls
echo loading 91 %
ping localhost -n 1 >nul
cls
echo loading 92 %
ping localhost -n 1 >nul
cls
echo loading 93 %
ping localhost -n 1 >nul
cls
echo loading 94 %
ping localhost -n 1 >nul
cls
echo loading 95 %
ping localhost -n 1 >nul
cls
echo loading 96 %
ping localhost -n 1 >nul
cls
echo loading 97 %
ping localhost -n 1 >nul
cls
echo loading 98 %
ping localhost -n 1 >nul
cls
echo loading 99 %
ping localhost -n 1 >nul
cls
echo loading 100 %
ping localhost -n 2 >nul
WOKANDWAL1 year ago
For the PASSWORD GENERATOR...
Try This Code (More Options)
@echo off
:Start2
cls
goto Start
:Start
title Password Generator
echo I will make you up to 10 new passwords.
echo Please write the password down somewhere in case you forget it.
echo -----------------------------------------------------------------
echo 1) 1 Random Password
echo 2) 2 Random Passwords
echo 3) 3 Random Passwords
echo 4) 4 Random Passwords
echo 5) 5 Random Passwords
echo 6) 6 Random Passwords
echo 7) 7 Random Passwords
echo 8) 8 Random Passwords
echo 9) 9 Random Passwords
echo 10) 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
if %input%==4 goto D if NOT goto Start2
if %input%==5 goto E if NOT goto Start2
if %input%==6 goto F if NOT goto Start2
if %input%==7 goto G if NOT goto Start2
if %input%==8 goto H if NOT goto Start2
if %input%==9 goto I if NOT goto Start2
if %input%==10 goto J 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 2 passwords are %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 3 Passwords are %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
:D
cls
echo Your 4 Passwords are %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
:E
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
:F
cls
echo Your 6 Passwords are %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
:G
cls
echo Your 7 Passwords are %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
:H
cls
echo Your 8 Passwords are %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
:I
cls
echo Your 9 Passwords are %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
:J
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
ojohnson31 year 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.
why not join the Batch Homies Group? Where you can post your batch related Instructables.
Does this code just have to be copied and pasted? Because it doesnt work for me
Did you save it as a .bat file?
ben35ben342 years ago
so cool
ben35ben342 years ago
echo off
color 0a
Echo °°°° °°°°° °°°°°
Echo °°°°°°° °² °°°° °°°°°°°
Echo °°°°°°°°² °²°°°°°°°°°°²° °°°°°°°°°°°°°°
Echo ² °°°°°°° °°°°°°°°°°°°°° °°°°° ³³°°°°°°°°°°°°°
Echo ³°°°°°°°°°°² ³°°°°°°°°°°°° ³°°°°°°°°°°°°°°°°°°
Echo ³°°°°° °°°°° ³°°°°°°°°°°°°° °°°°°°°°°³°°°°°°°°°
Echo °°°°°°° °°°° ° °²°°°°°°°°°°³ ²°°°°°°°°°° °°°°°°°°°°°
Echo ²°°°°°°°°°°°° ° °°°°°°°° °°°°°° ² °°°° °°°°°°°°° °
Echo °°°°°°°°°°°°° ° °°°°°°°°°°°°°°°²°°° °°° °°°°°°°°° °°°
Echo °°°°°°°°°° °°°°°°°° °°°°°°°°°²°°°² °°°°°°°°° °°°°²
Echo °°°°°°³³°°°°°°°° °°°°°°°°°°°°°°°°°°°°°°°°²°°°°°°
Echo ²°°°°° °°°°° °°³°°°°°°²°°°°°°°²°²°°°°°° °°°°°°°°
Echo °°°°°° ³°²°°°°°°°°°°°°°°°°°° ²°°°°° °°°°°°°°³
Echo ² °°°°°²°°°°°°°°°°°°°°°°°°° °°°° °°°°²°°°°°°
Echo °²°°² °°°°²°°°°°°°°°°°°°°°³ °°°²°°³°°°°°°°°°°°°
Echo °°°°°° °°°°°°°°°°°° °°°² °°°°°°° °°²°°°°°²°°°°°
Echo °°°°°°°² °°°°°°°°° °°°°²°°°°°°°° °°°°°°° °°°°°°°
Echo °°°°°°°²°²³³°°°°°°°°°°°°°°°°²°°³ °°°² °°°°°°°°
Echo °°°°°°°°°°°°°°°°°°°°°°° ° ° °°° °°°°°°°°°°°°
Echo °°³³³°°°°°°°°°°°°°°°°° ²° °°°°°°°°°°°°°°°°°
Echo °°°°°°°°°°°°°°°°°°°°° °²°°°°°°°°°°°°°°°²
Echo °°°°°°°°°°°°°°°°°°°°° °°°°°°°°°°°°°°°
Echo ³°°°°°³°°°°°°° °°°°°° °°°°° °°°°°°°°°°°
Echo ° °° ³°°°° °°°°°² °°°° °°°°°°°°°°°
Echo ³ ²² ² °°°° °°°°°°°°°°²
Echo ° °°°°°° °°°²°°³°°°°°°°°°°³
Echo °² ³°°°° °° ° °³°°°° ³³°°°° °
Echo ²° °°°°°° °°°³°°°° °²°°°°°°°°°°² °°°°°
Echo °° ° ° ²²²²°²°°°°°°°°°°°°°°³ °°°°°°°²
Echo ²°²° °°°²° ²³°°°°° °°²°°°² ²°°°°°°°²
Echo °°°°°°³° ² ³°°°°°°° ³²°²°°° °°°°°
Echo ° ²° ²° ° °°²°°³ °°°°°°°°² °
Echo ° °° ° ° ° ³°°° °° °°°°°°°°²
Echo °°° ° ° °°°°° °°°° °°° °°°°°°°°°
Echo °°°°°°°°°²°°°°°°°°°° °° ° °°°°°°°°°°
Echo °°°°°°°°°°°°°°°°° °²°°°²² ³°°°°°°°°°
Echo °°°°°² °°°°°°°°°°²³²°°°°²³ °°°°°°°°°°
Echo ²°°°°°°³° °³²°°°°° °°° ° °° °°°°°°°°°°
Echo °°°°°°°°°²° ° ° ° ° °³°³ °³°² ³°°°°°°°°°°
Echo ²°°°°°°°° ° ° ° °°°°°° ²°²°°° ³³³ °°°°°°°°°°°°°°°°²
Echo ²°°°°°°°°°°°°° ° ° ° °° °°°°°°³ °°²°°°°°°°°°°°°°
Echo ²°°°°°°°°°°°°°° °°°°°°³°°°°°² ² ²°°°°°°°°°°°³
Echo °°°°°°°°°°°° ° ° ³ °° °° °°°°°°° °°°°°°°°°°°
Echo °°°°°°°°°°°° ³ ° °°²° ³ ° °°°°°°°° °°°°° °°°°
Echo °°°° ³°°°°° °²°°°° ° °° ³°°°°°°°° °°°°°°° °
Echo °° °°°°°°° °°°°°°² °°°°°°°°°°°°² °°°°°°°³
Echo °°°°°°°° °°°°°°°°°°°°°°°°°°°°° °°°°°°°°
Echo °°°°°°°° ²°°°°°°°°°°°°°°°°° °°°°°°°
Echo °°°° °°° ²°°°°°°°°°° ²²
pause
You guys are a bit silly. Honestly, a ping command is fairly simple, it sends a packet of data to a server to see if the server exists or your computer can reach it. For example, if you wanted to test your internet connection you could type ping www.google.com, which would send a packet of 64bytes to google, which would then reply which would look something like this:
C:\Users\Pufferfish>ping www.google.com

Pinging www.l.google.com [74.125.237.115] with 32 bytes of data:
Reply from 74.125.237.115: bytes=32 time=161ms TTL=56
Reply from 74.125.237.115: bytes=32 time=183ms TTL=56
Reply from 74.125.237.115: bytes=32 time=206ms TTL=56
Reply from 74.125.237.115: bytes=32 time=230ms TTL=56

Ping statistics for 74.125.237.115:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 161ms, Maximum = 230ms, Average = 195ms
So what it has done is connected to google, and google has replied.
The most chance you have with a ping command is the following command:
ping www.website.com -n 100 -l 65000 -i 250 -v FRAGMENT -4
Now what the -n does is sends 100 pings to the website
The -l sets the size, the maximum size is 65000 bytes, in order to crash a website you need more bytes than this, look up PING OF DEATH, but if your using CMD PROMPT this is the best you will get.
The -i is the time to live, so once it connects to the server it will keep the 65000 bytes for 250 seconds, this is the maximum ttl, which again is nowhere near enough to crash a website.
The -v command sets the type. What FRAGMENT does is tells the website to combine the ping at the server so it is 65000 bytes * 100.
and finally the -4 command tells it to use an IP version four gateway to the website, which is much more effective than IPV6.
!!! THIS IS NOT EVEN CLOSE ENOUGH POWER TO TAKE DOWN A WEBSITE, as Shomakerlev9 said earlier, the only way is with a DDOS which floods the website with so many pings it will not provide service to other computers. This is ilegal so dont do it! All this does is a DOS, so it is not powerfull enough to take down a website, but if you are on a work or school network and type in netstat, then instead of the website put in some of the connection names like, Pufferfish-Tank:49218 without the :49218, you can succesfully SLOW someones internet down.
///If you want any cool batch files made, for almost anything, just ask me and I may be able to help///
Ping.bmp
All of you asking about the site crasher: What the file does is ping the website repeatedly, or as fast as your computer can handle. When it does this, all that happens is that the computer sends packets of data to the site, using (slowly using*) up its bandwidth. It will never probably crash it. But, if you really want to crash a site, search for "DDOS Attacks" on Google. I'm not going to go into that that much, but it's (very?) illegal. DDOSing, that is. Pinging are like little baby flies.
hi i do not understan how it works could you pleas explane
ttharp3 years ago
How long does it take to crash?
bdblock943 years ago
and opens intenet explorer at the same time?
michaelb9583 years ago
This is not a very good batch file. Misuse of the IF command ("x==" and "x y" are not valid, and both should be "x==y"), redundant clearing of variables (seriously, if a blank response is given to "set /p" you get a blank variable, and setting to null beforehand helps with nothing else), and the redundant exit label (honestly, just invoke EXIT yourself, saves keystrokes) all need cleaning.
radame (author)  michaelb9583 years ago
(removed by author or community request)
In simpler terms: fix the IFs and the SETs. The if command works like "if x==y". And the first time you set a variable, give it a value.

P.S. Those passwords probably aren't that memorable, which largely defeats the purpose. (And be careful where you write those passwords down. I've heard of people who write the things on Post-it Notes and stick them to their computer monitors.)
P.P.S I'm only 14 and a half myself.
1-40 of 42Next »