This repository was archived by the owner on Jan 21, 2021. It is now read-only.
Commit 9596f68
Jon Cave
PowerUp: Remove badly encoded new lines from .bat output
The current implementation results in a .bat like:
@echo off\n
start /b net user john Password123! /add && timeout /t 5 && net localgroup Administrators john /add\n
start /b "" cmd /c del "%~f0"&exit /b
With literal "\n" strings at the end of the first two lines.
A new line in a PowerShell string should be "`n". However, an extra new
line isn't actually necessary in this case.1 parent 81ac124 commit 9596f68
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2669 | 2669 | | |
2670 | 2670 | | |
2671 | 2671 | | |
2672 | | - | |
2673 | | - | |
| 2672 | + | |
| 2673 | + | |
2674 | 2674 | | |
2675 | 2675 | | |
2676 | 2676 | | |
| |||
0 commit comments