diff options
author | HarmJ0y <will@harmj0y.net> | 2016-01-25 15:19:58 -0800 |
---|---|---|
committer | HarmJ0y <will@harmj0y.net> | 2016-01-25 15:19:58 -0800 |
commit | 1832e324e960262b13e77f46bdd2d4c1df4f3504 (patch) | |
tree | e46ac293aa4590735529f0206e4b2e7a0bc56f4a /Privesc | |
parent | 43c4c69b387310cbc8bf73b9b9fc07559bfc3e1c (diff) | |
parent | 3f1dd3450061eece07a18821fbd7ff4f5b3fb907 (diff) | |
download | PowerSploit-1832e324e960262b13e77f46bdd2d4c1df4f3504.tar.gz PowerSploit-1832e324e960262b13e77f46bdd2d4c1df4f3504.zip |
Merge pull request #111 from sagishahar/dev
Fix 'Install-ServiceBinary' for non-'Modifiable' files
Diffstat (limited to 'Privesc')
-rw-r--r-- | Privesc/PowerUp.ps1 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Privesc/PowerUp.ps1 b/Privesc/PowerUp.ps1 index a8f55e5..3f6be9f 100644 --- a/Privesc/PowerUp.ps1 +++ b/Privesc/PowerUp.ps1 @@ -803,7 +803,7 @@ function Write-ServiceBinary { The service name the EXE will be running under. Required. - .PARAMETER Path + .PARAMETER ServicePath Path to write the binary out to, defaults to the local directory. @@ -929,7 +929,7 @@ function Install-ServiceBinary { <# .SYNOPSIS - Users Write-ServiceBinary to write a C# service that creates a local UserName + Uses Write-ServiceBinary to write a C# service that creates a local UserName and adds it to specified LocalGroup or executes a custom command. Domain users are only added to the specified LocalGroup. @@ -1015,7 +1015,7 @@ function Install-ServiceBinary { Write-Verbose "Backing up '$ServicePath' to '$BackupPath'" try { - Move-Item -Path $ServicePath -Destination $BackupPath -Force + Copy-Item -Path $ServicePath -Destination $BackupPath -Force } catch { Write-Warning "[*] Original path '$ServicePath' for '$ServiceName' does not exist!" |