Land #6147, report_vuln for CheckCode::Vulnerable
commit
9b5149fc64
|
@ -164,6 +164,16 @@ module ModuleCommandDispatcher
|
||||||
end
|
end
|
||||||
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)
|
def check_simple(instance=nil)
|
||||||
unless instance
|
unless instance
|
||||||
instance = mod
|
instance = mod
|
||||||
|
@ -184,6 +194,7 @@ module ModuleCommandDispatcher
|
||||||
if (code and code.kind_of?(Array) and code.length > 1)
|
if (code and code.kind_of?(Array) and code.length > 1)
|
||||||
if (code == Msf::Exploit::CheckCode::Vulnerable)
|
if (code == Msf::Exploit::CheckCode::Vulnerable)
|
||||||
print_good("#{peer} - #{code[1]}")
|
print_good("#{peer} - #{code[1]}")
|
||||||
|
report_vuln(instance)
|
||||||
else
|
else
|
||||||
print_status("#{peer} - #{code[1]}")
|
print_status("#{peer} - #{code[1]}")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue