Skip to content

nsec/ctf-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CTF Script

Usage

Setup a CTF_ROOT_DIR environment variable to make the script execute in the right folder or execute the script from that folder.

Installation

Install with uv:

uv tool install git+https://github.com/nsec/ctf-script.git

Install with pipx:

pipx install git+https://github.com/nsec/ctf-script.git

Add Bash/Zsh autocompletion to .bashrc

echo 'eval "$(register-python-argcomplete ctf)"' >> ~/.bashrc && source ~/.bashrc # If using bash
echo 'eval "$(register-python-argcomplete ctf)"' >> ~/.zshrc && source ~/.zshrc   # If using zsh

Development

Install with uv virtual environment:

git clone https://github.com/nsec/ctf-script.git
cd ctf-script
uv venv venv
source venv/bin/activate
uv pip install -e .

Install with virtual environment and pip:

git clone https://github.com/nsec/ctf-script.git
cd ctf-script
python3 -m venv venv
source venv/bin/activate
pip install -e .