metasploitable3/chef/cookbooks/metasploitable/recipes/clear_cache.rb

13 lines
228 B
Ruby
Raw Normal View History

2017-07-20 22:44:38 +02:00
#
# Cookbook:: metasploitable
# Recipe:: clear_cache
#
# Copyright:: 2017, Rapid7, All Rights Reserved.
bash 'clear cache and backup that might contain sensitive information' do
code <<-EOH
cd /var/chef
rm -R *
EOH
end