Add new vuln for proftpd mod_copy
This commit is contained in:
parent
3566e9f009
commit
6549e398bc
|
@ -155,6 +155,7 @@ Vagrant.configure("2") do |config|
|
|||
chef.add_recipe "metasploitable::apache"
|
||||
chef.add_recipe "metasploitable::php_545"
|
||||
chef.add_recipe "metasploitable::phpmyadmin"
|
||||
chef.add_recipe "metasploitable::proftpd"
|
||||
chef.add_recipe "metasploitable::users"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -0,0 +1,39 @@
|
|||
#!/bin/sh
|
||||
### BEGIN INIT INFO
|
||||
# Provides: proftpd
|
||||
# Required-Start: $local_fs
|
||||
# Required-Stop: $local_fs
|
||||
# Default-Start: 2 3 4 5
|
||||
# Default-Stop: 0 1 6
|
||||
# X-Interactive: false
|
||||
# Short-Description: Init script for proftpd
|
||||
# Description: Start/stop proftpd
|
||||
### END INIT INFO
|
||||
|
||||
DESC="proftpd"
|
||||
NAME=proftpd
|
||||
#DAEMON=
|
||||
|
||||
do_start()
|
||||
{
|
||||
echo "Starting proftpd.";
|
||||
/opt/proftpd/sbin/proftpd
|
||||
}
|
||||
|
||||
do_stop()
|
||||
{
|
||||
echo "Stopping proftpd."
|
||||
killall proftpd
|
||||
}
|
||||
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
do_start
|
||||
;;
|
||||
stop)
|
||||
do_stop
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
|
@ -39,6 +39,10 @@ execute 'disable-serve-cgi-bin-conf' do
|
|||
command 'a2disconf serve-cgi-bin'
|
||||
end
|
||||
|
||||
execute 'make /var/www/html writeable' do
|
||||
command 'chmod o+w /var/www/html'
|
||||
end
|
||||
|
||||
service 'apache2' do
|
||||
action [:enable, :start]
|
||||
end
|
||||
|
|
|
@ -0,0 +1,30 @@
|
|||
#
|
||||
# Cookbook:: proftpd
|
||||
# Recipe:: phpmyadmin
|
||||
#
|
||||
# Copyright:: 2017, Rapid7, All Rights Reserved.
|
||||
|
||||
# Install steps taken from https://github.com/rapid7/metasploit-framework/pull/5224
|
||||
|
||||
include_recipe 'metasploitable::apache'
|
||||
|
||||
bash "download, extract, and compile proftpd" do
|
||||
code <<-EOH
|
||||
cd /home/vagrant
|
||||
wget "ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.5.tar.gz"
|
||||
tar zxfv proftpd-1.3.5.tar.gz
|
||||
cd proftpd-1.3.5
|
||||
./configure --prefix=/opt/proftpd --with-modules=mod_copy
|
||||
make
|
||||
make install
|
||||
EOH
|
||||
end
|
||||
|
||||
cookbook_file '/etc/init.d/proftpd' do
|
||||
source 'proftpd/proftpd'
|
||||
mode '760'
|
||||
end
|
||||
|
||||
service 'proftpd' do
|
||||
action [:enable, :start]
|
||||
end
|
Loading…
Reference in New Issue