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 4ec8798 commit dfba42eCopy full SHA for dfba42e
lib/msf/base/sessions/meterpreter.rb
@@ -174,7 +174,7 @@ def bootstrap(datastore={})
174
end
175
176
['InitialAutoRunScript', 'AutoRunScript'].each do |key|
177
- unless datastore[key].empty?
+ unless datastore[key].nil? || datastore[key].empty?
178
args = Shellwords.shellwords(datastore[key])
179
print_status("Session ID #{session.sid} (#{session.tunnel_to_s}) processing #{key} '#{datastore[key]}'")
180
session.execute_script(args.shift, *args)
0 commit comments