- docker pull webgoat/webgoat-8.0 docker run -p 8080:8080 -t webgoat/webgoat-8.0
- Write-Host "Webgoat running on 8080"
+ docker pull webgoat/webgoat-8.0
+ docker run -p 8080:8080 -t webgoat/webgoat-8.0
+ Write-Host "Vulnerable Webgoat running on 8080"
+}
+
+function Start-DockerJuiceShop() {
+ docker pull bkimminich/juice-shop
+ docker run --rm -p 3000:3000 bkimminich/juice-shop
+ Write-Host "Vulnerable Juice Shop running on 3000"
+}
+
+# Import some home grown PowerShell modules, if they are installed.
+$modPaths = @("C:\src\dotfiles\ToyBox\toybox.psm1")
+$modPaths | ForEach-Object {
+ $_ | Format-Table
+ if(Test-Path -Path $_) {
+ Import-Module $_
+ Write-Host "Loaded $_"
+ }
+}
+
+function Start-DockerPython3Bash {
+ docker run -it python /bin/bash
+}
+
+function Start-DockerPython2Bash {
+ docker run -it python:2-buster /bin/bash
+}
+
+function Stop-Docker {
+ docker stop $(docker ps -a -q)