Land #4181 - Fix nil URIPORT in get_uri (HttpServer)
commit
ac4b2bee4d
|
@ -476,7 +476,7 @@ module Exploit::Remote::HttpServer
|
||||||
host = "[#{host}]"
|
host = "[#{host}]"
|
||||||
end
|
end
|
||||||
|
|
||||||
if datastore['URIPORT']
|
if 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