SharpGPOAbuse
SharpGPOAbuse copied to clipboard
Add XmlEncode in NewImmediateTask function
There is a bug in NewImmediateTask function
If the user set Command and Arguments as shown below, the character > will cause the ScheduledTasks.xml to not be parsed correctly
--Command "cmd.exe" --Arguments "/c echo 1234 > %tmp%\1111.txt"
This PR fixed this bug.