MCPcopy
hub / github.com/fortra/impacket / TCPDecoder

Class TCPDecoder

impacket/ImpactDecoder.py:292–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290 return u
291
292class TCPDecoder(Decoder):
293 def __init__(self):
294 pass
295
296 def decode(self, aBuffer):
297 t = ImpactPacket.TCP(aBuffer)
298 self.set_decoded_protocol( t )
299 off = t.get_header_size()
300 self.data_decoder = DataDecoder()
301 packet = self.data_decoder.decode(aBuffer[off:])
302 t.contains(packet)
303 return t
304
305class IGMPDecoder(Decoder):
306 def __init__(self):

Callers 2

decodeMethod · 0.85
decodeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…