From 302039da03ae39ba96d41cc45fdd51126e52b924 Mon Sep 17 00:00:00 2001 From: QU35T-code Date: Thu, 24 Oct 2024 23:18:29 +0200 Subject: [PATCH] Add jwt_tool configuration --- sources/install/package_web.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sources/install/package_web.sh b/sources/install/package_web.sh index 2e65ce996..8cbc3a6af 100644 --- a/sources/install/package_web.sh +++ b/sources/install/package_web.sh @@ -515,7 +515,16 @@ function install_jwt_tool() { python3 -m venv --system-site-packages ./venv source ./venv/bin/activate pip3 install -r requirements.txt + # Running the tool to create the initial configuration and force it to returns 0 + python3 jwt_tool.py || : deactivate + + # Configuration + sed -i 's/^proxy = 127.0.0.1:8080/#proxy = 127.0.0.1:8080/' /root/.jwt_tool/jwtconf.ini + sed -i 's|^wordlist = jwt-common.txt|wordlist = /opt/tools/jwt_tool/jwt-common.txt|' /root/.jwt_tool/jwtconf.ini + sed -i 's|^commonHeaders = common-headers.txt|commonHeaders = /opt/tools/jwt_tool/common-headers.txt|' /root/.jwt_tool/jwtconf.ini + sed -i 's|^commonPayloads = common-payloads.txt|commonPayloads = /opt/tools/jwt_tool/common-payloads.txt|' /root/.jwt_tool/jwtconf.ini + add-aliases jwt_tool add-history jwt_tool add-test-command "jwt_tool.py --help"