Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add ZAP package #401

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sources/assets/shells/aliases.d/zap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alias zap='bash /opt/tools/ZAP/zap.sh'
1 change: 1 addition & 0 deletions sources/assets/shells/history.d/zap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
zap
14 changes: 14 additions & 0 deletions sources/install/package_web.sh
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,19 @@ function install_postman() {
add-history postman
add-test-command "which postman"
add-to-list "postman,https://www.postman.com/,API platform for testing APIs"

function install_zap() {
colorecho "Installing ZAP"
zap_version=$(curl -s "https://www.zaproxy.org/download/" | grep -E -o "ZAP [0-9]+(\.[0-9]+)+" | head -1 | cut -d' ' -f2)
wget "https://github.com/zaproxy/zaproxy/releases/download/v${zap_version}/ZAP_${zap_version}_Linux.tar.gz" -O /tmp/zap.tar.gz
tar -xf /tmp/zap.tar.gz -C /tmp/
mv /tmp/ZAP_${zap_version} /opt/tools/ZAP
rm -rf /tmp/ZAP_${zap_version}
rm /tmp/zap.tar.gz
add-aliases zap
add-history zap
add-test-command "which zap"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a big fan of that test command to be honest, is there any way to test for the install?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem is that there's no command available through the CLI. Any command start the GUI

add-to-list "Zed Attack Proxy,https://www.zaproxy.org,Web application scanner."
}

# Package dedicated to applicative and active web pentest tools
Expand Down Expand Up @@ -975,6 +988,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 # Web App scanner
end_time=$(date +%s)
local elapsed_time=$((end_time - start_time))
colorecho "Package web completed in $elapsed_time seconds."
Expand Down