MCPcopy Index your code
hub / github.com/USArmyResearchLab/Dshell / __init__

Method __init__

dshell/plugins/protocol/protocol.py:11–18  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

9class DshellPlugin(dshell.core.PacketPlugin):
10
11 def __init__(self):
12 super().__init__(
13 name="Uncommon Protocols",
14 description="Finds uncommon (i.e. not tcp, udp, or icmp) protocols in IP traffic",
15 bpf="(ip or ip6) and not tcp and not udp and not icmp and not icmp6",
16 author="bg",
17 output=AlertOutput(label=__name__),
18 )
19
20 def packet_handler(self, packet):
21 self.write("PROTOCOL: {} ({})".format(packet.protocol, packet.protocol_num), **packet.info(), dir_arrow="->")

Callers

nothing calls this directly

Calls 1

AlertOutputClass · 0.90

Tested by

no test coverage detected