Skip to content
November 27, 2026
  • Bluesky
  • Facebook
  • Linkedin
  • Mastodon
  • RSS
  • Twitter
  • Youtube

Daily CyberSecurity

Zero-hour alerts. Unmatched analysis.

Primary Menu
  • Home
  • ADVISORIES
    • All vendors
    • Microsoft
    • Cisco
    • Fortinet
    • Ivanti
    • Linux
    • Citrix
    • WordPress
    • Oracle
    • Google
    • Apple
    • VMware
    • Palo Alto Networks
    • Atlassian
    • Apache
    • Adobe
    • SAP
  • CVE Data
    • CVE Watchtower
    • Top Exploited CVEs
    • CVE Stats by Vendor
    • Q3 2026 Report
    • CVE Alerts
    • CVE Alert Settings
    • Pricing
  • Cyber Criminals
  • Data Leak
  • Free Security Tools
    • Base64 / URL Encoder & SHA Hash Generator
    • CVSS 3.1 Calculator & Vector Decoder
    • DNS Lookup Tool
    • IP Subnet Calculator & CIDR Reference
    • SSL Certificate Viewer & X.509 Decoder
    • Whois Lookup Tool
  • Malware
  • Vulnerability News
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

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

Find our tech and OS security coverage helpful? Support our work today and unlock a 100% ad-free reading experience!

Buy Me a Coffee Logo Buy Me a Coffee
Select your plan
Free Pro Team

Hover over a plan to see its benefits.

Get Zero-Hour Vulnerability Alerts

Critical CVEs, CVSS scores, and PoC updates — straight to your inbox every week.

We respect your inbox. Unsubscribe anytime.

SHARE
Share on FacebookShare on XShare on LinkedInShare on TelegramShare on BlueskyShare on Mastodon
Written by
@DdoS · Security Researcher

Do Son

Do Son is the Founder and Editor of Daily CyberSecurity. 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

🚨 Active Exploits in the Wild

  • CVE-2026-123007CVSS 9.2
    This issue affects NGINX Plus or NGINX Open Source configurations that use HTTP/2. When NGINX processes undisclosed traffic,...
    Admin intel📅 Updated: Nov 26, 2026
  • CVE-2026-129243CVSS 8.8
    A `service` parameter with a prefix, such as `service=x/WFS`, was resolved to the WFS service by the dispatcher,...
    Admin intel📅 Updated: Nov 26, 2026
  • CVE-2026-120705CVSS 8.6
    GeoServer exposes the built-in WFS 2.0 stored query `urn:ogc:def:query:OGC-WFS::GetFeatureById` through the public `GetFeature` operation. The stored query substituted...
    Admin intel📅 Updated: Nov 26, 2026
  • CVE-2026-136716
    Improper Check for Unusual or Exceptional Conditions vulnerability in Drupal Drupal core allows Forceful Browsing. This issue affects...
    Watchtower Verified📅 Updated: Nov 26, 2026
  • CVE-2026-133335CVSS 9.2
    Joomla Extension - virtuemart.net - Unauthenticated local file inclusion leading to remote code execution via controller fallback in...
    Watchtower Verified📅 Updated: Nov 25, 2026
  • CVE-2025-41450CVSS 8.2
    Improper Authentication vulnerability in Danfoss AKSM8xxA Series.This issue affects Danfoss AK-SM 8xxA Series prior to version 4.2
    CISA KEV📅 Added to KEV: Nov 25, 2026
  • CVE-2026-103406CVSS 9.8
    An Improper Neutralization of Special Elements used in an OS Command vulnerability in the AutomatedProvisioner in Juniper Networks...
    CISA KEV📅 Added to KEV: Nov 25, 2026
  • CVE-2026-133323CVSS 10.0
    A vulnerability in the Audio, Web, and Video Conferencing (AWV) component of Mitel MiCollab through 10.3 (10.3.0.18) could...
    CISA KEV📅 Added to KEV: Nov 25, 2026
Powered by CVE Watchtower

Search

CVE ALERTS
📈

EPSS Spike Alerts
Catch risk spikes before they make headlines.

🎯

Custom EPSS/CVSS
Set score thresholds to effectively filter noise.

🛡️

Exploit Intel
Real-world exploit signals beyond the KEV catalog.

🐙

GitHub Issues
Auto-create alert tickets without duplication.

📬

Weekly Digest
Clean summaries, eliminating email spam.

🏷️

Watchlist Groups
Tag vulnerabilities by team (Infra/AppSec/SOC).

🔀

Smart Routing
Route chat channels based on severity levels.

🚨

RBP Tracker
Early warning detection and tracking system.

Get free CVE alerts Pro from $7/mo

Critical Vulnerabilities

  • CVE-2026-135930CVSS 9.1
    Authentication Bypass by Spoofing vulnerability in TMS Amelia ameliabooking allows Identity Spoofing.This issue affects Amelia: from n/a through...
    📅 Updated: Nov 27, 2026
  • CVE-2026-134963CVSS 9.9
    Improper Control of Generation of Code ('Code Injection') vulnerability in Webdeclic WPMasterToolKit wpmastertoolkit allows Code Injection.This issue affects...
    📅 Updated: Nov 27, 2026
  • CVE-2026-135933CVSS 9.8
    Incorrect Privilege Assignment vulnerability in Tobias WebinarIgnition webinar-ignition allows Privilege Escalation.This issue affects WebinarIgnition: from n/a through 4.28.1.
    📅 Updated: Nov 27, 2026
  • CVE-2026-99362CVSS 9.8
    In the Linux kernel, the following vulnerability has been resolved: nfsd: preflight SEQUENCE replies before accepting a slot...
    📅 Updated: Nov 27, 2026
  • CVE-2026-59103CVSS 9.3
    MONEO ERP exposes the Ping method of its _slave JSON-RPC service over WebSocket as @rpc.openpublic, so it can...
    📅 Updated: Nov 27, 2026
  • CVE-2026-137738CVSS 9.8
    In RealVNC Server before 7.19.1, UDP-based connections could potentially be exploited without authentication to execute code remotely or...
    📅 Updated: Nov 27, 2026
  • CVE-2026-137724CVSS 10.0
    A vulnerability in the Platform component of Mitel OpenScape 4000, and OpenScape 4000 Manager could allow an unauthenticated...
    📅 Updated: Nov 27, 2026
  • CVE-2026-137723CVSS 9.6
    A vulnerability in the Platform component of Mitel OpenScape 4000 and OpenScape 4000 Manager could allow an attacker...
    📅 Updated: Nov 27, 2026
Powered by CVE Watchtower

Daily CyberSecurity

  • About Daily CyberSecurity
  • Advertise with us
  • Submit Press Release
  • Announcement
  • Editorial Policy
  • Corrections Policy
  • Contact
  • Login
  • Disclaimer
  • DMCA
  • Privacy Policy

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

  • CVE Watchtower
  • CVE Statistics by Vendor 2026
  • Q3 2026 Report
  • Top Exploited CVEs
  • Bluesky
  • Facebook
  • Linkedin
  • Mastodon
  • RSS
  • Twitter
  • Youtube
© 2017 - 2026 Daily CyberSecurity. All Rights Reserved.