diff --git a/lib/msf/core/exploit/browser_autopwnv2.rb b/lib/msf/core/exploit/browser_autopwnv2.rb index 18eca7c0db..9e41438f23 100644 --- a/lib/msf/core/exploit/browser_autopwnv2.rb +++ b/lib/msf/core/exploit/browser_autopwnv2.rb @@ -662,7 +662,7 @@ module Msf else host = Rex::Socket.source_address end - port = datastore['URIPORT'] || datastore['SRVPORT'] + port = datastore['URIPORT'] == 0 ? datastore['SRVPORT'] : datastore['URIPORT'] resource = mod.datastore['URIPATH'] url = "#{proto}://#{host}:#{port}#{resource}" urls << url