get_uri missing port fix

bug/bundler_fix
Trenton Ivey 2016-06-12 19:27:34 -05:00
parent b0bf901b22
commit 776dd57803
1 changed files with 1 additions and 1 deletions

View File

@ -425,7 +425,7 @@ module Exploit::Remote::HttpServer
host = "[#{host}]"
end
if datastore['URIPORT'] != 0
if datastore['URIPORT'] && datastore['URIPORT'] != 0
port = ':' + datastore['URIPORT'].to_s
elsif (ssl and datastore["SRVPORT"] == 443)
port = ''