DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: program to kill established tcp connections: suggestion?  (Read 13,890 times)

blackcat

  • Participant
  • Joined in 2007
  • *
  • Posts: 62
program to kill established tcp connections: suggestion?
« on: December 04, 2007, 06:21 AM »
does anyone know any command line program to kill established tcp connections? i need this tool since netstat only has the ability to view connections..thanks

PhilB66

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,522
Re: program to kill established tcp connections: suggestion?
« Reply #1 on: December 04, 2007, 06:57 AM »

blackcat

  • Participant
  • Joined in 2007
  • *
  • Posts: 62
Re: program to kill established tcp connections: suggestion?
« Reply #2 on: December 04, 2007, 07:56 AM »
thanks but it doesnt let me terminate connections by matching exe process..is there one that can do this?

Floppy

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 15
Re: program to kill established tcp connections: suggestion?
« Reply #3 on: December 04, 2007, 09:18 AM »
Hello,

thanks but it doesnt let me terminate connections by matching exe process..is there one that can do this?

You could ask the developer of the program to add the necessary command line parameter :D


Best regards,
Floppy

blackcat

  • Participant
  • Joined in 2007
  • *
  • Posts: 62
Re: program to kill established tcp connections: suggestion?
« Reply #4 on: December 04, 2007, 09:35 AM »
yeah..you're right..i just sent him this feature request..but while waiting for him to add it, im searching around for alternative..anyone here familiar with cygwin?

Lashiec

  • Member
  • Joined in 2006
  • **
  • Posts: 2,374
Re: program to kill established tcp connections: suggestion?
« Reply #5 on: December 04, 2007, 08:45 PM »

BinderDundat

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 31
Re: program to kill established tcp connections: suggestion?
« Reply #6 on: December 04, 2007, 09:40 PM »
If you know the process name, you can kill the process using pskill from sysinternals: http://www.microsoft.com/technet/sysinternals/Utilities/PsKill.mspx - but I can't promise that the TCP connection is dropped as well.  The post above for curports does offer a close command line.  See: http://www.nirsoft.net/utils/cports.html
« Last Edit: December 04, 2007, 09:49 PM by BinderDundat »

Ehtyar

  • That News Guy
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,237
    • Plugin Coding Medal
    • Gathering Badge
Re: program to kill established tcp connections: suggestion?
« Reply #7 on: December 05, 2007, 12:30 AM »
The post above for curports does offer a close command line.  See: http://www.nirsoft.net/utils/cports.html

thanks but it doesnt let me terminate connections by matching exe process..is there one that can do this?

Edvard

  • Coding Snacks Author
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 3,027
    • Participated in NANY Challenge Once
    • Coding Snacks
    • Linux User
Re: program to kill established tcp connections: suggestion?
« Reply #8 on: December 05, 2007, 12:38 AM »
TCPKillNT
Quote
TCPKillNT is a TCP connection "Reset" utility for Microsoft Windows NT platforms. It has the ability to send RST packets to already established TCP connections. Quite deadly on a LAN. It is very useful for IDS kind of products which need to terminate a TCP session. Requires Winpcap and LibnetNT.
http://members.fortunecity.com/sektorsecurity/projects/tcpkillnt.html


All children left unattended will be given a mocha and a puppy.

Original address: https://www.donationcoder.com/forum/index.php?topic=11153.0