diff --git a/man/sploitctl.1 b/man/sploitctl.1 index 7475423..005150b 100644 --- a/man/sploitctl.1 +++ b/man/sploitctl.1 @@ -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 @@ -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. \ No newline at end of file +updating. diff --git a/sploitctl.py b/sploitctl.py index 9b44267..9fc67ac 100755 --- a/sploitctl.py +++ b/sploitctl.py @@ -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