Skip to content

Commit 332a773

Browse files
committed
fixing dirsearch install
1 parent 9d9d6d2 commit 332a773

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
alias dirsearch.py='/opt/tools/dirsearch/venv/bin/python3 /opt/tools/dirsearch/dirsearch.py'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
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/"

sources/install/package_web.sh

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -124,18 +124,14 @@ function install_ffuf() {
124124
}
125125

126126
function 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."

0 commit comments

Comments
 (0)