Skip to content

Commit 2264efa

Browse files
committed
Reduce output
1 parent cad929e commit 2264efa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/msf/core/exploit/browser_autopwnv2.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ def set_exploit_options(xploit)
140140
xploit.datastore['DisablePayloadHandler'] = true
141141
xploit.datastore['BrowserProfilePrefix'] = browser_profile_prefix
142142
xploit.datastore['URIPATH'] = "/#{assign_module_resource}"
143+
xploit.datastore['WORKSPACE'] = self.workspace
143144

144145
# Register this module as a child and copy datastore options
145146
xploit.register_parent(self)
@@ -156,6 +157,7 @@ def is_resource_taken?(resource)
156157

157158
bap_exploits.each do |m|
158159
# Prevent partial matching of one resource within another
160+
next unless m.datastore['URIPATH']
159161
return true if m.datastore['URIPATH'].index(resource)
160162
return true if resource.index(m.datastore['URIPATH'])
161163
end
@@ -339,6 +341,7 @@ def start_payload_listeners
339341
# Configurable only by BAP
340342
multi_handler.datastore['ExitOnSession'] = false
341343
multi_handler.datastore['EXITFUNC'] = 'thread'
344+
multi_handler.datastore['WORKSPACE'] = self.workspace
342345

343346
# Register this module as a child and copy datastore options
344347
multi_handler.register_parent(self)

0 commit comments

Comments
 (0)