]> apps.delaporte.us Git - dotfiles.git/blobdiff - Microsoft.PowerShell_profile.ps1
Added WebGoat
[dotfiles.git] / Microsoft.PowerShell_profile.ps1
index fa6496a5b2483b789ed3fed2d25075f744092687..ae467ed1d7dc67302f055e39adf485ec16b61294 100644 (file)
@@ -26,3 +26,18 @@ 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"
+}
+
+
+function Start-DockerWebGoat() {
+  docker pull webgoat/webgoat-8.0 docker run -p 8080:8080 -t webgoat/webgoat-8.0
+  Write-Host "Webgoat running on 8080"
+}
\ No newline at end of file