MCPcopy Create free account
hub / github.com/fortra/impacket / packetHandler

Method packetHandler

examples/sniff.py:59–63  ·  view source on GitHub ↗
(self, hdr, data)

Source from the content-addressed store, hash-verified

57 self.pcap.loop(0, self.packetHandler)
58
59 def packetHandler(self, hdr, data):
60 # Use the ImpactDecoder to turn the rawpacket into a hierarchy
61 # of ImpactPacket instances.
62 # Display the packet in human-readable form.
63 print(self.decoder.decode(data))
64
65
66def getInterface():

Callers

nothing calls this directly

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected