Land #6968, get_uri URIPORT fix (again)
commit
f7d261516d
|
@ -425,7 +425,7 @@ module Exploit::Remote::HttpServer
|
||||||
host = "[#{host}]"
|
host = "[#{host}]"
|
||||||
end
|
end
|
||||||
|
|
||||||
if datastore['URIPORT'] != 0
|
if datastore['URIPORT'] && datastore['URIPORT'] != 0
|
||||||
port = ':' + datastore['URIPORT'].to_s
|
port = ':' + datastore['URIPORT'].to_s
|
||||||
elsif (ssl and datastore["SRVPORT"] == 443)
|
elsif (ssl and datastore["SRVPORT"] == 443)
|
||||||
port = ''
|
port = ''
|
||||||
|
|
Loading…
Reference in New Issue