A python script to dump all the challenges locally of a CTFd-based Capture the Flag.
Features
- Connects and logins to a remote CTFd instance.
- Dumps all the challenges by category.
- Download attached files.
- Prints a
✔️ or a❌ to indicate if the challenge is solved or not.
Usage
$ ./ctfd_parser.py -h
_____ _______ ______ _ _____
/ ____|__ __| ____|| | | __ \
| | | | | |__ __| | | |__) |_ _ _ __ ___ ___ _ __
| | | | | __/ _` | | ___/ _` | '__/ __|/ _ \ '__| v1.1
| |____ | | | | | (_| | | | | (_| | | \__ \ __/ |
\_____| |_| |_| \__,_| |_| \__,_|_| |___/\___|_| @podalirius_
usage: ctfd_parser.py [-h] -t TARGET -u USER -p PASSWORD [-T THREADS] [-v]
CTFdParser
optional arguments:
-h, --help show this help message and exit
-t TARGET, --target TARGET
CTFd target (domain or ip)
-u USER, --user USER Username to login to CTFd
-p PASSWORD, --password PASSWORD
Password to login to CTFd
-T THREADS, --threads THREADS
Number of threads (default: 8)
-v, --verbose Verbose mode. (default: False)
Demonstration
Contributors
Pull requests are welcome. Feel free to open an issue if you want to add other features.