From 901b1d28958bd83c6303241289043e3cabcdb85f Mon Sep 17 00:00:00 2001 From: Hare Sudhan Date: Thu, 28 Dec 2023 08:29:57 -0500 Subject: [PATCH] Fixing BOM --- Invoke-AtomicRedTeam.psd1 | 2 +- Invoke-AtomicRedTeam.psm1 | 2 +- PSScriptAnalyzerSettings.psd1 | 2 +- Private/AtomicClassSchema.ps1 | 2 +- Private/Get-PrereqExecutor.ps1 | 4 ++-- Private/Get-TargetInfo.ps1 | 4 ++-- Private/Invoke-ExecuteCommand.ps1 | 2 +- Private/Invoke-Process.ps1 | 2 +- Private/Show-Details.ps1 | 4 ++-- Private/Write-KeyValue.ps1 | 2 +- Private/Write-PrereqResults.ps1 | 2 +- Public/Attire-ExecutionLogger.psm1 | 2 +- Public/Default-ExecutionLogger.psm1 | 4 ++-- Public/Get-AtomicTechnique.ps1 | 2 +- Public/Get-PreferredIPAddress.ps1 | 2 +- Public/Invoke-AtomicRunner.ps1 | 4 ++-- Public/Invoke-AtomicTest.ps1 | 4 ++-- Public/Invoke-FetchFromZip.ps1 | 2 +- Public/Invoke-KickoffAtomicRunner.ps1 | 4 ++-- Public/Invoke-RunnerScheduleMethods.ps1 | 4 ++-- Public/Invoke-SetupAtomicRunner.ps1 | 2 +- Public/Invoke-WebRequestVerifyHash.ps1 | 2 +- Public/New-Atomic.ps1 | 2 +- Public/Start-AtomicGUI.ps1 | 4 ++-- Public/Syslog-ExecutionLogger.psm1 | 2 +- Public/WinEvent-ExecutionLogger.psm1 | 2 +- Public/config.ps1 | 4 ++-- docker/setup.ps1 | 2 +- sandbox/setupsandbox.ps1 | 4 ++-- 29 files changed, 40 insertions(+), 40 deletions(-) diff --git a/Invoke-AtomicRedTeam.psd1 b/Invoke-AtomicRedTeam.psd1 index 9af0f28..87b5067 100644 --- a/Invoke-AtomicRedTeam.psd1 +++ b/Invoke-AtomicRedTeam.psd1 @@ -1,4 +1,4 @@ -@{ +@{ # Script module or binary module file associated with this manifest. RootModule = 'Invoke-AtomicRedTeam.psm1' diff --git a/Invoke-AtomicRedTeam.psm1 b/Invoke-AtomicRedTeam.psm1 index 9ba5c34..546874f 100644 --- a/Invoke-AtomicRedTeam.psm1 +++ b/Invoke-AtomicRedTeam.psm1 @@ -20,4 +20,4 @@ Foreach ($import in @($Public + $Private)) { Catch { Write-Error -Message "Failed to import function $($import.fullname): $_" } -} \ No newline at end of file +} diff --git a/PSScriptAnalyzerSettings.psd1 b/PSScriptAnalyzerSettings.psd1 index 0280d7e..089d453 100644 --- a/PSScriptAnalyzerSettings.psd1 +++ b/PSScriptAnalyzerSettings.psd1 @@ -2,4 +2,4 @@ @{ ExcludeRules=@('PSUseSingularNouns', 'PSAvoidUsingWriteHost') -} \ No newline at end of file +} diff --git a/Private/AtomicClassSchema.ps1 b/Private/AtomicClassSchema.ps1 index 543ef56..f106883 100644 --- a/Private/AtomicClassSchema.ps1 +++ b/Private/AtomicClassSchema.ps1 @@ -52,4 +52,4 @@ class AtomicTechnique { [String[]] $attack_technique [String] $display_name [AtomicTest[]] $atomic_tests -} \ No newline at end of file +} diff --git a/Private/Get-PrereqExecutor.ps1 b/Private/Get-PrereqExecutor.ps1 index 1f5c119..225947c 100644 --- a/Private/Get-PrereqExecutor.ps1 +++ b/Private/Get-PrereqExecutor.ps1 @@ -1,5 +1,5 @@ -function Get-PrereqExecutor ($test) { +function Get-PrereqExecutor ($test) { if ($nul -eq $test.dependency_executor_name) { $executor = $test.executor.name } else { $executor = $test.dependency_executor_name } $executor -} \ No newline at end of file +} diff --git a/Private/Get-TargetInfo.ps1 b/Private/Get-TargetInfo.ps1 index e07d545..57df27d 100644 --- a/Private/Get-TargetInfo.ps1 +++ b/Private/Get-TargetInfo.ps1 @@ -1,4 +1,4 @@ -function Get-TargetInfo($Session) { +function Get-TargetInfo($Session) { $tmpDir = "$env:TEMP\" $isElevated = $false $targetHostname = hostname @@ -40,4 +40,4 @@ } $targetPlatform, $isElevated, $tmpDir, $targetHostname, $targetUser -} \ No newline at end of file +} diff --git a/Private/Invoke-ExecuteCommand.ps1 b/Private/Invoke-ExecuteCommand.ps1 index 0d93f36..13686a6 100644 --- a/Private/Invoke-ExecuteCommand.ps1 +++ b/Private/Invoke-ExecuteCommand.ps1 @@ -1,4 +1,4 @@ -function Invoke-ExecuteCommand ($finalCommand, $executor, $executionPlatform, $TimeoutSeconds, $session = $null, $interactive) { +function Invoke-ExecuteCommand ($finalCommand, $executor, $executionPlatform, $TimeoutSeconds, $session = $null, $interactive) { $null = @( if ($null -eq $finalCommand) { return 0 } $finalCommand = $finalCommand.trim() diff --git a/Private/Invoke-Process.ps1 b/Private/Invoke-Process.ps1 index 7d19a3d..5940204 100644 --- a/Private/Invoke-Process.ps1 +++ b/Private/Invoke-Process.ps1 @@ -1,4 +1,4 @@ -# The Invoke-Process function is loosely based on code from https://github.com/guitarrapc/PowerShellUtil/blob/master/Invoke-Process/Invoke-Process.ps1 +# The Invoke-Process function is loosely based on code from https://github.com/guitarrapc/PowerShellUtil/blob/master/Invoke-Process/Invoke-Process.ps1 function Invoke-Process { [OutputType([PSCustomObject])] [CmdletBinding()] diff --git a/Private/Show-Details.ps1 b/Private/Show-Details.ps1 index de22bb7..f239169 100644 --- a/Private/Show-Details.ps1 +++ b/Private/Show-Details.ps1 @@ -1,4 +1,4 @@ -function Invoke-CleanupDescription() { +function Invoke-CleanupDescription() { $ret1 = $test.description.ToString().trim() -replace '(? $PROFILE \ No newline at end of file +"@ > $PROFILE diff --git a/sandbox/setupsandbox.ps1 b/sandbox/setupsandbox.ps1 index 758ba0e..cdca9a0 100644 --- a/sandbox/setupsandbox.ps1 +++ b/sandbox/setupsandbox.ps1 @@ -1,4 +1,4 @@ -Set-ExecutionPolicy Bypass -Scope Process -Force; +Set-ExecutionPolicy Bypass -Scope Process -Force; Write-Host "Installing NuGet" Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force Write-Host "Installing Atomic Red Team" @@ -15,4 +15,4 @@ Import-Module "$ARTPath/invoke-atomicredteam/Invoke-AtomicRedTeam.psd1" -Force; . $PROFILE -Set-Location C:\AtomicRedTeam \ No newline at end of file +Set-Location C:\AtomicRedTeam