# SCShell

SCShell is a file less lateral movement tool that uses ChangeServiceConfigA to run commands authenticating which via DCERPC instead of SMB. It can be used without creating new services or dropping files on the remote system.

It works by remotely opening the service and modifying the binary path name via the ChangeServiceConfigA API. It is recommended to dechain your commands so your payload will not be killed when the service is stopped.

Example us age of SCShell is

```
PS > SCShell.exe <TARGET> XblAuthManager
"C:\windows\system32\cmd.exe /c calc.exe" . <USER>
<PASSWORD>
```


---

# Agent Instructions: 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://kwcsec.gitbook.io/the-red-team-handbook/techniques/lateral-movement/scshell.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.
