You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+54-52Lines changed: 54 additions & 52 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@ This tool is an improved and open version of windows builtin *runas.exe* that so
11
11
* Uses more reliable create process functions like ``CreateProcessAsUser()`` and ``CreateProcessWithTokenW()`` if the calling process holds the required privileges (automatic detection)
12
12
* Allows to specify the logon type, e.g. 8-NetworkCleartext logon (no *UAC* limitations)
13
13
* Allows to bypass UAC when an administrator password is known (flag --bypass-uac)
14
+
* Allows to create a process with the main thread impersonating the requested user (flag --remote-impersonation)
14
15
* Allows redirecting *stdin*, *stdout* and *stderr* to a remote host
15
16
* It's Open Source :)
16
17
@@ -34,26 +35,26 @@ Based on the process caller token permissions, it will use one of the create pro
Otherwise, you can try the flag **--bypass-uac** for an attempt in bypassing the token filtered limitation.
119
+
Otherwise, you can try the flag **--bypass-uac** for an attempt in bypassing the token filtering limitation.
122
120
123
-
By default, the calling process (*RunasCs*) will wait until the end of the execution of the spawned process and will use
124
-
``cmd.exe`` to manage *stdout* and *stderr*. If you need to spawn a background or async process, i.e. spawning a reverse shell,
125
-
you need to set the parameter ``-t timeout`` to ``0``. In this case the process will be spawned without using ``cmd.exe``
126
-
and *RunasCs* won't wait for the end of the execution.
121
+
**NetworkCleartext (8)** logon type is the one with the widest permissions as it doesn't get filtered by UAC in local tokens and still allows
122
+
authentications over the Network as it stores credentials in the authentication package. If you holds enough privileges, try to always specify this logon type through the flag --logon-type 8.
123
+
124
+
By default, the calling process (*RunasCs*) will wait until the end of the execution of the spawned process.
125
+
If you need to spawn a background or async process, i.e. spawning a reverse shell, you need to set the parameter ``-t timeout`` to ``0``. In this case *RunasCs* won't wait for the end of the newly spawned process execution.
*[Potatoes and tokens](https://decoder.cloud/2018/01/13/potato-and-tokens/)
132
+
*[Starting an Interactive Client Process in C++](https://docs.microsoft.com/en-us/previous-versions/aa379608(v=vs.85))
133
+
*[Creating a Child Process with Redirected Input and Output](https://learn.microsoft.com/en-us/windows/win32/procthread/creating-a-child-process-with-redirected-input-and-output)
*[What is up with "The application failed to initialize properly (0xc0000142)" error?](https://blogs.msdn.microsoft.com/winsdk/2015/06/03/what-is-up-with-the-application-failed-to-initialize-properly-0xc0000142-error/)
136
+
*[Getting an Interactive Service Account Shell](https://www.tiraniddo.dev/2020/02/getting-interactive-service-account.html)
137
+
*[Reading Your Way Around UAC (Part 1)](https://www.tiraniddo.dev/2017/05/reading-your-way-around-uac-part-1.html)
138
+
*[Reading Your Way Around UAC (Part 2)](https://www.tiraniddo.dev/2017/05/reading-your-way-around-uac-part-2.html)
139
+
*[Reading Your Way Around UAC (Part 3)](https://www.tiraniddo.dev/2017/05/reading-your-way-around-uac-part-3.html)
140
+
*[Vanara - A set of .NET libraries for Windows implementing PInvoke calls to many native Windows APIs with supporting wrappers](https://github.com/dahall/Vanara)
0 commit comments