forked from p15670423/monkey
Common: Represent multiple ports in TCPScanEvent
This commit is contained in:
parent
ccaf0b63c6
commit
349b183e5d
|
@ -1,4 +1,5 @@
|
||||||
from ipaddress import IPv4Address
|
from ipaddress import IPv4Address
|
||||||
|
from typing import Dict
|
||||||
|
|
||||||
from common.types import NetworkPort, PortStatus
|
from common.types import NetworkPort, PortStatus
|
||||||
|
|
||||||
|
@ -10,10 +11,8 @@ class TCPScanEvent(AbstractAgentEvent):
|
||||||
An event that occurs when the Agent performs a TCP scan on a host
|
An event that occurs when the Agent performs a TCP scan on a host
|
||||||
|
|
||||||
Attributes:
|
Attributes:
|
||||||
:param port: Port on which the scan was performed
|
:param ports: The scanned ports and their status (open/closed)
|
||||||
:param port_status: Status of the port (closed/open)
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
target: IPv4Address
|
target: IPv4Address
|
||||||
port: NetworkPort
|
ports: Dict[NetworkPort, PortStatus]
|
||||||
port_status: PortStatus
|
|
||||||
|
|
Loading…
Reference in New Issue