Skip to main content

CLI tool to get and view stylised CTFTime.org writeups in your terminal.

Project description

ctft

ctft is a python cli tool to save and view stylised ctftime.org writeups locally in your terminal.

  • Search for writeups by name or keyword
  • View Stylised writeups from saved files
  • Writeups are saved are as markdown files which can also be read as plaintext(even though it doesn't make sense to read plaintext over formatted :unamused: )

VSCode users can also use markdown viewing extensions like Markdown Preview Enhanced to view writeups

The project took inspiration from mzfr's lswriteups but I wanted to further the ease of access and reduce browser dependence.

The tool currently scrapes only writeups on CTFTime.org and github READMEs. If you would like to add support for your site or your favourite author(with their permission ofcourse), feel free to contact me or make a pull request

Usage

 python3 ctft.py -h
usage: ctft [-h] (-e EVENT | -v TASK NAME)

Get and view stylised ctftime writeups in your terminal

optional arguments:
  -h, --help            show this help message and exit
  -e EVENT, --event EVENT
                        Name of the ctf event
  -v TASK NAME, --view TASK NAME
                        View writeup in terminal
  • The files are saved in your (home directory)/ctft_writeups

DEMO

python3 ctft.py -e asisctf

You can also make an alias of ctft or add ctft to $PATH for easier usage

ctft -v Web\ Warm-up

Installation

pip3 install ctft

Manual Installation

  • Cone the repo:

git clone https://github.com/bajatin/ctft

  • Install dependencies:

pip install -r requirements.txt

Contributing

I started this project solely for educational purposes to familiarize myself with python and asynchronous programming. Pull requests or suggestions for imporvement are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

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

ctft-0.1.11.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

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

ctft-0.1.11-py2.py3-none-any.whl (8.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file ctft-0.1.11.tar.gz.

File metadata

  • Download URL: ctft-0.1.11.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

File hashes

Hashes for ctft-0.1.11.tar.gz
Algorithm Hash digest
SHA256 5daef5c913edd5c505bda226bb8933ad4b26858b8bde6fda9230bdffb477b0e7
MD5 d024e1c3f14acaac3605fd564d218845
BLAKE2b-256 9d35381feee797d30ba588eb19d4067ea8513eda35783f8b500101a40dcc9c05

See more details on using hashes here.

File details

Details for the file ctft-0.1.11-py2.py3-none-any.whl.

File metadata

  • Download URL: ctft-0.1.11-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

File hashes

Hashes for ctft-0.1.11-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e47ef1423c8d53ce0c2853fb39119790bfe9a9cc966b1ccb94226b181285dcf3
MD5 60192f82b5db507f2bc047d9cd2e8be2
BLAKE2b-256 50f1ed504994c5c576f90ce4da8e5b2d373525ec77f4f1624af9120076099e8a

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