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 4 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 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"
mkdir /opt/tools/ZAP
# using $(which curl) to avoid having additional logs put in curl output being executed because of catch_and_retry
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 /opt/tools/
noahfraiture marked this conversation as resolved.
Show resolved Hide resolved
mv /opt/tools/ZAP_${zap_version} /opt/tools/ZAP/
noahfraiture marked this conversation as resolved.
Show resolved Hide resolved
add-aliases zap
add-history zap
add-test-command "which zap"
QU35T-code marked this conversation as resolved.
Show resolved Hide resolved
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