unixrox/prebellico

Prebellico crashes while encountering a SNAP protocol frame

Closed this issue · 1 comments

There appears to be a missing protocol handler for the SNAP protocol:
Traceback (most recent call last):
File "./prebellico.py.beta", line 821, in
sniff.loop(0, inspectproto)
File "./prebellico.py.beta", line 195, in inspectproto
protocolnumber = decoder.decode(data).child().child().protocol
AttributeError: SNAP instance has no attribute 'protocol'

This is believed to be the SubNetwork Access Protocol:
https://en.wikipedia.org/wiki/Subnetwork_Access_Protocol

More research is required to determine if this is something useful, and if so, how to handle instances of it.

This was somewhat addressed by a handler working to determine if a protocol has been defined. This will be problematic for things like DTP detection, which will be built into prebellico, but this issue was addressed by the following commit: 37d0120