You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any OID that has noSuchInstance (as shown in in tcpdump) fails with:
Exception has occurred: BER_Decoding_Error
Unknown prefix [81] for [b'\x81\x00']
### Already decoded ###
None
### Remaining ###
this in turn causes the whole SNMPResponse packet to be dropped/ignored.
I'm parsing a pcap file with sniff(...), no filters, doing nothing special.
Scapy version
2.5.0
Python version
3.11
Operating system
Linux x86_64
Additional environment information
No response
How to reproduce
pick some pcap where there are noSuchIsntace responses.
Basically, run tcpdump on some device and ask/get non existing OIDs
Actual result
The whole SNMP response packet is ignored
Expected result
At least return the packet with the right / extracted varbinds and ignore the noSuchInstance ones, or create new relevant type NONE ASN1_Tag doesnt handle that.
Related resources
No response
The text was updated successfully, but these errors were encountered:
nathanIL
changed the title
BER decoding fails during Varbind packets due to noSuchInstance
BER decoding fails during Varbind packet extraction due to noSuchInstance on some
Feb 14, 2023
Brief description
Any OID that has noSuchInstance (as shown in in tcpdump) fails with:
this in turn causes the whole SNMPResponse packet to be dropped/ignored.
I'm parsing a pcap file with sniff(...), no filters, doing nothing special.
Scapy version
2.5.0
Python version
3.11
Operating system
Linux x86_64
Additional environment information
No response
How to reproduce
pick some pcap where there are noSuchIsntace responses.
Basically, run tcpdump on some device and ask/get non existing OIDs
Actual result
The whole SNMP response packet is ignored
Expected result
At least return the packet with the right / extracted varbinds and ignore the noSuchInstance ones, or create new relevant type NONE ASN1_Tag doesnt handle that.
Related resources
No response
The text was updated successfully, but these errors were encountered: