MCPcopy Create free account
hub / github.com/OWASP/Python-Honeypot / NetworkEvent

Class NetworkEvent

database/datatypes.py:139–166  ·  view source on GitHub ↗

Object to store Network Event Parameters Attributes: ip_dest: Destination IP address (machine) port_dest: Destination port (machine) ip_src: Source IP address port_src: Source port date: Date and time of the event protocol: Protocol type of t

Source from the content-addressed store, hash-verified

137
138
139class NetworkEvent:
140 """
141 Object to store Network Event Parameters
142
143 Attributes:
144 ip_dest: Destination IP address (machine)
145 port_dest: Destination port (machine)
146 ip_src: Source IP address
147 port_src: Source port
148 date: Date and time of the event
149 protocol: Protocol type of the packet
150 machine_name: Real machine name
151 country_ip_src: Country of source IP Address
152 country_ip_dest: Country of destination IP Address
153 """
154
155 def __init__(
156 self, ip_dest, port_dest,
157 ip_src, port_src, protocol, machine_name):
158 self.ip_dest = ip_dest
159 self.port_dest = port_dest
160 self.ip_src = ip_src
161 self.port_src = port_src
162 self.protocol = protocol
163 self.machine_name = machine_name
164 self.date = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
165 self.country_ip_src = None
166 self.country_ip_dest = None
167
168
169class CredentialEvent:

Callers 2

process_packetFunction · 0.90

Calls

no outgoing calls

Tested by 1