mirror of
https://github.com/loland/inlineExecute
synced 2026-06-21 13:56:50 +00:00
fixed crash
fixed a strange crash that occurs when using a more comprehensive capture.
logman create trace "DotNetFullTrace" -p "{e13c0d23-ccbc-4e12-931b-d9cc2eee27e4}" 0xFFFFFFFFFFFFFFFF 5 -o "C:\Users\root\Desktop\full_trace.etl" -ets
This commit is contained in:
Binary file not shown.
+1
-1
@@ -121,7 +121,7 @@ namespace EtwBypass {
|
||||
|
||||
static void TurnOffETW(IntPtr DotNETRuntimeHandle_addr, out long DotNETRuntimeHandle_val) {
|
||||
DotNETRuntimeHandle_val = Marshal.ReadInt64(DotNETRuntimeHandle_addr);
|
||||
Marshal.WriteInt64(DotNETRuntimeHandle_addr, 0);
|
||||
Marshal.WriteInt64(DotNETRuntimeHandle_addr, 1);
|
||||
Console.WriteLine("DotNETRuntimeHandle: 0x" + DotNETRuntimeHandle_val.ToString("X"));
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -594,7 +594,7 @@ int* findDotNetRuntimeHandle() {
|
||||
|
||||
void turnOffEtw(int* handleAddr, int* handleVal) {
|
||||
*handleVal = *handleAddr;
|
||||
*handleAddr = 0;
|
||||
*handleAddr = 1;
|
||||
}
|
||||
|
||||
void turnOnEtw(int* handleAddr, int handleVal) {
|
||||
|
||||
Reference in New Issue
Block a user