From 5440f776e92452e840a22589a0e15ae822251c8a Mon Sep 17 00:00:00 2001 From: Ranma <54248704+cHJlaXpoZXI@users.noreply.github.com> Date: Fri, 6 Dec 2024 09:52:15 +0000 Subject: [PATCH 1/5] Add Token Exploiter --- sources/install/package_web.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sources/install/package_web.sh b/sources/install/package_web.sh index c8a662f11..0c73d4d9c 100644 --- a/sources/install/package_web.sh +++ b/sources/install/package_web.sh @@ -895,6 +895,15 @@ function install_postman() { add-to-list "postman,https://www.postman.com/,API platform for testing APIs" } +function install_token_exploiter() { + # CODE-CHECK-WHITELIST=add-aliases + colorecho "Installing Token Explorer" + pipx install --system-site-packages git+https://github.com/psyray/token-exploiter + add-history token-exploiter + add-test-command "token-exploiter --help" + add-to-list "token-exploiter,https://github.com/psyray/token-exploiter,Token Exploiter is a tool designed to analyze GitHub Personal Access Tokens." +} + # Package dedicated to applicative and active web pentest tools function package_web() { set_env @@ -974,6 +983,7 @@ function package_web() { install_jsluice # Extract URLs, paths, secrets, and other interesting data from JavaScript source code install_katana # A next-generation crawling and spidering framework install_postman # Postman - API platform for testing APIs + install_token_exploiter # Github personal token Analyzer end_time=$(date +%s) local elapsed_time=$((end_time - start_time)) colorecho "Package web completed in $elapsed_time seconds." From 7cc2e4cb064ab6b66b6fa82e30c2d853c13e78c8 Mon Sep 17 00:00:00 2001 From: Ranma <54248704+cHJlaXpoZXI@users.noreply.github.com> Date: Fri, 6 Dec 2024 09:53:08 +0000 Subject: [PATCH 2/5] Fix typo --- sources/install/package_web.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/install/package_web.sh b/sources/install/package_web.sh index 0c73d4d9c..16512d5a4 100644 --- a/sources/install/package_web.sh +++ b/sources/install/package_web.sh @@ -897,7 +897,7 @@ function install_postman() { function install_token_exploiter() { # CODE-CHECK-WHITELIST=add-aliases - colorecho "Installing Token Explorer" + colorecho "Installing Token Exploiter" pipx install --system-site-packages git+https://github.com/psyray/token-exploiter add-history token-exploiter add-test-command "token-exploiter --help" From 1c5d679290a87f4c3662c721d1250888985064f5 Mon Sep 17 00:00:00 2001 From: Ranma <54248704+cHJlaXpoZXI@users.noreply.github.com> Date: Fri, 6 Dec 2024 09:54:56 +0000 Subject: [PATCH 3/5] Create token-exploiter history file --- sources/assets/shells/history.d/token-exploiter | 1 + 1 file changed, 1 insertion(+) create mode 100644 sources/assets/shells/history.d/token-exploiter diff --git a/sources/assets/shells/history.d/token-exploiter b/sources/assets/shells/history.d/token-exploiter new file mode 100644 index 000000000..a0310b39b --- /dev/null +++ b/sources/assets/shells/history.d/token-exploiter @@ -0,0 +1 @@ +token-exploiter From 08f62721cba3b99eb4ddc471c2da3fed348756a2 Mon Sep 17 00:00:00 2001 From: Charlie Bromberg <40902872+ShutdownRepo@users.noreply.github.com> Date: Thu, 12 Dec 2024 16:48:15 +0100 Subject: [PATCH 4/5] Delete sources/assets/shells/history.d/token-exploiter --- sources/assets/shells/history.d/token-exploiter | 1 - 1 file changed, 1 deletion(-) delete mode 100644 sources/assets/shells/history.d/token-exploiter diff --git a/sources/assets/shells/history.d/token-exploiter b/sources/assets/shells/history.d/token-exploiter deleted file mode 100644 index a0310b39b..000000000 --- a/sources/assets/shells/history.d/token-exploiter +++ /dev/null @@ -1 +0,0 @@ -token-exploiter From e2dd3ee16161cec376c26e0b2c1c145a9f85c4cd Mon Sep 17 00:00:00 2001 From: Charlie Bromberg <40902872+ShutdownRepo@users.noreply.github.com> Date: Thu, 12 Dec 2024 16:48:44 +0100 Subject: [PATCH 5/5] Update package_web.sh --- sources/install/package_web.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sources/install/package_web.sh b/sources/install/package_web.sh index 16512d5a4..0e7602552 100644 --- a/sources/install/package_web.sh +++ b/sources/install/package_web.sh @@ -896,10 +896,9 @@ function install_postman() { } function install_token_exploiter() { - # CODE-CHECK-WHITELIST=add-aliases + # CODE-CHECK-WHITELIST=add-aliases,add-history colorecho "Installing Token Exploiter" pipx install --system-site-packages git+https://github.com/psyray/token-exploiter - add-history token-exploiter add-test-command "token-exploiter --help" add-to-list "token-exploiter,https://github.com/psyray/token-exploiter,Token Exploiter is a tool designed to analyze GitHub Personal Access Tokens." }