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

Method decode

impacket/ImpactDecoder.py:699–715  ·  view source on GitHub ↗
(self, aBuffer)

Source from the content-addressed store, hash-verified

697 pass
698
699 def decode(self, aBuffer):
700 d = dot11.LLC(aBuffer)
701 self.set_decoded_protocol( d )
702
703 if d.get_DSAP()==dot11.SAPTypes.SNAP:
704 if d.get_SSAP()==dot11.SAPTypes.SNAP:
705 if d.get_control()==dot11.LLC.DLC_UNNUMBERED_FRAMES:
706 snap_decoder = SNAPDecoder()
707 packet = snap_decoder.decode(d.body_string)
708 d.contains(packet)
709 return d
710
711 # Only SNAP is implemented
712 data_decoder = DataDecoder()
713 packet = data_decoder.decode(d.body_string)
714 d.contains(packet)
715 return d
716
717class SNAPDecoder(Decoder):
718 def __init__(self):

Callers 1

decodeMethod · 0.95

Calls 9

get_DSAPMethod · 0.95
get_SSAPMethod · 0.95
get_controlMethod · 0.95
decodeMethod · 0.95
decodeMethod · 0.95
SNAPDecoderClass · 0.85
DataDecoderClass · 0.85
set_decoded_protocolMethod · 0.80
containsMethod · 0.45

Tested by

no test coverage detected