We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be06007 commit d69fbf0Copy full SHA for d69fbf0
lib/msf/base/sessions/scriptable.rb
@@ -84,7 +84,7 @@ def execute_script(script_name, *args)
84
original_exploit_datastore = self.exploit.datastore || {}
85
copy_of_orig_exploit_datastore = original_exploit_datastore.clone
86
# we don't want to inherit a couple things, like AutoRunScript's
87
- to_neuter = ['AutoRunScript', 'InitialAutoRunScript', 'LPORT']
+ to_neuter = %w{AutoRunScript InitialAutoRunScript LPORT TARGET}
88
to_neuter.each do |setting|
89
copy_of_orig_exploit_datastore.delete(setting)
90
end
0 commit comments