Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 1.02 KB

File metadata and controls

31 lines (23 loc) · 1.02 KB

CTFDex

Important

Don't rely on this tool to solve CTF challenges for you if you're serious about learning cybersecurity. This is just an experiment :)

What this does

CTFDex can scrape CTFd-based CTF sites for challenges using playwright, and extracts challenge titles, descriptions, points and any challenge files.

Each challenge is then passed into OpenAI's Codex which attempts to solve the challenge and return the flag.

Installation

Install Python, git and Codex. You also need to have wget installed (on Linux) or curl on Windows.

git clone https://github.com/Techie-Ernie/ctfdex.git
cd ctfdex
pip install -r requirements.txt
playwright install 

How to use

Edit configuration at config.yaml, or create another config file, then run:

python main.py 

or with a custom config file:

python main.py -c newconfig.yaml