Land #6147, report_vuln for CheckCode::Vulnerable

bug/bundler_fix
William Vu 2015-11-02 17:24:06 -06:00
commit 9b5149fc64
No known key found for this signature in database
GPG Key ID: 68BD00CE25866743
1 changed files with 11 additions and 0 deletions

View File

@ -164,6 +164,16 @@ module ModuleCommandDispatcher
end
end
def report_vuln(instance)
framework.db.report_vuln(
workspace: instance.workspace,
host: instance.rhost,
name: instance.name,
info: "This was flagged as vulnerable by the explicit check of #{instance.fullname}.",
refs: instance.references
)
end
def check_simple(instance=nil)
unless instance
instance = mod
@ -184,6 +194,7 @@ module ModuleCommandDispatcher
if (code and code.kind_of?(Array) and code.length > 1)
if (code == Msf::Exploit::CheckCode::Vulnerable)
print_good("#{peer} - #{code[1]}")
report_vuln(instance)
else
print_status("#{peer} - #{code[1]}")
end