ClanKiller.com
https://forums.plasmasky.com/

the dos batch file of doom
https://forums.plasmasky.com/viewtopic.php?f=8&t=689
Page 1 of 1

Author:  Satis [ Wed Feb 04, 2004 3:42 pm ]
Post subject:  the dos batch file of doom

This is a batch file that spams messenger messages across a network. This only works in NT-based operating systems due to my use of SET /P. If you don't care, that's nice, I'm mainly posting this as a way to transfer the code. :) I love DOS.

Now I just need to find out a way to check the validity of ip/machine name. Maybe a ping or something. :/

Code:
@echo off
if "%1"=="" goto error
if "%2"=="" goto error

:send
net send %1 %2 %3 %4 %5 %6 %7 %8 %9
goto send

:error     
echo  Proper usage is: '%0 [ip address] [message to send]'
echo.

:interprompt
SET inter=
SET /P inter=Enter Interactive Mode? (Y/N)
IF /I '%inter%'=='n' GOTO done
IF /I '%inter%'=='y' GOTO interactive
goto interprompt

:interactive
cls
echo Entering Interactive Mode
echo.
echo.

:ip
SET ip=
SET /P ip=Type the IP address/hostname you want to spam:
if '%ip%'=='' goto badip
cls
goto message

:badip
cls
echo Bad ip address, try again
echo.
goto ip


:message
echo IP/Hostname to Spam: "%ip%"
echo.
SET message=
SET /P message=Enter the message to send or 'back':
IF /I "%message%"=='back' goto ip
IF /I "%message%"=='' goto badmessage
goto check

:badmessage
cls
echo Empy message, please enter a message to send.
echo.
goto message

cls

:check
echo IP/Hostname to Spam: "%ip%"
echo Message:    "%message%"
echo.
SET verify=
SET /P verify=Is this correct?  Enter Q to quit.
IF /I '%verify%'=='Y' goto send1
IF /I '%verify%'=='N' goto ip
IF /I '%verify%'=='Q' goto done
goto check

:send1
net send "%ip%" "%message%" >> variable
type variable
cls
goto send1

:done

Author:  Rinox [ Wed Feb 04, 2004 6:13 pm ]
Post subject: 

That sounds like the ramblings of a crack junkie. One with a degree in computer science. :)

If i knew what it all meant i'd say "cool" or "sucks", but i don't so i'll just nod yes.

*nods yes*

Author:  Franny [ Wed Feb 04, 2004 7:35 pm ]
Post subject: 

tell me about it, i never understand you comuter geeks :roll: specially not Satis...

Author:  Satis [ Thu Feb 05, 2004 4:16 pm ]
Post subject: 

more stuff...pulling the current date, throwing it into a variable, and stripping off the slashes.

Code:
@echo off
set dat=%date%
set dat=%dat:/=%
set dat=%dat: =%
echo %dat%

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/