File tree Expand file tree Collapse file tree 3 files changed +9
-12
lines changed
Expand file tree Collapse file tree 3 files changed +9
-12
lines changed Original file line number Diff line number Diff line change 1+ alias dirsearch.py='/opt/tools/dirsearch/venv/bin/python3 /opt/tools/dirsearch/dirsearch.py'
Original file line number Diff line number Diff line change 1- dirsearch -r -w /usr/share/wordlists/seclists/Discovery/Web-Content/quickhits.txt -u "http://$TARGET/"
1+ dirsearch.py -r -w /usr/share/wordlists/seclists/Discovery/Web-Content/quickhits.txt -u "http://$TARGET/"
Original file line number Diff line number Diff line change @@ -124,18 +124,14 @@ function install_ffuf() {
124124}
125125
126126function install_dirsearch() {
127- # CODE-CHECK-WHITELIST=add-aliases
128127 colorecho " Installing dirsearch"
129- # pipx install --system-site-packages git+https://github.com/maurosoria/dirsearch
130- local temp_fix_limit=" 2026-08-10"
131- # https://github.com/maurosoria/dirsearch/issues/1498
132- if check_temp_fix_expiry " $temp_fix_limit " ; then
133- git -C /opt/tools/ clone --depth 1 https://github.com/maurosoria/dirsearch
134- cd /opt/tools/dirsearch || exit
135- git fetch --unshallow
136- git checkout c8192f7b3fd0796134ba294d3d591ad922bbcce9
137- pipx install .
138- fi
128+ git -C /opt/tools/ clone --depth 1 https://github.com/maurosoria/dirsearch
129+ cd /opt/tools/dirsearch || exit
130+ python3 -m venv --system-site-packages ./venv
131+ source ./venv/bin/activate
132+ pip3 install -r requirements.txt
133+ deactivate
134+ add-aliases dirsearch
139135 add-history dirsearch
140136 add-test-command " dirsearch --help"
141137 add-to-list " dirsearch,https://github.com/maurosoria/dirsearch,Tool for searching files and directories on a web site."
You can’t perform that action at this time.
0 commit comments