Skip to content

Commit

Permalink
Merge pull request #14 from baj0k/master
Browse files Browse the repository at this point in the history
Add SPLOIT_DIR environment variable handling
  • Loading branch information
noptrix authored Oct 10, 2023
2 parents c957501 + ebc8c57 commit 8126246
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion man/sploitctl.1
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ Script to fetch, install, update and search exploit archives from well-known sit
\fB\-V\fR \- print version of sploitctl and exit
.HP
\fB\-H\fR \- print help and exit
.SH ENVIRONMENT
.TP
.I SPLOIT_DIR
Overrides the default exploit base directory.
.SH EXAMPLES
.PP
.HP
Expand Down Expand Up @@ -88,4 +92,4 @@ $ sploitctl \fB\-u\fR 0 \fB\-P\fR "http://127.0.0.1:9060" \fB\-A\fR "noleak" \fB
sploitctl update's id are relative to the installed archives
and are not static, so by installing an exploit archive it will
show up in the update section so always do a -u ? before
updating.
updating.
2 changes: 1 addition & 1 deletion sploitctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
VERSION: str = "3.0.3" # sploitctl.py version
PROJECT: str = "sploitctl"

exploit_path: str = "/usr/share/exploits" # default exploit base directory
exploit_path: str = os.getenv('SPLOIT_DIR') if os.getenv('SPLOIT_DIR') else "/usr/share/exploits" # default exploit base directory
exploit_repo: dict = {}

decompress_archive: bool = False
Expand Down

0 comments on commit 8126246

Please sign in to comment.