Catch other error types from SNMP

git-svn-id: file:///home/svn/framework3/trunk@12504 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
HD Moore 2011-05-02 05:38:13 +00:00
parent 732a1f3993
commit 9f53aa15a5
1 changed files with 4 additions and 1 deletions

View File

@ -151,7 +151,10 @@ class Metasploit3 < Msf::Auxiliary
# Used to flag whether this version was compatible
finished = true
rescue ::SNMP::UnsupportedPduTag, ::SNMP::InvalidPduTag, ::SNMP::ParseError, ::SNMP::InvalidErrorStatus, ::SNMP::InvalidTrapVarbind, ::SNMP::InvalidGenericTrap, ::SNMP::OutOfData, ::SNMP::InvalidLength, ::SNMP::InvalidTag, ::SNMP::InvalidObjectId, ::SNMP::InvalidLength, ::SNMP::ModuleNotLoadedError, ::SNMP::UnsupportedValueTag
next
rescue ::SNMP::UnsupportedVersion
break
rescue ::SNMP::RequestTimeout