add extra check for failed command outputs

GSoC/Meterpreter_Web_Console
Auxilus 2018-05-24 20:47:06 +05:30 committed by GitHub
parent 40b6b97dbf
commit 72fb51f877
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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