Question about TCP open port, god help me - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Question about TCP open port, god help me

Hi everybody~~

How can I make a program to know which process open a TCP port or connect with some other computer with Visual C++ on W2K? Just like blow

Pid Process Port Proto Path
388 svchost -> 135 TCP D:WINNTsystem32svchost.exe
8 System -> 139 TCP
8 System -> 445 TCP
8 System -> 1027 TCP
1124 IEXPLORE -> 1312 TCP D:Program FilesInternet ExplorerIEXPLORE
.EXE
1124 IEXPLORE -> 1332 TCP D:Program FilesInternet ExplorerIEXPLORE
.EXE
8 System -> 1362 TCP
524 ns -> 7306 TCP d:winntsystem32
s.exe
524 ns -> 7389 TCP d:winntsystem32
s.exe
592 SYSEXPLR -> 7626 TCP D:WINNTSystem32SYSEXPLR.EXE
1016 CheckDll -> 23444 TCP D:WINNTSystem32CheckDll.exe
1016 CheckDll -> 23445 TCP D:WINNTSystem32CheckDll.exe

388 svchost -> 135 UDP D:WINNTsystem32svchost.exe
8 System -> 137 UDP
8 System -> 138 UDP
8 System -> 445 UDP
240 lsass -> 500 UDP D:WINNTsystem32lsass.exe
228 services -> 1028 UDP D:WINNTsystem32services.exe
496 IEXPLORE -> 1247 UDP D:Program FilesInternet ExplorerIEXPLORE
.EXE
1124 IEXPLORE -> 1251 UDP D:Program FilesInternet ExplorerIEXPLORE
.EXE
1188 IEXPLORE -> 1285 UDP D:Program FilesInternet ExplorerIEXPLORE
.EXE


above output information is the program i want to get?
Thanks a lots

Sign In or Register to comment.