File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,7 @@ def set_exploit_options(xploit)
140
140
xploit . datastore [ 'DisablePayloadHandler' ] = true
141
141
xploit . datastore [ 'BrowserProfilePrefix' ] = browser_profile_prefix
142
142
xploit . datastore [ 'URIPATH' ] = "/#{ assign_module_resource } "
143
+ xploit . datastore [ 'WORKSPACE' ] = self . workspace
143
144
144
145
# Register this module as a child and copy datastore options
145
146
xploit . register_parent ( self )
@@ -156,6 +157,7 @@ def is_resource_taken?(resource)
156
157
157
158
bap_exploits . each do |m |
158
159
# Prevent partial matching of one resource within another
160
+ next unless m . datastore [ 'URIPATH' ]
159
161
return true if m . datastore [ 'URIPATH' ] . index ( resource )
160
162
return true if resource . index ( m . datastore [ 'URIPATH' ] )
161
163
end
@@ -339,6 +341,7 @@ def start_payload_listeners
339
341
# Configurable only by BAP
340
342
multi_handler . datastore [ 'ExitOnSession' ] = false
341
343
multi_handler . datastore [ 'EXITFUNC' ] = 'thread'
344
+ multi_handler . datastore [ 'WORKSPACE' ] = self . workspace
342
345
343
346
# Register this module as a child and copy datastore options
344
347
multi_handler . register_parent ( self )
You can’t perform that action at this time.
0 commit comments