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 74cea5d commit 45c3c48Copy full SHA for 45c3c48
lib/msf/core/session.rb
@@ -245,7 +245,7 @@ def set_via(opts)
245
def set_from_exploit(m)
246
self.via = { 'Exploit' => m.fullname }
247
self.via['Payload'] = ('payload/' + m.datastore['PAYLOAD'].to_s) if m.datastore['PAYLOAD']
248
- self.target_host = Rex::Socket.getaddress(m.target_host.address) if (m.target_host.to_s.strip.length > 0)
+ self.target_host = Rex::Socket.getaddress(m.target_host) if (m.target_host.to_s.strip.length > 0)
249
self.target_port = m.target_port if (m.target_port.to_i != 0)
250
self.workspace = m.workspace
251
self.username = m.owner
0 commit comments