Skip to main content

A Python library for interacting with multiple CTF platforms.

Project description

CTF Bridge

CTF Bridge is a Python library for interacting with multiple CTF platforms through a unified interface.

⚠️ This project is still in development ⚠️

Overview

CTFBridge provides a simple, unified API to interact with different Capture the Flag (CTF) competition platforms like CTFd and more.

It hides platform-specific quirks and gives you consistent access to challenges, submissions, and authentication across platforms.

Features

  • 🌟 Unified API across different CTF platforms
  • 📄 Fetch challenges, attachments, and challenge metadata
  • 🔑 Handle logins, sessions, and authentication cleanly
  • ⚡ Automatic rate-limiting and retry handling
  • 🧩 Easy to extend with new platform clients
  • 🧪 Demo client for quick testing without external servers

Installation

pip install ctfbridge

Basic Usage

from ctfbridge import get_client

client = get_client("https://demo.ctfd.io")
client.login("admin", "password")

challenges = client.challenges.get_all()
for chal in challenges:
    print(f"[{chal.category}] {chal.name} ({chal.value} points)")

scoreboard = client.scoreboard.get_top(5)
for entry in scoreboard:
    print(f"[+] {entry.rank}. {entry.name} - {entry.score} points")

Supported Platforms

Platform Status
CTFd ✅ Supported
rCTF ✅ Supported
Demo (Local testing) ✅ Available
More platforms 🚧 In development

🧩 Projects Using CTFBridge

These projects use ctfbridge:

  • ctf-dl — Automates downloading all challenges from a CTF.
  • pwnv — Manages CTFs and challenges.

License

MIT License © 2025 bjornmorten

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ctfbridge-0.1.4.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ctfbridge-0.1.4-py3-none-any.whl (30.2 kB view details)

Uploaded Python 3

File details

Details for the file ctfbridge-0.1.4.tar.gz.

File metadata

  • Download URL: ctfbridge-0.1.4.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for ctfbridge-0.1.4.tar.gz
Algorithm Hash digest
SHA256 4f5b5dc20bb7d8da3f09aeab7e2cff79189fb289b7fa023fc00ee58b8e6ff35a
MD5 2b102d50ff34001e229d108c6faf5915
BLAKE2b-256 24e4b10119e0541c3fe06b2ba702eebdb366c13ac45bda6cdb60d5b5c1a2d3c6

See more details on using hashes here.

File details

Details for the file ctfbridge-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: ctfbridge-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 30.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for ctfbridge-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3afe4deda99700905c33a9ee02abf04df2cdae07b05ee6c40fcec91dfbb0289f
MD5 63a1623c79cf023d590f772e1045b12b
BLAKE2b-256 c6e1f176f123012b24a8d852060cc309753943e0fd4a5d7ecd40b943c980007b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page