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

Function packet_callback

core/network.py:184–194  ·  view source on GitHub ↗

Callback function, called by apply_on_packets Args: packet

(packet)

Source from the content-addressed store, hash-verified

182 base_dir_path = os.path.join(sys.path[0], "pcapfiles")
183
184 def packet_callback(packet):
185 """
186 Callback function, called by apply_on_packets
187 Args:
188 packet
189 """
190 process_packet(
191 packet,
192 honeypot_events_queue,
193 network_events_queue
194 )
195
196 # Run infinite loop and split the capture in multiple files using the timeout set
197 # in the network configuration

Callers

nothing calls this directly

Calls 1

process_packetFunction · 0.85

Tested by

no test coverage detected