X-Git-Url: https://apps.delaporte.us/gitweb/dotfiles.git/blobdiff_plain/eaab0d44b631d594103cc7202d8133696f8da927..024b061d9c6c271bbbd5da3ded7403db4ae95b6f:/Microsoft.PowerShell_profile.ps1 diff --git a/Microsoft.PowerShell_profile.ps1 b/Microsoft.PowerShell_profile.ps1 index ae467ed..cea5a71 100644 --- a/Microsoft.PowerShell_profile.ps1 +++ b/Microsoft.PowerShell_profile.ps1 @@ -12,6 +12,8 @@ $ENV:PATH+=";C:\ProgramData\chocolatey\bin" # Package management is nice. $ENV:PATH+=";C:\Program Files\nodejs" # KataKoda wants to add tools via npm $ENV:PATH+=";C:\PENGUIN" # Flag to ensure my profile kicked in. + + function Start-Vault() { consul agent -dev # Run in Dev Mode vault sever -config c:\src\dotfiles\vaultconfig.hcl -address=http://127.0.0.1:8200 # Use local dev Consul as storage @@ -38,6 +40,23 @@ function Start-DockerOWASPZap() { 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" + 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 $_" + } } \ No newline at end of file