14/7/08

Ποιές πόρτες ακούνε; (Which Ports Are Listening ?)

Ποιές πόρτες ακούνε;

nmap -sT -O localhost
που επιστρέφει
tarting nmap V. 3.00 ( www.insecure.org/nmap/ )
Interesting ports on localhost.localdomain (127.0.0.1):
(The 1596 ports scanned but not shown below are in state: closed)
Port State Service
22/tcp open ssh
111/tcp open sunrpc
515/tcp open printer
834/tcp open unknown
6000/tcp open X11

Remote OS guesses: Linux Kernel 2.4.0 or Gentoo 1.2 Linux 2.4.19 rc1-rc7)

Για την "μυστήρια" υπηρεσία στην πόρτα 834, γράψτε :

cat /etc/services | grep 834
που πιθανά θα επιστρέψεθ

netstat -anp | grep 834
που επιστρέφει
tcp 0 0 0.0.0.0:834 0.0.0.0:* LISTEN 653/ypbind
επίσης
lsof -i | grep 834
που επιστρέφει
ypbind 653 0 7u IPv4 1319 TCP *:834 (LISTEN)
ypbind 655 0 7u IPv4 1319 TCP *:834 (LISTEN)
ypbind 656 0 7u IPv4 1319 TCP *:834 (LISTEN)
ypbind 657 0 7u IPv4 1319 TCP *:834 (LISTEN)



1925/httpd
Επίσης
#netstat -anp --tcp
tcp 0 0 0.0.0.0:544 0.0.0.0:* LISTEN 1826/xinetd
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 1925/httpd
#ps -p 1925 -f
ID PID PPID C STIME TTY TIME CMD
root 1925 1 0 2004 ? 00:03:36 /usr/sbin/httpd



1 σχόλιο:

Μαρίνα είπε...

ΑΣΚΕΤΙΛΑ ΜΟΥ !