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 1dc1a24 commit 094fa81Copy full SHA for 094fa81
lib/msf/core/module/failure.rb
@@ -59,7 +59,7 @@ def report_failure
59
# Only include RHOST if it's a single valid host, not a multi-value string or file path
60
rhost = self.datastore['RHOST'].to_s
61
# Check if RHOST is not a file path and doesn't contain spaces (multiple hosts)
62
- unless rhost.start_with?('file:') || rhost.include?(' ')
+ if Rex::Socket.is_ip_addr?(rhost)
63
info[:host] = rhost
64
end
65
0 commit comments