Skip to content

net ¤

Re-implements some psutil functionality to be able to get information from remote debugging sessions.

Classes:

Functions:

Attributes:

TCP_STATUSES module-attribute ¤

TCP_STATUSES = {
    "01": "established",
    "02": "syn_sent",
    "03": "syn_recv",
    "04": "fin_wait1",
    "05": "fin_wait2",
    "06": "time_wait",
    "07": "close",
    "08": "close_wait",
    "09": "last_ack",
    "0A": "listen",
    "0B": "closing",
}
NETLINK_TYPES = {
    0: "NETLINK_ROUTE",
    1: "NETLINK_UNUSED",
    2: "NETLINK_USERSOCK",
    3: "NETLINK_FIREWALL",
    4: "NETLINK_SOCK_DIAG",
    5: "NETLINK_NFLOG",
    6: "NETLINK_XFRM",
    7: "NETLINK_SELINUX",
    8: "NETLINK_ISCSI",
    9: "NETLINK_AUDIT",
    10: "NETLINK_FIB_LOOKUP",
    11: "NETLINK_CONNECTOR",
    12: "NETLINK_NETFILTER",
    13: "NETLINK_IP6_FW",
    14: "NETLINK_DNRTMSG",
    15: "NETLINK_KOBJECT_UEVENT",
    16: "NETLINK_GENERIC",
    18: "NETLINK_SCSITRANSPORT",
    19: "NETLINK_ECRYPTFS",
    20: "NETLINK_RDMA",
    21: "NETLINK_CRYPTO",
}

inode ¤

Attributes:

inode class-attribute instance-attribute ¤

inode: int | None = None

Connection ¤

Bases: inode

Methods:

Attributes:

rhost class-attribute instance-attribute ¤

rhost: str | None = None

lhost class-attribute instance-attribute ¤

lhost: str | None = None

rport class-attribute instance-attribute ¤

rport: int | None = None

lport class-attribute instance-attribute ¤

lport: int | None = None

inode class-attribute instance-attribute ¤

inode: int | None = None

status class-attribute instance-attribute ¤

status: str | None = None

family class-attribute instance-attribute ¤

family: str | None = None

__str__ ¤

__str__() -> str

__repr__ ¤

__repr__() -> str

UnixSocket ¤

Bases: inode

Methods:

Attributes:

path class-attribute instance-attribute ¤

path = '(anonymous)'

inode class-attribute instance-attribute ¤

inode: int | None = None

__str__ ¤

__str__() -> str

__repr__ ¤

__repr__() -> str

Bases: inode

Methods:

Attributes:

eth class-attribute instance-attribute ¤

eth: int = 0

portid class-attribute instance-attribute ¤

portid: int | None = None

inode class-attribute instance-attribute ¤

inode: int | None = None

__str__ ¤

__str__() -> str

__repr__ ¤

__repr__() -> str

format_host_port ¤

format_host_port(ip, port)

tcp ¤

tcp(data: str) -> list[Connection]

tcp6 ¤

tcp6(data: str) -> list[Connection]

unix ¤

unix(data: str) -> list[UnixSocket]
netlink(data: str) -> list[Netlink]