Check if URIPORT is 0
parent
5e63b5f93e
commit
d64f4be691
|
@ -662,7 +662,7 @@ module Msf
|
|||
else
|
||||
host = Rex::Socket.source_address
|
||||
end
|
||||
port = datastore['URIPORT'] || datastore['SRVPORT']
|
||||
port = datastore['URIPORT'] == 0 ? datastore['SRVPORT'] : datastore['URIPORT']
|
||||
resource = mod.datastore['URIPATH']
|
||||
url = "#{proto}://#{host}:#{port}#{resource}"
|
||||
urls << url
|
||||
|
|
Loading…
Reference in New Issue