Skip to main content

Module services

Module services 

Source
Expand description

TCP services (port to name mapping).

This module provides mappings between well-known TCP port numbers and their service names, similar to Scapy’s TCP_SERVICES.

Statics§

TCP_SERVICES
Well-known TCP services mapping (port -> name).
TCP_SERVICES_BY_NAME
Reverse mapping (name -> port).

Functions§

is_dynamic_port
Check if a port is a dynamic/private port (49152-65535).
is_registered_port
Check if a port is a registered port (1024-49151).
is_well_known_port
Check if a port is a well-known port (< 1024).
service_name
Get the service name for a port.
service_port
Get the port number for a service name.