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
|
||||||
@@ -51,3 +51,6 @@ becoming a contributor, check out these resources:
|
|||||||
for more information about contributing directly to this repository.
|
for more information about contributing directly to this repository.
|
||||||
- Check the [license](LICENSE.txt) for information regarding the distribution
|
- Check the [license](LICENSE.txt) for information regarding the distribution
|
||||||
and modification of Atomic Red Team.
|
and modification of Atomic Red Team.
|
||||||
|
- Contribute to linux atomics quickly from Github Codespaces. For more details, click [here](https://github.com/redcanaryco/atomic-red-team/wiki/Github-Codespaces)
|
||||||
|
|
||||||
|
[](https://codespaces.new/redcanaryco/atomic-red-team)
|
||||||
|
|||||||
Reference in New Issue
Block a user