Skip to content
June 29, 2026
  • Linkedin
  • Twitter
  • Facebook
  • Youtube

Daily CyberSecurity

Zero-hour alerts. Unmatched analysis.

Primary Menu
  • Home
  • CVE Watchtower
  • Cyber Criminals
  • Data Leak
  • Linux
  • Malware
  • Vulnerability
  • Submit Press Release
  • Vulnerability Report
Light/Dark Button
  • Home
  • Linux
  • [Linux] Looks for processes that listen on specified ports
  • Linux

[Linux] Looks for processes that listen on specified ports

Do Son October 3, 2017 3 minutes read
Add as a preferred
source on Google

Look for the process of listening on the specified port, for the system administrator, is an eternal topic. Historically, Linux distribution can use a third party lsof.

ddos@ubuntu:~$ sudo netstat -na -p tcp | grep LISTEN

tcp 0 0 127.0.1.1:53 0.0.0.0:* LISTEN 1312/dnsmasq
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 849/cupsd
tcp6 0 0 :::80 :::* LISTEN 3906/apache2
tcp6 0 0 ::1:631 :::* LISTEN 849/cupsd
unix 2 [ ACC ] STREAM LISTENING 27711 2302/gnome-session- @/tmp/.ICE-unix/2302
unix 2 [ ACC ] STREAM LISTENING 25345 2065/gnome-keyring- /run/user/1000/keyring/ssh
unix 2 [ ACC ] STREAM LISTENING 24839 1643/dockerd /run/docker/libnetwork/ca7c82c70397ece4d65dc3d11e84bd9bb4074a00dc47d8986fc0936c7fc6424c.sock
unix 2 [ ACC ] STREAM LISTENING 26129 2402/pulseaudio /run/user/1000/pulse/native
unix 2 [ ACC ] STREAM LISTENING 17693 1/init /var/run/dbus/system_bus_socket
unix 2 [ ACC ] STREAM LISTENING 17696 1/init /run/snapd.socket
unix 2 [ ACC ] STREAM LISTENING 20195 1082/Xorg @/tmp/.X11-unix/X0
unix 2 [ ACC ] STREAM LISTENING 17698 1/init /run/snapd-snap.socket
unix 2 [ ACC ] STREAM LISTENING 17700 1/init /var/run/docker.sock
unix 2 [ ACC ] STREAM LISTENING 23846 1643/dockerd /var/run/docker/metrics.sock
unix 2 [ ACC ] STREAM LISTENING 17702 1/init /var/run/avahi-daemon/socket
unix 2 [ ACC ] STREAM LISTENING 20196 1082/Xorg /tmp/.X11-unix/X0
unix 2 [ ACC ] STREAM LISTENING 17705 1/init /var/run/cups/cups.sock
unix 2 [ ACC ] STREAM LISTENING 17708 1/init /run/uuidd/request
unix 2 [ ACC ] STREAM LISTENING 17711 1/init /run/acpid.socket
unix 2 [ ACC ] STREAM LISTENING 25889 2258/dbus-daemon @/tmp/dbus-A9cGjgEig1
unix 2 [ ACC ] STREAM LISTENING 25409 2217/ibus-daemon @/tmp/ibus/dbus-rlJqRPCj
unix 2 [ ACC ] STREAM LISTENING 25922 2276/gpg-agent /home/ddos/.gnupg/S.gpg-agent
unix 2 [ ACC ] STREAM LISTENING 22385 1673/docker-contain /var/run/docker/libcontainerd/docker-containerd.sock
unix 2 [ ACC ] STREAM LISTENING 25207 2059/systemd /run/user/1000/systemd/private
unix 2 [ ACC ] STREAM LISTENING 27712 2302/gnome-session- /tmp/.ICE-unix/2302
unix 2 [ ACC ] STREAM LISTENING 899 1/init /run/systemd/private
unix 2 [ ACC ] STREAM LISTENING 25220 2065/gnome-keyring- /run/user/1000/keyring/control
unix 2 [ ACC ] STREAM LISTENING 909 1/init /run/systemd/journal/stdout
unix 2 [ ACC ] SEQPACKET LISTENING 922 1/init /run/udev/control
unix 2 [ ACC ] STREAM LISTENING 25303 2155/dbus-daemon @/tmp/dbus-BkkYQfGN8Y
unix 2 [ ACC ] STREAM LISTENING 21158 898/NetworkManager /var/run/NetworkManager/private-dhcp
unix 2 [ ACC ] STREAM LISTENING 25259 2067/upstart @/com/ubuntu/upstart-session/1000/2067
unix 2 [ ACC ] STREAM LISTENING 980 1/init /run/systemd/fsck.progress
unix 2 [ ACC ] STREAM LISTENING 25342 2065/gnome-keyring- /run/user/1000/keyring/pkcs11

Now, you want to know which is listening on “tcp6 0 0 :::80 :::* LISTEN 3906/apache2 ”

sudo lsof -ni tcp:80
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
apache2 3906 root 4u IPv6 33083 0t0 TCP *:http (LISTEN)
apache2 3909 www-data 4u IPv6 33083 0t0 TCP *:http (LISTEN)
apache2 3910 www-data 4u IPv6 33083 0t0 TCP *:http (LISTEN)

sudo ps -opid,ppid,uid,addr,fname,comm,args -p 3906
PID PPID UID ADDR COMMAND COMMAND COMMAND
3906 1 0 – apache2 apache2 /usr/sbin/apache2 -k start

sudo lsof -n -p 3906| grep TCP
apache2 3906 root 3u sock 0,8 0t0 33082 protocol: TCP
apache2 3906 root 4u IPv6 33083 0t0 TCP *:http (LISTEN)

 

Support Our Threat Intelligence

If you find our CVE report and cybersecurity news helpful, consider supporting our work.

Buy Me a Coffee Logo Buy Me a Coffee PayPal
Crypto QR Code
USDT (TRC20):
TN8BdV8cp4T1Cd28gK9qTAnZknzzuwyUtm
USDT (ERC20):
0x3725e1a7d3bc5765499fa6aaafe307fabcd75bce

Share this article:

Facebook Post LinkedIn Telegram
Written by
@DdoS · Security Researcher

Do Son

Do Son is the Founder and Editor of SecurityOnline.info. Working in cybersecurity since 2013, he reports on vulnerabilities, malware, and emerging threats, providing timely analysis to help organizations and individuals stay ahead of evolving risks.

Tags: Linux

Search

Translation

CVE WATCHTOWER
🚨

Receive alerts for vulnerabilities being exploited in the wild.

⚡

Get notified instantly when a Proof of Concept (PoC) exploit is published.

🔍

Access critical info on vulnerabilities even when marked as "RESERVED".

🧠

Insights powered by decades of expertise and global intelligence sources.

🎯

Customize alerts with up to 10 keywords for your specific tech stack.

📊

Export the raw CVE database for SIEM integration and reporting.

Upgrade Package

🚨 Active Exploits in the Wild

  • CVE-2026-48558CVSS 10.0
    SimpleHelp versions 5.5.15 and prior and 6.0 pre-release versions contain an authentication bypass vulnerability in the OIDC authentication...
    Admin intel🗓 Updated: Jun 29, 2026
  • CVE-2026-46817CVSS 9.8
    Vulnerability in the Oracle Payments product of Oracle E-Business Suite (component: File Transmission). Supported versions that are affected...
    Admin intel🗓 Updated: Jun 29, 2026
  • CVE-2026-28496CVSS 9.4
    FOSSBilling is a free, open-source billing and client management system. Versions prior to 0.8.0 have a Server-Side Template...
    Admin intel🗓 Updated: Jun 25, 2026
  • CVE-2026-12569
    PTC Windchill and FlexPLM contains an improper input validation vulnerability allowing an unauthenticated, remote attacker to execute arbitrary...
    🗓 Added to KEV: Jun 25, 2026
  • CVE-2025-67038CVSS 9.8
    Lantronix EDS5000 contains a code injection vulnerability that could allow attackers to inject arbitrary OS commands into the...
    🗓 Added to KEV: Jun 23, 2026
  • CVE-2026-34910CVSS 10.0
    Ubiquiti UniFi OS contains an improper input validation vulnerability which could allow a malicious actor with access to...
    🗓 Added to KEV: Jun 23, 2026
  • CVE-2026-34909CVSS 10.0
    Ubiquiti UniFi OS contains a path traversal vulnerability which could allow a malicious actor with access to the...
    🗓 Added to KEV: Jun 23, 2026
  • CVE-2026-34908CVSS 10.0
    Ubiquiti UniFi OS contains an improper access control vulnerability which could allow a malicious actor with access to...
    🗓 Added to KEV: Jun 23, 2026
Powered by CVE Watchtower

🔴 Live Critical Threats

  • CVE-2026-57331CVSS 9.9
    Performer Arbitrary File Deletion in Paid Videochat Turnkey Site
  • CVE-2026-49048CVSS 9.8
    The Joomla extension JoomCCK exposes a front-end controller task, that builds two...
  • CVE-2026-58053CVSS 9.9
    Gitea act_runner with the Docker backend (through act 0.262.0) passes a workflow's...
  • CVE-2026-12415CVSS 9.8
    The Invoice Generator plugin for WordPress is vulnerable to privilege escalation due...
  • CVE-2026-28701CVSS 9.8
    Various versions of Daktronics Controller Firmware could allow authenticated and unauthenticated remote...
  • CVE-2026-53576CVSS 10.0
    Kestra is an open-source, event-driven orchestration platform. Prior to 1.0.45 and 1.3.21,...
  • CVE-2026-49869CVSS 10.0
    Kestra is an open-source, event-driven orchestration platform. Prior to 1.0.45 and 1.3.21,...
  • CVE-2026-54350CVSS 10.0
    Budibase is an open-source low-code platform. Prior to 3.39.12, an unauthenticated visitor...
  • CVE-2026-54352CVSS 9.6
    Budibase is an open-source low-code platform. Prior to 3.39.9, `POST /api/pwa/process-zip` at...
  • CVE-2026-53309CVSS 9.8
    In the Linux kernel, the following vulnerability has been resolved: ocfs2/dlm: fix...
Powered by CVE WATCHTOWER

Our Websites
  • Penetration Testing Tools
  • The Daily Information Technology
  • Daily CyberSecurity

    • About SecurityOnline.info
    • Advertise with us
    • Announcement
    • Contact
    • Contributor Register
    • Login
    • About SecurityOnline.info
    • Advertise on SecurityOnline.info
    • Contact Us

    When you purchase through links on our site, we may earn an affiliate commission. Here’s how it works

    • Disclaimer
    • Privacy Policy
    • DMCA NOTICE
    • Linkedin
    • Twitter
    • Facebook
    • Youtube
    © 2017 - 2026 Daily CyberSecurity. All Rights Reserved.