Land #4181 - Fix nil URIPORT in get_uri (HttpServer)

bug/bundler_fix
sinn3r 2014-11-12 10:54:16 -06:00
commit ac4b2bee4d
No known key found for this signature in database
GPG Key ID: 2384DB4EF06F730B
1 changed files with 1 additions and 1 deletions

View File

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