> For the complete documentation index, see [llms.txt](https://jarrettgxz-sec.gitbook.io/penetration-testing-ethical-hacking-concepts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jarrettgxz-sec.gitbook.io/penetration-testing-ethical-hacking-concepts/privilege-escalation/windows/vulnerabilities-exploit/service-misconfigurations.md).

# Service misconfigurations

Windows services are managed by the **Service Control Manager** (***SCM***). The ***SCM*** is a process that is in charge of the management of the state of services, such as the current status, and any configurations of it.&#x20;

Each service that is present on a Windows machine will have an associated executable which will be ran by the ***SCM*** whenever a particular service is started. The user account which the service will run as will also be specified.

**View the configuration of a particular service with the `sc qc` command**:

```powershell
C:\> sc qc [service_name]
[SC] QueryServiceConfig SUCCESS

SERVICE_NAME: [service_name]
        TYPE               : ...
        START_TYPE         : 2   AUTO_START
        ERROR_CONTROL      : 1   NORMAL
        BINARY_PATH_NAME   : [exec_path] [flags/options]
        LOAD_ORDER_GROUP   :
        TAG                : 0
        DISPLAY_NAME       : ...
        DEPENDENCIES       :
        SERVICE_START_NAME : [account]
```

The important fields to take note of are `BINARY_PATH_NAME` and `SERVICE_START_NAME`.&#x20;

a) `BINARY_PATH_NAME`: The associated executable

b) `SERVICE_START_NAME`:  The account used to run the service


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://jarrettgxz-sec.gitbook.io/penetration-testing-ethical-hacking-concepts/privilege-escalation/windows/vulnerabilities-exploit/service-misconfigurations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
