Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/p0dalirius/ctfd-parser
A python script to dump all the challenges locally of a CTFd-based Capture the Flag.
https://github.com/p0dalirius/ctfd-parser
challenges ctf ctfd dump parser python
Last synced: 5 days ago
JSON representation
A python script to dump all the challenges locally of a CTFd-based Capture the Flag.
- Host: GitHub
- URL: https://github.com/p0dalirius/ctfd-parser
- Owner: p0dalirius
- Created: 2022-03-26T09:42:50.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-11-18T12:29:12.000Z (2 months ago)
- Last Synced: 2025-01-19T19:07:27.019Z (12 days ago)
- Topics: challenges, ctf, ctfd, dump, parser, python
- Language: Python
- Homepage: https://podalirius.net/
- Size: 181 KB
- Stars: 136
- Watchers: 3
- Forks: 15
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
![](./.github/banner.png)
A python script to dump all the challenges locally of a CTFd-based Capture the Flag.
## Features
- [x] Connects and logins to a remote CTFd instance.
- [x] Dumps all the challenges by category.
- [x] Download attached files.
- [x] Prints a ✔️ or a :x: to indicate if the challenge is solved or not.
- [x] Setup template file in challenge dir : writeup.md / solve.py (optionnal)## Usage
```
$ ./ctfd_parser.py -h
_____ _______ ______ _ _____
/ ____|__ __| ____|| | | __ \
| | | | | |__ __| | | |__) |_ _ _ __ ___ ___ _ __
| | | | | __/ _` | | ___/ _` | '__/ __|/ _ \ '__| v1.1
| |____ | | | | | (_| | | | | (_| | | \__ \ __/ |
\_____| |_| |_| \__,_| |_| \__,_|_| |___/\___|_| @podalirius_usage: ctfd_parser.py [-h] -t TARGET -u USER -p PASSWORD [-T THREADS] [-v]
or
usage: ctfd_parser.py [a config.json must be in project root dir, containing a least target, user & password]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)
-I, --initfile Activate setup template files```
## Demonstration
![](./.github/example.png)
## Contributors
Pull requests are welcome. Feel free to open an issue if you want to add other features.