It is currently Sat Apr 27, 2024 8:52 am



Reply to topic  [ 4 posts ] 
the dos batch file of doom 
Author Message
Felix Rex
User avatar

Joined: Fri Mar 28, 2003 6:01 pm
Posts: 16650
Location: On a slope
Reply with quote
Post 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

_________________
They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety.


Wed Feb 04, 2004 3:42 pm
Profile WWW
Minor Diety
User avatar

Joined: Mon Mar 31, 2003 7:23 am
Posts: 14878
Location: behind a good glass of Duvel
Reply with quote
Post 
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*

_________________
"I find a Burger Tank in this place? I'm-a be a one-man cheeseburger apocalypse."

- Coach


Wed Feb 04, 2004 6:13 pm
Profile
Marquis
User avatar

Joined: Tue Jun 10, 2003 11:08 am
Posts: 940
Location: over there
Reply with quote
Post 
tell me about it, i never understand you comuter geeks :roll: specially not Satis...

_________________
Give a man a fire, he'll be warm for a night.
Set a man on fire, he'll be warm for the rest of his life. - Satis Clankiller


Wed Feb 04, 2004 7:35 pm
Profile
Felix Rex
User avatar

Joined: Fri Mar 28, 2003 6:01 pm
Posts: 16650
Location: On a slope
Reply with quote
Post 
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%

_________________
They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety.


Thu Feb 05, 2004 4:16 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 53 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware.