Skip to content

Commit cf714fe

Browse files
committed
Change port logic too
1 parent 61d49f2 commit cf714fe

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
@@ -664,7 +664,7 @@ def get_exploit_urls(cli, request)
664664
else
665665
host = Rex::Socket.source_address
666666
end
667-
port = datastore['SRVPORT']
667+
port = datastore['URIPORT'] || datastore['SRVPORT']
668668
resource = mod.datastore['URIPATH']
669669
url = "#{proto}://#{host}:#{port}#{resource}"
670670
urls << url

0 commit comments

Comments
 (0)