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:
parent
732a1f3993
commit
9f53aa15a5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue