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.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a9a783b247364252105534935c275791f856248a4fe24daff478a42ab657286
|
|
| MD5 |
edfedd3e1f1760d92683d57bec710bbe
|
|
| BLAKE2b-256 |
1b67ad21d63a16307a35350dc202e0d4562a81176376ef751a97deea3529edae
|
File details
Details for the file dargslan_port_monitor-1.0.0-py3-none-any.whl.
File metadata
- Download URL: dargslan_port_monitor-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fb55ae29122246b4d8b1166ac78573292c4151a51846b526eb7806590ce4df9
|
|
| MD5 |
55d1fbb15f26b49c3a525c7abf75f371
|
|
| BLAKE2b-256 |
448f501ce1bd888ab2856c00970317808f9b025d05169f7b7b5f1087eabfdcce
|