We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b34c3fb commit 2bb0bd5Copy full SHA for 2bb0bd5
modules/auxiliary/scanner/snmp/snmp_enum.rb
@@ -84,7 +84,7 @@ def run_host(ip)
84
85
systemDate = snmp.get_value('1.3.6.1.2.1.25.1.2.0')
86
str = systemDate.to_s
87
- if (str.empty? or str =~ /Null/)
+ if (str.empty? or str =~ /Null/ or str =~ /^noSuch/)
88
output_data["System date"] = '-'
89
else
90
@@ -653,7 +653,7 @@ def run_host(ip)
653
end
654
655
hrFSRemoteMountPoint = snmp.get_value('1.3.6.1.2.1.25.3.8.1.3.1')
656
- if hrFSRemoteMountPoint.to_s !~ /Null/
+ if hrFSRemoteMountPoint.to_s !~ /Null/ and hrFSRemoteMountPoint.to_s !~ /^noSuch/
657
if hrFSRemoteMountPoint.empty?
658
hrFSRemoteMountPoint = '-'
659
0 commit comments