Home page logo

basics logo Security Basics mailing list archives

RE: Commands for closing tcp session on a window box
From: "Thomas F. Szabo" <tszabo () diamondtech net>
Date: Tue, 27 Apr 2004 23:58:50 -0400

In windows xp, you can run NETSTAT -ano to get a list of active TCP/UDP
and their associated PID.  Then you can use kill/taskkill/pskill to
terminate the process behind the session.  You probably want to take a
look at FPORT to make it a little easier to hunt down what applications
are using which ports.  That way you can stop it from starting up in the
first place.

Tom Szabo

-----Original Message-----
From: Tiongster [mailto:tiongster84 () yahoo com sg] 
Sent: Tuesday, April 27, 2004 3:12 AM
To: security-basics () securityfocus com
Subject: RE: Commands for closing tcp session on a window box

Sorry, the question I'm asking is quite vague without giving more
Let's say, on command prompt I entered NETSTAT -A -N and it showed a
list of TCP and UDP active connections. A session was established i.e.  


Question, is it possible to terminate this Session on the command prompt

And what command is use to achieve it or what solutions do you suggest? 
Thank you!   

Ethical Hacking at the InfoSec Institute. Mention this ad and get $545 off
any course! All of our class sizes are guaranteed to be 10 students or less
to facilitate one-on-one interaction with one of our expert instructors.
Attend a course taught by an expert instructor with years of in-the-field
pen testing experience in our state of the art hacking lab. Master the skills
of an Ethical Hacker to better assess the security of your organization.
Visit us at:

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]