From cf714fe4aabf3df441328ce320e618597ad00e5b Mon Sep 17 00:00:00 2001 From: wchen-r7 Date: Tue, 14 Jul 2015 14:19:00 -0500 Subject: [PATCH] Change port logic too --- lib/msf/core/exploit/browser_autopwnv2.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/msf/core/exploit/browser_autopwnv2.rb b/lib/msf/core/exploit/browser_autopwnv2.rb index 94ad8fe4d4..2c52def0c0 100644 --- a/lib/msf/core/exploit/browser_autopwnv2.rb +++ b/lib/msf/core/exploit/browser_autopwnv2.rb @@ -664,7 +664,7 @@ module Msf else host = Rex::Socket.source_address end - port = datastore['SRVPORT'] + port = datastore['URIPORT'] || datastore['SRVPORT'] resource = mod.datastore['URIPATH'] url = "#{proto}://#{host}:#{port}#{resource}" urls << url