Forums: Mapping Open Ports To Binaries - Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Mapping Open Ports To Binaries

#1 User is offline   treebug 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 31
  • Joined: 02-November 05

Posted 20 February 2007 - 10:33 PM

What do I need to do to find out what binaries are opening ports on my linux box?
I am not familiar with some of these services.

I used fport.exe in Windows that showed me which programs were responsible for opening certain ports?


Thanks
0

#2 User is offline   CloudyOne 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 82
  • Joined: 13-October 03

Posted 20 February 2007 - 11:33 PM

You could install Amap, made by this genius named VanHauser, and run a scan on your own box.

hxxp://thc.org/thc-amap/

Then once you find which ones are sporting what versions, do research on those specific programs and their versions and check for the running process.

:P
0

#3 User is offline   drygol 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 149
  • Joined: 20-January 06

Posted 21 February 2007 - 02:06 AM

go through maunal of cmd ---> lsof
this will give you what u need
0

#4 User is offline   enodr 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 62
  • Joined: 29-November 06

Posted 23 February 2007 - 02:10 AM

lsof manpage being quite long and complex, lsof -i should do what you want.

By the way, for windows users sysinternals tcpview is a must: http://www.microsoft...es/TcpView.mspx
0

#5 User is offline   Anarchiste 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 95
  • Joined: 25-February 04

Posted 27 February 2007 - 10:20 AM

man netstat ;)
0

#6 User is offline   binarysaint 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 29
  • Joined: 19-March 07

Posted 23 March 2007 - 02:35 AM

View PostAnarchiste, on Feb 27 2007, 06:20 PM, said:

man netstat ;)



netstat will just give you the listening ports, not the applications which are using them.
0

#7 User is offline   Anarchiste 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 95
  • Joined: 25-February 04

Posted 14 August 2007 - 07:14 AM

View Postbinarysaint, on Mar 23 2007, 10:35 AM, said:

View PostAnarchiste, on Feb 27 2007, 06:20 PM, said:

man netstat ;)



netstat will just give you the listening ports, not the applications which are using them.


sk@dump ~ $ sudo netstat -lapute
Password:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       User       Inode      PID/Program name
tcp        0      0 localhost:mysql         *:*                     LISTEN      mysql      6852       4056/mysqld
tcp        0      0 *:http                  *:*                     LISTEN      root       7036       4200/apache2
tcp        0      0 *:ftp                   *:*                     LISTEN      root       7323       4313/pure-ftpd (SERVER)
tcp        0      0 *:ssh                   *:*                     LISTEN      root       6929       4136/sshd


Oops :lol:
0

#8 User is offline   rlastinger 

  • Sergeant
  • Icon
  • Group: Members
  • Posts: 218
  • Joined: 18-August 05

Posted 14 August 2007 - 11:18 AM

View PostAnarchiste, on Aug 14 2007, 11:14 AM, said:

View Postbinarysaint, on Mar 23 2007, 10:35 AM, said:

View PostAnarchiste, on Feb 27 2007, 06:20 PM, said:

man netstat ;)



netstat will just give you the listening ports, not the applications which are using them.


sk@dump ~ $ sudo netstat -lapute
Password:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       User       Inode      PID/Program name
tcp        0      0 localhost:mysql         *:*                     LISTEN      mysql      6852       4056/mysqld
tcp        0      0 *:http                  *:*                     LISTEN      root       7036       4200/apache2
tcp        0      0 *:ftp                   *:*                     LISTEN      root       7323       4313/pure-ftpd (SERVER)
tcp        0      0 *:ssh                   *:*                     LISTEN      root       6929       4136/sshd


Oops :lol:


Doh! I was going to say that. Nice one though. :)

along with everything else mentioned, nmap will work also, but my first thought would've been netstat.
0

#9 User is offline   treebug 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 31
  • Joined: 02-November 05

Posted 14 August 2007 - 06:31 PM

netstat works for me. thanks for the help.
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

  • Share



Our Sponsors:


SwiftLayer Affiliate Web Hosting