Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 1.26 KB

container-docker.en.md

File metadata and controls

32 lines (24 loc) · 1.26 KB

Instructions to install and use the Platform via Docker:

1 - Download the Dockerfile here and put it alone in a folder.

2 - Install docker:

$ sudo apt-get install docker.io

3 - Enter the Dockerfile directory, and build the base image:

$ sudo docker build -t pwn2win .

4 - Create a container from image (we are assuming here that your user's ssh key is the key that is in GitHub):

$ sudo docker run --name pwn2win -it -v $HOME/.ssh/id_rsa:/root/.ssh/id_rsa pwn2win

5 - Replace your GitHub infos in the variables, and install the platform dependencies inside the container:

root@c62ed90932e6:/ctf/2018# git config --global user.name "YOUR_USER_HERE" && git config --global user.email "YOUR_EMAIL_HERE" && git clone git@github.com:pwn2winctf/2018.git && cd $HOME_DIR/2018 && curl https://bootstrap.pypa.io/get-pip.py | sudo -H python && sudo -H python -m pip install -r pip-requirements.txt
  • 5.1 - Now, if you type "exit" or reboot your Host PC, you need to go back to the container:
   $ sudo docker restart pwn2win
   $ sudo docker exec -it pwn2win /bin/bash

6 - Back to README and follow from the fourth step onwards.