Skip to content

Commit ba80e1d

Browse files
committed
Fix report_vuln for aux/scanner checks
Msf::Auxiliary::Scanner#setup sets it to nil in instance.check_simple.
1 parent cab19dc commit ba80e1d

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)