Athackcon CTF 2021

Challenges written based on real-life scenarios that I discovered in bug-bounty and during penetration testing engagements.

A Github repository that contains all challenges.

Environment setup on Ubuntu


  • Install docker-engine

  • Install docker-compose

Install Docker and docker-compose.

# Update apt package index
sudo apt update
# Allow apt to use repository over HTTPS
sudo apt install \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg \
# Add Docker's official GPG key
curl -fsSL | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
# X86_64 / amd64
echo \
    "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

# Update apt package index
sudo apt update

# Install the latest version of docker engine and containerd.
sudo apt-get install docker-ce docker-ce-cli

# Download docker-compose version 1.29
sudo curl -L "$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

# Apply executable permissions to the binary
sudo chmod +x /usr/local/bin/docker-compose

# Add user to docker group
sudo usermod -aG docker $(whoami)

Reboot the machine.

sudo reboot

Install git.

sudo apt install git

Clone the repository.

git clone

After cloning the repository change the current directory to the repository directory.

cd tcc-ctf

Builds Docker images from Dockerfiles.

docker-compose build

Create and start containers

docker-compose up







Last updated