Land #7918, Fix report_vuln for aux/scanner checks

bug/bundler_fix
wchen-r7 2017-02-09 12:18:33 -06:00
commit 4b5bc84f5c
No known key found for this signature in database
GPG Key ID: 2384DB4EF06F730B
1 changed files with 2 additions and 0 deletions

View File

@ -192,6 +192,8 @@ module ModuleCommandDispatcher
if (code and code.kind_of?(Array) and code.length > 1)
if (code == Msf::Exploit::CheckCode::Vulnerable)
print_good("#{peer} #{code[1]}")
# Restore RHOST for report_vuln
instance.datastore['RHOST'] ||= rhost
report_vuln(instance)
else
print_status("#{peer} #{code[1]}")