Skip to content

Commit 89a8d27

Browse files
committed
Fix port 0 bug in URIPORT
1 parent c73a866 commit 89a8d27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/exploit/http/server.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ def get_uri(cli=self.cli)
476476
host = "[#{host}]"
477477
end
478478

479-
if datastore['URIPORT']
479+
if datastore['URIPORT'] != 0
480480
port = ':' + datastore['URIPORT'].to_s
481481
elsif (ssl and datastore["SRVPORT"] == 443)
482482
port = ''

0 commit comments

Comments
 (0)