2021年10月22日星期五

How to find the service in CentOS and Red Hat Linux?

 




Step1. netstat -tnlp 

           and then find the Program name 

[root@study /]# netstat -tlunp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name   
tcp        0      0 0.0.0.0:514                                  0.0.0.0:*               LISTEN      1711/rsyslogd      
tcp        0      0 0.0.0.0:111                                  0.0.0.0:*               LISTEN      1/systemd          
tcp        0      0 192.168.122.1:53                        0.0.0.0:*               LISTEN      2411/dnsmasq       
tcp        0      0 0.0.0.0:22                                     0.0.0.0:*              LISTEN      1274/sshd          
tcp        0      0 127.0.0.1:631                               0.0.0.0:*              LISTEN      1264/cupsd         
tcp        0      0 127.0.0.1:25                                  0.0.0.0:*             LISTEN      8264/master        
tcp6       0      0 :::514                                                      :::*            LISTEN      1711/rsyslogd      
tcp6       0      0 :::111                                                      :::*            LISTEN      1/systemd          
tcp6       0      0 :::80                                                        :::*            LISTEN      1714/httpd         
tcp6       0      0 :::21                                                        :::*            LISTEN      1717/vsftpd        
tcp6       0      0 :::22                                                        :::*            LISTEN      1274/sshd          
tcp6       0      0 ::1:631                                                     :::*           LISTEN      1264/cupsd         
tcp6       0      0 ::1:25                                                      :::*            LISTEN      8264/master        
udp        0      0 0.0.0.0:46637                                 0.0.0.0:*                                 881/avahi-daemon: r
udp        0      0 192.168.122.1:53                            0.0.0.0:*                               2411/dnsmasq       
udp        0      0 0.0.0.0:67                                        0.0.0.0:*                               2411/dnsmasq       
udp        0      0 0.0.0.0:111                                      0.0.0.0:*                               1/systemd          
udp        0      0 0.0.0.0:5353                                    0.0.0.0:*                               881/avahi-daemon: r
udp        0      0 127.0.0.1:323                                   0.0.0.0:*                               897/chronyd        
udp6       0      0 :::111                                                        :::*                                1/systemd          
udp6       0      0 :::35040                                                    :::*                                881/avahi-daemon: r
udp6       0      0 :::5353                                                      :::*                                881/avahi-daemon: r
udp6       0      0 ::1:323                                                      :::*                                897/chronyd        
[root@study /]#
         




 

沒有留言:

發佈留言

歡迎留下寶貴意見

台灣電力公司對外資訊服務漏洞懸賞活動

台灣電力公司對外資訊服務漏洞懸賞活動 ⚠️本次活動通報方式為直接透過本公司郵件bugbounty@taipower.com.tw提交通報,若您仍需額外將漏洞細節上架於HITCON ZeroDay,請於回報信件中告知,本公司將誠摯協助處理。 一、活動訊息公告 本公司的漏洞懸賞活動即...