diff options
author | HarmJ0y <will@harmj0y.net> | 2016-07-15 14:14:21 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-15 14:14:21 -0700 |
commit | 8d46d02099e83e41528e60e0ce729b362e3344bc (patch) | |
tree | 9b54383c6884cd084607c8dd03ce13242dd9ea7c /Privesc | |
parent | e6391254d137accbfe222cb3e4e9bdcc5571f129 (diff) | |
parent | 9596f682744cf5c8bdcb67b6f2a18f5be94073e9 (diff) | |
download | PowerSploit-8d46d02099e83e41528e60e0ce729b362e3344bc.tar.gz PowerSploit-8d46d02099e83e41528e60e0ce729b362e3344bc.zip |
Merge pull request #161 from joncave/batnewlines
PowerUp: Remove badly encoded new lines from .bat output
Diffstat (limited to 'Privesc')
-rw-r--r-- | Privesc/PowerUp.ps1 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Privesc/PowerUp.ps1 b/Privesc/PowerUp.ps1 index 7b6d3d2..977efda 100644 --- a/Privesc/PowerUp.ps1 +++ b/Privesc/PowerUp.ps1 @@ -2668,8 +2668,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" |