diff --git a/lib/msf/ui/console/module_command_dispatcher.rb b/lib/msf/ui/console/module_command_dispatcher.rb index 7583e93a44..07bcef3693 100644 --- a/lib/msf/ui/console/module_command_dispatcher.rb +++ b/lib/msf/ui/console/module_command_dispatcher.rb @@ -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