]> us-delaporte.pagekite.me Git - dotfiles.git/blobdiff - Microsoft.PowerShell_profile.ps1
Changes for OWASP ZAP
[dotfiles.git] / Microsoft.PowerShell_profile.ps1
index fa6496a5b2483b789ed3fed2d25075f744092687..aa1d60f4ae14c8db1a9fa3e7e80d8b15714e9bf7 100644 (file)
@@ -26,3 +26,12 @@ function Start-DockerRStudio() {
   Write-Host "Jupyter is running at http://localhost:8888/"
 }
 
   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