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