Land #6147, report_vuln for CheckCode::Vulnerable
commit
9b5149fc64
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue