how to send IP packets by myself

View: New views
6 Messages — Rating Filter:   Alert me  

how to send IP packets by myself

by tantan-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

to know someone from using a packet generator?
I'd like to create packages in-house design, and then send it. The goal
is to analyze
communication between two partners, so down to the smallest possible
Detail.

what tools- tutorials- you have about it?

Greeting


--
To UNSUBSCRIBE, email to debian-security-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: how to send IP packets by myself

by Simon Valiquette :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

tantan un jour écrivit:
> Hello,
>
> to know someone from using a packet generator?

   tcpreplay allow you to send specific packets from a file, including
invalid ones AFAIK. Since you can alter the packets, it can be useful for
testing the application when receiving bad data like a string that is one
bit too short or other limit conditions.

   There is some tricks to intercept the packets in the fly and mangle
them a little before resending them.

http://tcpreplay.synfin.net/trac/wiki/manual

   tcpcat can also sometime proves useful.

If all you use is a tcp/ip connection and the protocol is text based, like
SMTP, a script in Perl, Python or even some Shell script (note that in
Debian, this is disabled by default in Bash) could be the easiest solution
for you.

> I'd like to create packages in-house design, and then send it. The goal
> is to analyze
> communication between two partners, so down to the smallest possible
> Detail.

   So, you don't really want a packet generator. Here the good old tcpdump
will be your friend. Snort might also be useful in some situation where
there is many servers involved and you want to remove all regular packets
and gets only the problematic ones. There is plenty of good tutorial for both.

Simon


--
To UNSUBSCRIBE, email to debian-security-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: how to send IP packets by myself

by Mr. P|pex-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/9/22 tantan <tantan@...>:
> Hello,
>
> to know someone from using a packet generator?
> I'd like to create packages in-house design, and then send it. The goal
> is to analyze
> communication between two partners, so down to the smallest possible

Hi
you can use hping2 hping3 to create package

http://www.hping.org/

you found them in debian ;)
bye


--
Powered by GNU/Linux Debian AMD64
blog - http://delirihitech.blogspot.com/


--
To UNSUBSCRIBE, email to debian-security-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: how to send IP packets by myself

by Yves-Alexis Perez-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On mar, 2009-09-22 at 22:19 +0200, tantan wrote:
> to know someone from using a packet generator?
> I'd like to create packages in-house design, and then send it. The goal
> is to analyze
> communication between two partners, so down to the smallest possible
> Detail.
>
> what tools- tutorials- you have about it?

That's not really the best list to ask, but try scapy (www.secdev.org
and python-scapy)

Cheers,
--
Yves-Alexis Perez


signature.asc (205 bytes) Download Attachment

Re: how to send IP packets by myself

by Fabian Nöldgen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello tantan,

tantan <tantan@...> wrote:
> Hello,
>
> to know someone from using a packet generator?
[...]
> what tools- tutorials- you have about it?

Not really a Debian specific question, but anyways:

There is a Debian package called packeth. It's a nice and very
easy-to-use tool to craft you own packets layer-wise and send them with
configurable speed/delay. You can also load packets from a pcap file.

> Greeting

Best regards,
Fabian


--
To UNSUBSCRIBE, email to debian-security-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: how to send IP packets by myself

by Gerardo Castillo Alvarado :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

tantan escribió:

> Hello,
>
> to know someone from using a packet generator?
> I'd like to create packages in-house design, and then send it. The goal
> is to analyze
> communication between two partners, so down to the smallest possible
> Detail.
>
> what tools- tutorials- you have about it?
>  
try nemesis, hping#...

see [1] for more.


[1] www.inguardians.com/research/docs/*packet*foo.pdf

Greetings


--
To UNSUBSCRIBE, email to debian-security-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...