Skip to content

Commit

Permalink
Merge pull request #417 from compass-dexter/zaproxy
Browse files Browse the repository at this point in the history
feat: add zaproxy package
  • Loading branch information
ShutdownRepo authored Feb 27, 2025
2 parents 93fe9bb + 99d4b8b commit a51ffa0
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions sources/assets/shells/aliases.d/zaproxy
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alias zaproxy="zap"
3 changes: 3 additions & 0 deletions sources/assets/shells/history.d/zaproxy
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
zap -cmd -addonupdate
zap -host "0.0.0.0" -port "8080"
zap -host "127.0.0.1" -port "8080"
17 changes: 17 additions & 0 deletions sources/install/package_web.sh
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,22 @@ function install_postman() {
add-to-list "postman,https://www.postman.com/,API platform for testing APIs"
}

function install_zap() {
colorecho "Installing ZAP"
local URL
URL=$(curl --location --silent "https://api.github.com/repos/zaproxy/zaproxy/releases/latest" | grep 'browser_download_url.*ZAP.*tar.gz"' | grep -o 'https://[^"]*')
curl --location -o /tmp/ZAP.tar.gz "$URL"
tar -xf /tmp/ZAP.tar.gz --directory /tmp
rm /tmp/ZAP.tar.gz
mv /tmp/ZAP* /opt/tools/zaproxy
ln -s /opt/tools/zaproxy/zap.sh /opt/tools/bin/zap
zap -cmd -addonupdate
add-aliases zaproxy
add-history zaproxy
add-test-command "zap -suppinfo"
add-to-list "Zed Attack Proxy (ZAP),https://www.zaproxy.org/,Web application security testing tool."
}

function install_token_exploiter() {
# CODE-CHECK-WHITELIST=add-aliases,add-history
colorecho "Installing Token Exploiter"
Expand Down Expand Up @@ -982,6 +998,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_zap # Zed Attack Proxy
install_token_exploiter # Github personal token Analyzer
end_time=$(date +%s)
local elapsed_time=$((end_time - start_time))
Expand Down

0 comments on commit a51ffa0

Please sign in to comment.