Skip to content

Commit d64f4be

Browse files
committed
Check if URIPORT is 0
1 parent 5e63b5f commit d64f4be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/exploit/browser_autopwnv2.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ def get_exploit_urls(cli, request)
662662
else
663663
host = Rex::Socket.source_address
664664
end
665-
port = datastore['URIPORT'] || datastore['SRVPORT']
665+
port = datastore['URIPORT'] == 0 ? datastore['SRVPORT'] : datastore['URIPORT']
666666
resource = mod.datastore['URIPATH']
667667
url = "#{proto}://#{host}:#{port}#{resource}"
668668
urls << url

0 commit comments

Comments
 (0)