Skip to main content

Monitor open ports and listening services on Linux — detect unexpected listeners, track port usage

Project description

dargslan-port-monitor

Linux Open Port Monitor — Monitor listening ports, detect exposed services, check port availability. Reads from ss/netstat and /proc/net. Zero external dependencies.

PyPI version

Installation

pip install dargslan-port-monitor

CLI Usage

dargslan-ports report              # Full port report
dargslan-ports tcp                 # TCP listening ports
dargslan-ports udp                 # UDP listening ports
dargslan-ports exposed             # Externally exposed ports
dargslan-ports check 192.168.1.1 22  # Check specific port
dargslan-ports json                # JSON output

Python API

from dargslan_port_monitor import PortMonitor

pm = PortMonitor()
pm.print_report()

tcp = pm.get_listening_ports()
exposed = pm.find_exposed()
unexpected = pm.find_unexpected(expected_ports=[22, 80, 443])
result = pm.check_port("192.168.1.1", 22)

More Resources

License

MIT — Dargslan

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dargslan_port_monitor-1.0.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dargslan_port_monitor-1.0.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file dargslan_port_monitor-1.0.0.tar.gz.

File metadata

  • Download URL: dargslan_port_monitor-1.0.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for dargslan_port_monitor-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7a9a783b247364252105534935c275791f856248a4fe24daff478a42ab657286
MD5 edfedd3e1f1760d92683d57bec710bbe
BLAKE2b-256 1b67ad21d63a16307a35350dc202e0d4562a81176376ef751a97deea3529edae

See more details on using hashes here.

File details

Details for the file dargslan_port_monitor-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for dargslan_port_monitor-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5fb55ae29122246b4d8b1166ac78573292c4151a51846b526eb7806590ce4df9
MD5 55d1fbb15f26b49c3a525c7abf75f371
BLAKE2b-256 448f501ce1bd888ab2856c00970317808f9b025d05169f7b7b5f1087eabfdcce

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page