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 094fa81 commit 893a4a5Copy full SHA for 893a4a5
lib/msf/core/module/failure.rb
@@ -58,7 +58,7 @@ def report_failure
58
if self.datastore['RHOST'] && (self.options['RHOST'] || self.options['RHOSTS'])
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)
+ # Check if RHOST is a valid IP address to avoid ActiveRecord issues on validation
62
if Rex::Socket.is_ip_addr?(rhost)
63
info[:host] = rhost
64
end
0 commit comments