CTFd-Crawler is a tool designed to efficiently manage and download CTF challenge files.
Project description
CTFd-Crawler
Overview
CTFd-Crawler is a tool designed to efficiently manage and download CTF challenge files. It organizes downloads into categories, supports multi-threaded downloads for speed enhancement, logs all activities, and stores metadata in JSON format.
Features
- Downloads
- Organize downloaded files into subdirectories based on challenge categories.
- Implement multi-threading to download multiple files simultaneously, improving overall download speed.
- Create a detailed log of the download process, including any errors and warnings.
- Show detailed progress of downloading.
- It save description into description.txt.
- Directory rules.
- If contents are in a directory, it create another directory.
- If contents are not in a directory, the files just saved in it.
- All file / folder name including space is replaced with underscore.
- There are two options in loading information about CTF.
- Load from file (have to set directory when use crawler. if not, It basically set to current directory)
- Load from user input (not recommended, automatically saved into file)
- All information about ctf (name, token, url, download location) saved into file with json format for convenient access.
- Crawling all challenges and dump them into file too.
Usage
from ctfd_crawling import CTFCrawler
crawler = CTFCrawler("./")
crawler.load("h4ckinggame") # load from h4ckinggame.json
# crawler.self_load("h4ckinggame", "https://h4ckingga.me", "****************************************************************", "archive/h4ckinggame")
print("load")
res = (crawler.get_challenges())
print("get_challenges")
crawler.download_challenges(res)
you can choose one option between load
and self_load
. load
is loading from file and self_load
is loading from user input.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ctfd_crawler-0.0.2.tar.gz
(4.9 kB
view details)
Built Distribution
File details
Details for the file ctfd_crawler-0.0.2.tar.gz
.
File metadata
- Download URL: ctfd_crawler-0.0.2.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae8d0895554836b1cadd0e9457a951bbad1f28348b60b26aa98b565a541f86a4 |
|
MD5 | af3933ef81e5eef8db11480bf89b3d42 |
|
BLAKE2b-256 | 431fdf242984cfdef9ef9129af87bbc0a47e8cbaf2f34e474cbcfbeb9ab76900 |
File details
Details for the file CTFd_Crawler-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: CTFd_Crawler-0.0.2-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05dfd3d6d09794e63cd0e6df923fe42b5442ade15c027d4d9130b00e91f782de |
|
MD5 | 7e1dd8e40c3d997634fdb17a29238e9b |
|
BLAKE2b-256 | 433ba7907b9d354ce8f00187a547a4e7f0f2dd079ad8e7b84bd208bb50efc57d |