Skip to content

Commit f76fe07

Browse files
committed
Fix SRVHOST
1 parent 9dddb13 commit f76fe07

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
@@ -654,7 +654,7 @@ def get_exploit_urls(cli, request)
654654

655655
exploit_list.each do |mod|
656656
proto = datastore['SSL'] ? 'https' : 'http'
657-
host = datastore['URIHOST'] || Rex::Socket.source_address
657+
host = (datastore['SRVHOST'] == '0.0.0.0') ? Rex::Socket.source_address : datastore['SRVHOST']
658658
port = datastore['SRVPORT']
659659
resource = mod.datastore['URIPATH']
660660
url = "#{proto}://#{host}:#{port}#{resource}"

0 commit comments

Comments
 (0)