Skip to content

Commit 2c07f51

Browse files
committed
uses clone instead of dup
1 parent 8fe8ee9 commit 2c07f51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/base/sessions/scriptable.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def execute_script(script_name, *args)
8282
if mod.category == "local"
8383
# get a copy of the session exploit's datastore if we can
8484
original_exploit_datastore = self.exploit.datastore || {}
85-
copy_of_orig_exploit_datastore = original_exploit_datastore.dup
85+
copy_of_orig_exploit_datastore = original_exploit_datastore.clone
8686
# we don't want to inherit a couple things, like AutoRunScript's
8787
to_neuter = ['AutoRunScript', 'InitialAutoRunScript']
8888
to_neuter.each { |setting| copy_of_orig_exploit_datastore.delete(setting) }

0 commit comments

Comments
 (0)