mirror of
https://github.com/rapid7/metasploitable3.git
synced 2024-07-05 03:05:51 +02:00
20 lines
338 B
Ruby
20 lines
338 B
Ruby
#
|
|
# Cookbook:: metasploitable
|
|
# Recipe:: mysql
|
|
#
|
|
# Copyright:: 2017, Rapid7, All Rights Reserved.
|
|
|
|
execute "apt-get update" do
|
|
command "apt-get update"
|
|
end
|
|
|
|
mysql_client 'default' do
|
|
action :create
|
|
end
|
|
|
|
mysql_service 'default' do
|
|
initial_root_password 'sploitme'
|
|
bind_address '0.0.0.0'
|
|
port '3306'
|
|
action [:create, :start]
|
|
end |