-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into atomic-runner-service
- Loading branch information
Showing
12 changed files
with
609 additions
and
588 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
name: Check installation | ||
on: pull_request | ||
|
||
jobs: | ||
install-invoke: | ||
name: Install Invoke-Atomic | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
name: Lint | ||
on: pull_request | ||
|
||
jobs: | ||
install-invoke: | ||
name: Install Invoke-Atomic | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: check-yaml | ||
- id: fix-byte-order-marker | ||
- repo: https://github.com/google/yamlfmt | ||
rev: "v0.11.0" | ||
hooks: | ||
- id: yamlfmt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,4 +96,4 @@ | |
} # End of PSData hashtable | ||
|
||
} # End of PrivateData hashtable | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,55 @@ | ||
class AtomicDependency { | ||
[String] $description | ||
[String] $prereq_command | ||
[String] $get_prereq_command | ||
} | ||
|
||
class AtomicInputArgument { | ||
[String] $description | ||
[String] $type | ||
[String] $default | ||
} | ||
|
||
class AtomicExecutorBase { | ||
[String] $name | ||
[Bool] $elevation_required | ||
|
||
# Implemented to facilitate improved PS object display | ||
[String] ToString() { | ||
return $this.Name | ||
} | ||
} | ||
|
||
class AtomicExecutorDefault : AtomicExecutorBase { | ||
[String] $command | ||
[String] $cleanup_command | ||
} | ||
|
||
class AtomicExecutorManual : AtomicExecutorBase { | ||
[String] $steps | ||
[String] $cleanup_command | ||
} | ||
|
||
class AtomicTest { | ||
[String] $name | ||
[String] $auto_generated_guid | ||
[String] $description | ||
[String[]] $supported_platforms | ||
# I wish this didn't have to be a hashtable but I don't | ||
# want to change the schema and introduce a breaking change. | ||
[Hashtable] $input_arguments | ||
[String] $dependency_executor_name | ||
[AtomicDependency[]] $dependencies | ||
[AtomicExecutorBase] $executor | ||
|
||
# Implemented to facilitate improved PS object display | ||
[String] ToString() { | ||
return $this.name | ||
} | ||
} | ||
|
||
class AtomicTechnique { | ||
[String[]] $attack_technique | ||
[String] $display_name | ||
[AtomicTest[]] $atomic_tests | ||
} | ||
class AtomicDependency { | ||
[String] $description | ||
[String] $prereq_command | ||
[String] $get_prereq_command | ||
} | ||
|
||
class AtomicInputArgument { | ||
[String] $description | ||
[String] $type | ||
[String] $default | ||
} | ||
|
||
class AtomicExecutorBase { | ||
[String] $name | ||
[Bool] $elevation_required | ||
|
||
# Implemented to facilitate improved PS object display | ||
[String] ToString() { | ||
return $this.Name | ||
} | ||
} | ||
|
||
class AtomicExecutorDefault : AtomicExecutorBase { | ||
[String] $command | ||
[String] $cleanup_command | ||
} | ||
|
||
class AtomicExecutorManual : AtomicExecutorBase { | ||
[String] $steps | ||
[String] $cleanup_command | ||
} | ||
|
||
class AtomicTest { | ||
[String] $name | ||
[String] $auto_generated_guid | ||
[String] $description | ||
[String[]] $supported_platforms | ||
# I wish this didn't have to be a hashtable but I don't | ||
# want to change the schema and introduce a breaking change. | ||
[Hashtable] $input_arguments | ||
[String] $dependency_executor_name | ||
[AtomicDependency[]] $dependencies | ||
[AtomicExecutorBase] $executor | ||
|
||
# Implemented to facilitate improved PS object display | ||
[String] ToString() { | ||
return $this.name | ||
} | ||
} | ||
|
||
class AtomicTechnique { | ||
[String[]] $attack_technique | ||
[String] $display_name | ||
[AtomicTest[]] $atomic_tests | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,3 @@ function Get-PreferredIPAddress($isWindows) { | |
return '' | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -250,4 +250,4 @@ function Invoke-AtomicRunner { | |
Rename-ThisComputer $tr $artConfig.basehostname | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,4 +68,4 @@ function LogRunnerMsg ($message) { | |
finally { | ||
$mutex.ReleaseMutex() | ||
} | ||
} | ||
} |
Oops, something went wrong.