Verbose logging fixes

This commit is contained in:
loland
2025-12-03 14:22:15 +08:00
parent ccd89f8ea7
commit 452d40dc56
2 changed files with 8 additions and 2 deletions
Binary file not shown.
+8 -2
View File
@@ -797,13 +797,19 @@ void go(char *args, int len) {
// restore handleAddr
if (patchEtwHandle) {
turnOnEtwHandle(handleAddr, handleVal);
BeaconPrintf(CALLBACK_OUTPUT, "[+] DotNETRuntimeHandle value restored: %x\n", *handleAddr);
if (verbose) {
BeaconPrintf(CALLBACK_OUTPUT, "[+] DotNETRuntimeHandle value restored: %x\n", *handleAddr);
}
}
// restore enable bits
if (patchEtwEnableBits) {
turnOnEtwEnableBits(enableBitsAddr, enableBitsVal);
BeaconPrintf(CALLBACK_OUTPUT, "[+] DotNETRuntimeEnableBits value restored: %x\n", *enableBitsAddr);
if (verbose) {
BeaconPrintf(CALLBACK_OUTPUT, "[+] DotNETRuntimeEnableBits value restored: %x\n", *enableBitsAddr);
}
}
BeaconPrintf(CALLBACK_OUTPUT, "[+] Done\n");