Commit 11645e68 authored by bobloblaw's avatar bobloblaw
Browse files

Updates privilege_escalation_windows.md

Auto commit by GitBook Editor
parent 2a7ad919
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -212,9 +212,9 @@ for /f eol^=^"^ delims^=^" %a in (c:\windows\temp\permissions.txt) do cmd.exe /c

Binaries in system32 are excluded since they are mostly correct, since they are installed by windows.

#### SC.exe
#### sc.exe

```
```cmd
sc query state= all | findstr "SERVICE_NAME:" >> Servicenames.txt

FOR /F %i in (Servicenames.txt) DO echo %i