We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d32166 commit 7652927Copy full SHA for 7652927
lib/msf/core/exploit.rb
@@ -294,7 +294,7 @@ def initialize(info = {})
294
# Don't add the automatic target unless there's already more than one target to pick from
295
if info['Targets'].count > 1
296
# Finally, only add the target if there is a remote host option
297
- if self.options['RHOST']
+ if self.respond_to?(:rhost) && self.respond_to?(:auto_targeted_index)
298
auto = ["Automatic", { 'AutoGenerated' => true}]
299
info['Targets'].unshift(auto)
300
end
0 commit comments