X-Git-Url: https://apps.delaporte.us/gitweb/dotfiles.git/blobdiff_plain/c94a3c2b1309a90287fd2bebed9b5afce17098ef..eaab0d44b631d594103cc7202d8133696f8da927:/Microsoft.PowerShell_profile.ps1 diff --git a/Microsoft.PowerShell_profile.ps1 b/Microsoft.PowerShell_profile.ps1 index fa6496a..ae467ed 100644 --- a/Microsoft.PowerShell_profile.ps1 +++ b/Microsoft.PowerShell_profile.ps1 @@ -26,3 +26,18 @@ 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" +} + + +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