-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prebellico crashes while processing certain SNMP community strings. #2
Comments
Changed the way I process SNMP strings. I believe this resolves the issue for issue #2.
This new code might potential resolve this issue. Will continue to monitor. |
Did some additional testing against some new code and it looks as if this issue is resolved. I do not have raw data to confirm this with the last reported crash by @n8tr0n so I am going to close this out for now. |
This appeared to crash again, so I am reopening the issue: Traceback (most recent call last): |
After the user reported that the last fix still led to a crash, I worked to include a check to see if the list was empty, and if so, just return, otherwise, work to extract the string. This is more than likely some other version of SNMP or something else entirely that does not use a single ascii printable character within the data packet.
Prebellico from time to time will crash when processing specific SNMP community strings. The traceback produces an 'IndexError: list index out of range' on line 326 in 'udpdiscovery' on the following line:
communitystring = filter(lambda x: x in printtable, snmptempdata[0])
This occurs just after host identification via UDP and port 161. This issue was originally identified by @unixrox and then later reported by @n8tr0n .
A sample PCAP has been obtained which can reproduce this issue and is being worked on.
The text was updated successfully, but these errors were encountered: