1 Upgrade the distro to make sure you have the latest install.
apt-get update && apt-get dist-upgrade |
2 Install kernel headers and virtualbox
apt-get install linux-headers-$(uname -r) dkms virtualbox |
3 Install Pureftpd. This is not really required. It is just another option to use to upload stuff during penetration tests.
apt-get install pure-ftpd |
4 This is a script I worked on while doing my OCSP. It will automagically configure Pure-FTPD.
#!/bin/bash
# bash script to setup and configure pure-ftpd server
echo "[*] Creating ftpgroup and ftpuser [*]\n"
groupadd ftpgroup
useradd -g ftpgroup -d /home/dir -s /dev/null ftpuser
echo "[*] Configuring ftpuser kryptonite [*]\n"
pure-pw useradd kryptonite -u ftpuser -d /ftphome
pure-pw mkdb
cd /etc/pure-ftpd/auth/
ln -s ../conf/PureDB 60pdb
echo "[*] Setting home directory to /ftphome/ [*]\n"
mkdir /ftphome
echo "[*] Setting permissions on home directory [*]\n"
chown -R ftpuser:ftpgroup /ftphome/
echo "[*] Setup Complete Restarting Server [*]\n"
service pure-ftpd restart
# bash script to setup and configure pure-ftpd server
echo "[*] Creating ftpgroup and ftpuser [*]\n"
groupadd ftpgroup
useradd -g ftpgroup -d /home/dir -s /dev/null ftpuser
echo "[*] Configuring ftpuser kryptonite [*]\n"
pure-pw useradd kryptonite -u ftpuser -d /ftphome
pure-pw mkdb
cd /etc/pure-ftpd/auth/
ln -s ../conf/PureDB 60pdb
echo "[*] Setting home directory to /ftphome/ [*]\n"
mkdir /ftphome
echo "[*] Setting permissions on home directory [*]\n"
chown -R ftpuser:ftpgroup /ftphome/
echo "[*] Setup Complete Restarting Server [*]\n"
service pure-ftpd restart
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.