Packet sender timing??

Questions about programming languages and debugging
Post Reply
User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Packet sender timing??

Post by ayu »

I was just wondering if anyones has a code for a file that when you start it, it sets a timer, that at that a specifik date and time it will send a large amount of packets to the target host.

been watching some of these files arround the net and seems pretty interesting, so i wanted a code to play with. :roll:

User avatar
Nerdz
The Architect
The Architect
Posts: 1127
Joined: 15 Jun 2005, 16:00
18
Location: #db_error in: select usr.location from sucko_member where usr.id=63;
Contact:

Post by Nerdz »

What language?
Give a man a fish, you feed him for one day.
Learn a man to fish, you feed him for life.

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
18
Location: In your eye floaters.
Contact:

Post by bad_brain »

um,what about creating a batch-file and use the "planned tasks" as timer? (um,I assume you use windows, in *nix it would be cron). what kind of packets do you want to send?

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Post by ayu »

well.....i don't know wich packets i would like to send =P

i mean... large UDP or TCP i guess...

think i would prefer TCP... :?

language? well Visual Basic or Batch file if possible ^^

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
18
Location: In your eye floaters.
Contact:

Post by bad_brain »

here´s an example of a batch-file which sends pings to hosts specified in a .txt-file (and aslo saves the ping results in another file), should be no problem to modify it for your needs:

Code: Select all

cls
@echo off
if "%1" == "" (
echo iplist.txt 
) ELSE (
FOR /F "eol=; tokens=1" %%a in (%1) do ping %%a >> pingresult.txt
echo done
)
:wink:

Post Reply