Unix Programming - tool to externally "zap" a TCP connection?

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > December 2004 > tool to externally "zap" a TCP connection?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author tool to externally "zap" a TCP connection?
Chris Markle

2004-12-04, 2:52 am

Anyone aware of tools for any form of Linux that let you (root?) zap a TCP
connection in progress with a running application? Thinking it would be good
for testing to be able to kill (cause TCP RST?) a connection between a
client and a server from the command line on either end.

Chris


Juha Laiho

2004-12-05, 5:51 pm

"Chris Markle" <cmarkle@sendmail.com> said:
>Anyone aware of tools for any form of Linux that let you (root?) zap a TCP
>connection in progress with a running application? Thinking it would be good
>for testing to be able to kill (cause TCP RST?) a connection between a
>client and a server from the command line on either end.


One way would be to insert an iptables line filtering the session by local
and remote host addresses and local and remote ports, and having the rule
for that line to return a TCP RST.

Some separate tools certainly also exist; I'm not certain, but Ettercap
might have this functionality.
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
Martin Carpenter

2004-12-06, 7:48 am


"Chris Markle" <cmarkle@sendmail.com> wrote:

> Anyone aware of tools for any form of Linux that let
> you (root?) zap a TCP connection in progress with a
> running application?


Googling "TCP hijack" may provide some useful information, e.g.,

http://www.trustinginthefuture.com/faq/howto5.html

The only tools that I've seen have been windows-based, but it should be
reasonably straightforward to create something with the appropriate
knowledge and, say, libpcap.



Matty

2004-12-25, 4:51 am

Martin Carpenter wrote:
> "Chris Markle" <cmarkle@sendmail.com> wrote:
>
>
>
>
> Googling "TCP hijack" may provide some useful information, e.g.,
>
> http://www.trustinginthefuture.com/faq/howto5.html
>
> The only tools that I've seen have been windows-based, but it should be
> reasonably straightforward to create something with the appropriate
> knowledge and, say, libpcap.
>
>
>


You might try compiling the OpenBSD tcpdrop source:

http://www.openbsd.org/cgi-bin/man....pdrop&sektion=8
Konstantin Sorokin

2004-12-25, 7:22 pm

Matty <matty@daemons.net> wrote:
> You might try compiling the OpenBSD tcpdrop source:
>
> http://www.openbsd.org/cgi-bin/man....pdrop&sektion=8


It uses some openbsd specific sysctls AFAIK.

--
Konstantin Sorokin
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com