- by Mars Ponce & Haashir Khan
This repository holds the vulnerable "hacker forum" that will be used in the week 8 CTF lab
- Ensure that a PostgreSQL server is available and running
- A sample Postgres docker command exists in
/sql/start.sh
- A sample Postgres docker command exists in
- Enter it's values into
.env(see.env.example) - To run the site, there are two options:
- Dockerized:
- create the container with:
docker build -t ctf-427 .- run the container and make sure to expose the relevant ports:
docker run -d --restart unless-stopped --env-file .env -p 3000:3000 --name hacker-forum ctf-427 - Non-Dockerized:
npm run startnpm run dev(development mode with nodemon)
- Dockerized: