Solved

what app is using sockets

Posted on 2003-11-21
11
253 Views
Last Modified: 2010-05-01
I would like to know, in Windows (95 family or NT family) how can i, once i've got the TCP table or UDP table of my machine, asociate each socket with the app using it. for example:

i've got mirc runnig, and i run my app and it returns:
....        ........     .... (whatever)
local port:1090  ....... ......   ---> mirc.exe

 (solutions in vb6 or .net are wellcome :) thanks
0
Comment
Question by:RocketMan
11 Comments
 
LVL 9

Expert Comment

by:TooKoolKris
ID: 9800241
Go to this webpage and get the free program call FPort 2.0. When you run it it will tell you all of your current open ports and the exact .exe that is holding the socket.

http://www.foundstone.com/resources/intrusion_detection.htm
0
 
LVL 9

Expert Comment

by:TooKoolKris
ID: 9800248
Oh I forgot to mention that it runs on the command line so you can shell it out and retreive the std data from the window from inside your program.
0
 

Author Comment

by:RocketMan
ID: 9800387
i know that app, thaks.. but what i want is to code it myself :)
0
 
LVL 1

Expert Comment

by:anaadoul
ID: 9804995
maybe you can use the netstat.exe -nao
but the o parametre is only avalible in WINXP

---------------------------------
There Are 10 Kind OF People
Those Who Understands Binary AND Those Who Don't
0
 

Author Comment

by:RocketMan
ID: 9805591
ok guys i've found myself what i was looking for :) thaks anyway:

ths url is:
http://www.planet-source-code.com/URLSEO/vb/scripts/ShowCode!asp/txtCodeId!49563/lngWid!1/anyname.htm
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

Author Comment

by:RocketMan
ID: 9805592
em.. guys, does anybody know how do y ask for a PAQ/Refund? (no point for this question :))
0
 
LVL 6

Expert Comment

by:DominicCronin
ID: 9806310
Post  your request with a link to this topic in community support
0
 

Author Comment

by:RocketMan
ID: 9807281
thx dominicCronin
0
 

Accepted Solution

by:
SpazMODic earned 0 total points
ID: 9828466
PAQed, with points refunded (500)

SpazMODic
EE Moderator
0
 

Author Comment

by:RocketMan
ID: 9828489
thanks
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now