cobbr / SharpSploit

SharpSploit is a .NET post-exploitation library written in C#
https://sharpsploit.cobbr.io/api/
BSD 3-Clause "New" or "Revised" License
1.75k stars 307 forks source link

CreateProcessWithToken #35

Closed 001SPARTaN closed 5 years ago

001SPARTaN commented 5 years ago

This adds the Shell.CreateProcessWithToken(string ShellCommand, string Path, IntPtr TokenHandle) function and an associated test. This function can execute a process with a handle to a stolen token using CreateProcessWithTokenW.