mirror of
https://github.com/rapid7/metasploitable3.git
synced 2024-09-20 00:01:44 +02:00
26 lines
734 B
Ruby
26 lines
734 B
Ruby
|
#
|
||
|
# Cookbook:: metasploitable
|
||
|
# Recipe:: phpmyadmin
|
||
|
#
|
||
|
# Copyright:: 2017, Rapid7, All Rights Reserved.
|
||
|
|
||
|
include_recipe 'metasploitable::mysql'
|
||
|
include_recipe 'metasploitable::apache'
|
||
|
include_recipe 'metasploitable::php_545'
|
||
|
|
||
|
bash "download and extract phpmyadmin" do
|
||
|
code <<-EOH
|
||
|
wget -c -t 3 -O /tmp/phpMyAdmin-3.5.8-all-languages.tar.gz https://files.phpmyadmin.net/phpMyAdmin/3.5.8/phpMyAdmin-3.5.8-all-languages.tar.gz
|
||
|
tar xvfz /tmp/phpMyAdmin-3.5.8-all-languages.tar.gz -C /var/www/html
|
||
|
mv /var/www/html/phpMyAdmin-3.5.8-all-languages /var/www/html/phpmyadmin
|
||
|
EOH
|
||
|
end
|
||
|
|
||
|
cookbook_file 'var/www/html/phpmyadmin/config.inc.php' do
|
||
|
source 'phpmyadmin/config.inc.php'
|
||
|
end
|
||
|
|
||
|
service 'apache2' do
|
||
|
action [:restart]
|
||
|
end
|