Skip to content

Eirikalv1/ctftool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

ctftool

A simple shell script for managing CTF challenges. This script allows you to create, delete, set, and list CTFs and challenges within them.

Installation

  1. Clone the repository to your local machine.

    git clone https://github.com/Eirikalv1/ctftool.git
    cd ctftool
  2. Make the script executable.

    chmod +x ctftool.sh
  3. Add it to bashrc. ctftool.sh should be in the same directory as your CTF challenge directories.

    echo -e "alias ctf=\"source <DIRECTORY>/ctftool.sh\"\nctf rc" >> ~/.bashrc

Usage

  ctf new <ctfname>                 - Create a new CTF with the specified name.
  ctf delete <ctfname>              - Delete an existing CTF.
  ctf set <ctfname>                 - Set the current CTF directory.
  ctf unset                         - Unset the current CTF and challenge.
  ctf list                          - List all CTFs available.
  ctf chal new <challenge name>     - Create a new challenge in the current CTF.
  ctf chal delete <challenge name>  - Delete a challenge in the current CTF.
  ctf chal set <challenge name>     - Set the current challenge in the CTF.
  ctf chal unset                    - Unset the current challenge in the current CTF.
  ctf chal list                     - List all challenges in the current CTF.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages