From ef88c8132a2fa18e39324e652fd0554499fb8111 Mon Sep 17 00:00:00 2001 From: Edward Delaporte Date: Thu, 23 Jan 2020 16:26:48 -0600 Subject: [PATCH] Changes for OWASP ZAP --- Microsoft.PowerShell_profile.ps1 | 9 +++++++++ bootstrap.ps1 | 5 +++++ 2 files changed, 14 insertions(+) diff --git a/Microsoft.PowerShell_profile.ps1 b/Microsoft.PowerShell_profile.ps1 index fa6496a..aa1d60f 100644 --- a/Microsoft.PowerShell_profile.ps1 +++ b/Microsoft.PowerShell_profile.ps1 @@ -26,3 +26,12 @@ function Start-DockerRStudio() { Write-Host "Jupyter is running at http://localhost:8888/" } +function Start-DockerOWASPZap() { + Param( + [string]$URL + ) + # https://github.com/zaproxy/zaproxy/wiki/Docker + docker run owasp/zap2docker-stable + docker run -i owasp/zap2docker-stable zap-cli quick-scan --self-contained --start-options '-config api.disablekey=true' $URL + Write-Host "https://github.com/zaproxy/zaproxy/wiki/Docker" +} \ No newline at end of file diff --git a/bootstrap.ps1 b/bootstrap.ps1 index 2d1fd1a..5607011 100644 --- a/bootstrap.ps1 +++ b/bootstrap.ps1 @@ -33,4 +33,9 @@ if(-Not(Test-Path -Path $destFile)) { if($false) { choco install consul choco install vault +} + +# OWASP ZAP for web application security scanning +if($false) { + choco install zap } \ No newline at end of file -- 2.47.3