Github Codespace added (#2644)
* Create devcontainer.json * devcontainers added * devcontainers added * add setup files * Update README.md
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"image": "mcr.microsoft.com/devcontainers/universal:2",
|
||||
"features": {
|
||||
"ghcr.io/devcontainers/features/powershell:1": {},
|
||||
"ghcr.io/natescherer/devcontainers-custom-features/powershell-resources:1": {
|
||||
"resources": "powershell-yaml,invoke-atomicredteam"
|
||||
}
|
||||
},
|
||||
"remoteUser": "root",
|
||||
"onCreateCommand": "pwsh /workspaces/atomic-red-team/.devcontainer/setup.ps1",
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"extensions": [
|
||||
"ms-vscode.powershell"
|
||||
],
|
||||
"settings": {
|
||||
"terminal.integrated.defaultProfile.linux": "pwsh",
|
||||
"terminal.integrated.profiles.linux": {
|
||||
"pwsh": {
|
||||
"path": "/usr/bin/pwsh"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
New-Item $PROFILE -Force
|
||||
Set-Variable -Name "InvokePath" -Value (Get-Item /usr/local/share/powershell/Modules/Invoke-AtomicRedTeam/**/Invoke-AtomicRedTeam.psd1).FullName
|
||||
Write-Output @"
|
||||
Import-Module $InvokePath -Force
|
||||
`$PSDefaultParameterValues`["Invoke-AtomicTest:PathToAtomicsFolder"] = "/workspaces/atomic-red-team/atomics";
|
||||
`$PSDefaultParameterValues`["Invoke-AtomicTest:ExecutionLogPath"]="$HOME/AtomicRedTeam/execution.csv";
|
||||
"@ > $PROFILE
|
||||
Reference in New Issue
Block a user