Skip to main content

Client CLI for the Cryptotronix CTF server.

Project description

Summary

If you don’t want to have to deal with the REST API of our CTF server, this executable will wrap all of the requests in a simple and easy-to-use CLI.

If you want to check out the CTF server, you can here.

Usage

To register on the server use the ‘register’ command, providing a maximum 32 character username.

> register example_user
success!
user uuid: dae72401-b760-43e0-a188-d45556f0a7ff
saved.
>

To view the flags use the ‘flags’ command.

> flags
+------+-----------------------------+--------+
| name |         description         | points |
+======+=============================+========+
| 1.1  | This is a description.      | 5      |
+------+-----------------------------+--------+
| 1.2  | This is also a description. | 1      |
+------+-----------------------------+--------+

To submit answers to the server use the ‘submit’ command, providing the flag you are attempting to solve and your answer.

> submit 1.1 hello
world! good job!

To view the leaderboard use the ‘leaderboard’ command. Note, you will not appear on the leaderboard until you have at least one point.

> leaderboard
+----------------+--------+
|      user      | points |
+================+========+
| master         | 42     |
| rival          | 6      |
| example_user   | 5      |
+----------------+--------+

To ask for hints use the ‘hintbot’ command. He’s pretty lazy so he might not be awake at the start of the game. Send him the name of a flag to ask for a hint, or just chat with him.

> hintbot Can I have some help with 2.2?
Have you tried giving the correct answer?

If you want to use an already created user use the ‘set_user’ command and provide a user’s uuid.

> set_user 0786c22d-4ad1-4430-8505-ecd3d00194b2

If you need to change the server hostname from what you are about to provide, use the ‘set_hostname’ command.

> set_hostname ctf.challenge.com

State

This shell uses a sqlite database to save state and settings. This database will be created at ./.CTFshell.db by default, but can be given a custom path using CTFshell -d [path].

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

CTFshell-1.0.0.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

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

CTFshell-1.0.0-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file CTFshell-1.0.0.tar.gz.

File metadata

  • Download URL: CTFshell-1.0.0.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for CTFshell-1.0.0.tar.gz
Algorithm Hash digest
SHA256 aaadf7e8326721d48797da251c3944f0a394f8aae90737bf9062e2f9663857ee
MD5 0ee28b2336c83ac0f7afb4eb1a35ed38
BLAKE2b-256 819f3a379605801900175c22042b53b193cca09a226bda255b1d75e041261c72

See more details on using hashes here.

File details

Details for the file CTFshell-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: CTFshell-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for CTFshell-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b3c000467b4b3b9dc5deb5c14beca851c58c9ed3cd8b8819789b15578feba678
MD5 934fb22700c7d442daa797a746088dfd
BLAKE2b-256 0bb0bba27e3aae0b15e342806a8598d07b52a3270f17d25e1ce8453f6927f105

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