mirror of https://github.com/n1nj4sec/pupy.git
install: we don't distribute prebuilt templates anymore
This commit is contained in:
parent
94fa1c1669
commit
72e8e19246
17
install.sh
17
install.sh
|
@ -30,21 +30,18 @@ apt-get install docker-ce -y
|
||||||
systemctl start docker
|
systemctl start docker
|
||||||
systemctl enable docker
|
systemctl enable docker
|
||||||
|
|
||||||
# Install Docker Compose
|
|
||||||
pip install docker-compose
|
|
||||||
|
|
||||||
# Add user to docker group
|
# Add user to docker group
|
||||||
usermod -aG docker $username
|
usermod -aG docker $username
|
||||||
|
|
||||||
# End of root section
|
# End of root section
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Pull dependencies from github
|
PYTHON=python
|
||||||
git submodule update --init --recursive
|
|
||||||
|
|
||||||
# Download latest compiled payload templates
|
$PYTHON --help >/dev/null
|
||||||
wget https://github.com/n1nj4sec/pupy/releases/download/latest/payload_templates.txz
|
if [ ! $? -eq 0 ]; then
|
||||||
tar xvf payload_templates.txz && mv payload_templates/* pupy/payload_templates/ && rm payload_templates.txz && rm -r payload_templates
|
PYTHON=python3
|
||||||
|
fi
|
||||||
|
|
||||||
# Build docker container
|
# Create workspace at ~/pupyws
|
||||||
sudo docker pull alxchk/pupy:base-unstable
|
${PYTHON} create-workspace.py -E docker -P $HOME/pupyws
|
||||||
|
|
Loading…
Reference in New Issue