PowerShellEmpire / PowerTools

PowerTools is a collection of PowerShell projects with a focus on offensive operations.
Other
2.03k stars 817 forks source link

Add service DACL functionality #68

Closed sagishahar-zz closed 8 years ago

sagishahar-zz commented 8 years ago

Added 2 helper functions: Get-ServiceDaclPermission and Test-ServiceDaclPermission. For this pull request, these functions are used in Invoke-ServiceStart, Invoke-ServiceStop, Invoke-ServiceEnable, and Invoke-ServiceDisable in an attempt to ensure that service permissions are checked using the "correct" method. However, the plan is to use these functions for further code cleanup, refactoring, and additional features in the near future.

HarmJ0y commented 8 years ago

Great work, thanks!