File tree 1 file changed +48
-1
lines changed
1 file changed +48
-1
lines changed Original file line number Diff line number Diff line change 1
- # ctf-script
1
+ # CTF Script
2
+
3
+ ## Usage
4
+
5
+ Setup a ` CTF_ROOT_DIR ` environment variable to make the script execute in the right folder or execute the script from that folder.
6
+
7
+ ## Installation
8
+
9
+ Install with [ uv] ( https://docs.astral.sh/uv/guides/tools/ ) :
10
+
11
+ ``` bash
12
+ uv tool install git+https://github.com/nsec/ctf-script.git
13
+ ```
14
+
15
+ Install with pipx:
16
+
17
+ ``` bash
18
+ pipx install git+https://github.com/nsec/ctf-script.git
19
+ ```
20
+
21
+ ### Add Bash/Zsh autocompletion to .bashrc
22
+
23
+ ``` bash
24
+ echo ' eval "$(register-python-argcomplete ctf)"' >> ~ /.bashrc && source ~ /.bashrc # If using bash
25
+ echo ' eval "$(register-python-argcomplete ctf)"' >> ~ /.zshrc && source ~ /.zshrc # If using zsh
26
+ ```
27
+
28
+ ## Development
29
+
30
+ Install with [ uv] ( https://docs.astral.sh/uv/guides/tools/ ) virtual environment:
31
+
32
+ ``` bash
33
+ git clone https://github.com/nsec/ctf-script.git
34
+ cd ctf-script
35
+ uv venv venv
36
+ source venv/bin/activate
37
+ uv pip install -e .
38
+ ```
39
+
40
+ Install with virtual environment and pip:
41
+
42
+ ``` bash
43
+ git clone https://github.com/nsec/ctf-script.git
44
+ cd ctf-script
45
+ python3 -m venv venv
46
+ source venv/bin/activate
47
+ pip install -e .
48
+ ```
You can’t perform that action at this time.
0 commit comments