Makign changes recommended in redmine 7945 to fix SNMP enum module failing to catch some fail cases

unstable
Thomas Ring 2013-06-07 13:55:59 -05:00
parent b34c3fbbc1
commit 2bb0bd504c
1 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ class Metasploit3 < Msf::Auxiliary
systemDate = snmp.get_value('1.3.6.1.2.1.25.1.2.0')
str = systemDate.to_s
if (str.empty? or str =~ /Null/)
if (str.empty? or str =~ /Null/ or str =~ /^noSuch/)
output_data["System date"] = '-'
else
@ -653,7 +653,7 @@ class Metasploit3 < Msf::Auxiliary
end
hrFSRemoteMountPoint = snmp.get_value('1.3.6.1.2.1.25.3.8.1.3.1')
if hrFSRemoteMountPoint.to_s !~ /Null/
if hrFSRemoteMountPoint.to_s !~ /Null/ and hrFSRemoteMountPoint.to_s !~ /^noSuch/
if hrFSRemoteMountPoint.empty?
hrFSRemoteMountPoint = '-'
end