add extra check for failed command outputs
parent
40b6b97dbf
commit
72fb51f877
|
@ -74,7 +74,7 @@ class MetasploitModule < Msf::Post
|
|||
|
||||
# Save enumerated data
|
||||
def save(msg, data, ctype="text/plain")
|
||||
if data.nil?
|
||||
if data.nil? || data =~ /not found/ || data =~ /cannot access/
|
||||
print_bad("Unable to get data for #{msg}")
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue