(self)
| 9 | class 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="->") |
nothing calls this directly
no test coverage detected