Fix SRVHOST
parent
9dddb13d0b
commit
f76fe07872
|
@ -654,7 +654,7 @@ module Msf
|
||||||
|
|
||||||
exploit_list.each do |mod|
|
exploit_list.each do |mod|
|
||||||
proto = datastore['SSL'] ? 'https' : 'http'
|
proto = datastore['SSL'] ? 'https' : 'http'
|
||||||
host = datastore['URIHOST'] || Rex::Socket.source_address
|
host = (datastore['SRVHOST'] == '0.0.0.0') ? Rex::Socket.source_address : datastore['SRVHOST']
|
||||||
port = datastore['SRVPORT']
|
port = datastore['SRVPORT']
|
||||||
resource = mod.datastore['URIPATH']
|
resource = mod.datastore['URIPATH']
|
||||||
url = "#{proto}://#{host}:#{port}#{resource}"
|
url = "#{proto}://#{host}:#{port}#{resource}"
|
||||||
|
|
Loading…
Reference in New Issue