We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e639125 + 9596f68 commit 8d46d02Copy full SHA for 8d46d02
Privesc/PowerUp.ps1
@@ -2668,8 +2668,8 @@ function Write-HijackDll {
2668
# build the launcher .bat
2669
if (Test-Path $TargetBatPath) { Remove-Item -Force $TargetBatPath }
2670
2671
- "@echo off\n" | Out-File -Encoding ASCII -Append $TargetBatPath
2672
- "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
2673
'start /b "" cmd /c del "%~f0"&exit /b' | Out-File -Encoding ASCII -Append $TargetBatPath
2674
2675
Write-Verbose ".bat launcher written to: $TargetBatPath"
0 commit comments