AggressorScripts
AggressorScripts copied to clipboard
ServiceEXEPersist.cna sc CREATE command Errors out on older windows distributions
First, thanks for these scripts. Anyone who puts their good works up front like this is a real hero, and there are many out there. As payback, I have been testing some of these scripts over various OS's. Here is one I found to be an issue with a suggested fix:
File: ServiceEXEPersist.cna lines 16-19. the "sc" commands need to be modified to use "sc.exe". During testing of multiple OS's, especially older windows like Windows 7/8/2008, the binpath= argument will error out when inserting persistence. By moving the command call to sc.exe, the entire command will properly process the new sc create command - now I am not sure why, but it just does...