nipagini
Feb 7 2004, 02:21 PM
I want to code an app (in c) which gets the service name of a service running on a specific port.
For example you have an ip and a port, and you want to know which service runs on that port.
Anyone has an idea how to code such an app?
thx
BeNiNuK
Feb 7 2004, 02:36 PM
there is a program called fport that does that i have attached it
nipagini
Feb 7 2004, 02:49 PM
fport just gives you the prozesses running on a specific port, and you have to execute it local.
I don't know if it's possible, but i want to get the servicename withouth having access to the remote server. For example if I know port xxx is open, then i want to know which service or which program runs on this port without having access to the remote server.
aapje
Feb 7 2004, 04:06 PM
you could try SuperScan. Scans the ports that are open and gives the first lines of reaction from the pc on these ports
psykotikpenguin
Feb 8 2004, 02:40 AM
I'm not positive, but you might be able to do this with fport and services.exe. Using services.exe, you could output all of the services running on a system to a file, then use the "services.exe [servicename] config" option with the services list to get a new list of the process names and corresponding service names. Then it might be possible to compare this list with the output of fport to see if you can find a match for the process in the service name list. You may be able to do this in a batch file, but i'm not positive.
Keep me updated on how this goes.
Feuerstein
Feb 8 2004, 01:30 PM
fport is well known, but anyone got sourcecode ?
h3llraz0r
Feb 9 2004, 07:33 PM
opports from holy father is part of hdef rootkit and is open source and a smaller file than fport
htxxp://hxdef.czweb.org/tools/OpPorts12.zip
marcoz
Feb 16 2004, 05:39 PM
another one is NZPorts but i dunno the url soz
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.