Skip to content

Commit d69fbf0

Browse files
committed
adds TARGET to 'to_neuter' list
1 parent be06007 commit d69fbf0

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
@@ -84,7 +84,7 @@ def execute_script(script_name, *args)
8484
original_exploit_datastore = self.exploit.datastore || {}
8585
copy_of_orig_exploit_datastore = original_exploit_datastore.clone
8686
# we don't want to inherit a couple things, like AutoRunScript's
87-
to_neuter = ['AutoRunScript', 'InitialAutoRunScript', 'LPORT']
87+
to_neuter = %w{AutoRunScript InitialAutoRunScript LPORT TARGET}
8888
to_neuter.each do |setting|
8989
copy_of_orig_exploit_datastore.delete(setting)
9090
end

0 commit comments

Comments
 (0)