Skip to content

Commit 4b5bc84

Browse files
committed
Land rapid7#7918, Fix report_vuln for aux/scanner checks
2 parents 8ade9b8 + ba80e1d commit 4b5bc84

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/msf/ui/console/module_command_dispatcher.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,8 @@ def check_simple(instance=nil)
192192
if (code and code.kind_of?(Array) and code.length > 1)
193193
if (code == Msf::Exploit::CheckCode::Vulnerable)
194194
print_good("#{peer} #{code[1]}")
195+
# Restore RHOST for report_vuln
196+
instance.datastore['RHOST'] ||= rhost
195197
report_vuln(instance)
196198
else
197199
print_status("#{peer} #{code[1]}")

0 commit comments

Comments
 (0)