2018-09-29 23:12:44 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-09-29 23:26:22 +00:00
|
|
|
# Start root section
|
|
|
|
sudo su root <<'EOF'
|
2018-09-29 23:16:27 +00:00
|
|
|
|
2018-09-29 23:12:44 +00:00
|
|
|
# Apt update and installs
|
|
|
|
apt update
|
|
|
|
apt install python-pip curl -y
|
|
|
|
|
|
|
|
# Install Docker
|
|
|
|
curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
|
|
|
|
|
|
|
|
if [ -f /etc/apt/sources.list.d/docker.list ]; then
|
|
|
|
echo "Apt source entry exists, skipping."
|
|
|
|
else
|
|
|
|
echo 'deb https://download.docker.com/linux/debian stretch stable' > /etc/apt/sources.list.d/docker.list
|
|
|
|
fi
|
|
|
|
|
|
|
|
apt update
|
|
|
|
apt-get install docker-ce -y
|
|
|
|
systemctl start docker
|
|
|
|
systemctl enable docker
|
|
|
|
|
|
|
|
# Install Docker Compose
|
|
|
|
pip install docker-compose
|
|
|
|
|
2018-09-29 23:26:22 +00:00
|
|
|
# End of root section
|
|
|
|
EOF
|
|
|
|
|
2018-09-29 23:12:44 +00:00
|
|
|
# Pull dependencies from github
|
|
|
|
git submodule update --init --recursive
|
|
|
|
|
|
|
|
# Download latest compiled payload templates
|
|
|
|
wget https://github.com/n1nj4sec/pupy/releases/download/latest/payload_templates.txz
|
|
|
|
tar xvf payload_templates.txz && mv payload_templates/* pupy/payload_templates/ && rm payload_templates.txz && rm -r payload_templates
|
|
|
|
|
|
|
|
# Pull docker container
|
|
|
|
docker pull alxchk/pupy:unstable
|