CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
Path: blob/master/documentation/modules/exploit/windows/local/bypassuac_dotnet_profiler.md
Views: 1904
Introduction
Microsoft Windows allows for the automatic loading of a profiling COM object during the launch of a CLR process based on certain environment variables ostensibly to monitor execution. In this case, we abuse the profiler by pointing to a payload DLL that will be launched as the profiling thread. This thread will run at the permission level of the calling process, so an auto-elevating process will launch the DLL with elevated permissions. In this case, we use gpedit.msc as the auto-elevated CLR process, but others would work, too.
Usage
Create a session on the target system under the context of a local administrative user.
Begin interacting with the module:
use exploit/windows/local/bypassuac_dotnet_profiler
.Set the
PAYLOAD
and configure it correctly.If an existing handler is configured to receive the elevated session, then the module's handler should be disabled:
set DisablePayloadHandler true
.Make sure that the
SESSION
value is set to the existing session identifier.Invoke the module:
run
.