About
rCTF-golf is a Python 3 library for developing CTF golfing challenges.
Installation
Automatic
pip3 install rctf-golf
Manual
git clone https://github.com/redpwn/rCTF-golf.git
cd rCTF-golf.git
pip3 install requirements.txt
./setup.py install
Usage
from rctf import golf
rctf_host = 'https://staging.redpwn.net/' # just the base url of your rCTF installation
challenge_id = 'e0efc6e1-3b04-400a-9d72-a2e2ae02c1f6' # you can also use the challenge name
ctf_start = int(time.time() - 3*3600) # three hours ago
limit_function = lambda x : x
current_limit = golf.calculate_limit(rctf_host, challenge_id, ctf_start, limit_function)
Debugging
When testing your challenge, you can set the DEBUG environmental variable to the number of hours after the CTF has started, and rCTF-golf will automatically bypass calculation logic.
Note: Take care to ensure users do not control the DEBUG environmental variable when running your Python script or they may be able to hijack the limit calculations.
Documentation
Metadata
Release files for rctf-golf 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| rctf-golf-1.0.5.tar.gz | 3.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rctf_golf-1.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.3 kB
Release files / rctf-golf-1.0.5.tar.gz
| Download URL | rctf-golf-1.0.5.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f7bd92aeee71414c830817b347c13587031633e202ef1b843d6319d715eff67
|
|
BLAKE2b-256 checksum How to use checksums |
e46b3ac347f7603e4726cfdcdbddc7ec95b954292ac067398584850de5951da2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.3
|
Release files / rctf_golf-1.0.5-py3-none-any.whl
| Download URL | rctf_golf-1.0.5-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4855068491ce34bc761e41dcabe122655561b9cbb9947065c23afd1a358f896c
|
|
BLAKE2b-256 checksum How to use checksums |
339f6d11430c03c9f886de900524404091ae2d332af5eb73e181320e589f9152
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.3
|
Security for rctf-golf 1.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.