Skip to content

Commit

Permalink
Merge pull request #404 from QU35T-code/fix/jwt_tool
Browse files Browse the repository at this point in the history
Fix jwt_tool configuration
  • Loading branch information
qu35t-code authored Oct 25, 2024
2 parents 0a746a9 + 302039d commit f08ca23
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions sources/install/package_web.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit f08ca23

Please sign in to comment.