Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 786 Bytes

File metadata and controls

23 lines (20 loc) · 786 Bytes

CTF427

  • by Mars Ponce & Haashir Khan

This repository holds the vulnerable "hacker forum" that will be used in the week 8 CTF lab

Setup

  • Ensure that a PostgreSQL server is available and running
    • A sample Postgres docker command exists in /sql/start.sh
  • 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 start
      • npm run dev (development mode with nodemon)