Skip to content

Commit

Permalink
Trap flag injection fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Air14 committed Oct 2, 2021
1 parent 9f10b3c commit 9d05dc2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions HyperHideDrv/Hider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ namespace Hider
return Status;
}

KeAcquireGuardedMutex(&HiderMutex); (&HiderMutex);
KeAcquireGuardedMutex(&HiderMutex);
PLIST_ENTRY Current = HiddenProcessesHead.Flink;
while (Current != &HiddenProcessesHead)
{
Expand Down Expand Up @@ -336,7 +336,7 @@ namespace Hider
HiddenProcess->DebuggedProcess = DebuggedProcess;
HiddenProcess->DebuggerProcess = DebuggerProcess;

KeAcquireGuardedMutex(&HiderMutex); (&HiderMutex);
KeAcquireGuardedMutex(&HiderMutex);
InsertTailList(&HiddenProcessesHead, &HiddenProcess->HiddenProcessesList);
InitializeListHead(&HiddenProcess->HiddenThreads.HiddenThreadList);
KeReleaseGuardedMutex(&HiderMutex);
Expand All @@ -352,7 +352,7 @@ namespace Hider
return FALSE;
}

KeAcquireGuardedMutex(&HiderMutex); (&HiderMutex);
KeAcquireGuardedMutex(&HiderMutex);

PLIST_ENTRY Current = HiddenProcessesHead.Flink;
while (Current != &HiddenProcessesHead)
Expand Down
2 changes: 1 addition & 1 deletion HyperHideDrv/KuserSharedData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ VOID UpdateDelta(PEPROCESS DebuggedProcess)
HiddenProcess->Kusd.DeltaTimeUpdateLock += KernelKuserSharedData->TimeUpdateLock - HiddenProcess->Kusd.BeginTimeUpdateLock;
HiddenProcess->Kusd.DeltaBaselineSystemQpc += KernelKuserSharedData->BaselineSystemTimeQpc - HiddenProcess->Kusd.BeginBaselineSystemQpc;

RtlZeroMemory(&HiddenProcess->Kusd.BeginInterruptTime, sizeof(ULONG64) * 6);
RtlZeroMemory(&HiddenProcess->Kusd.BeginInterruptTime, sizeof(ULONG64) * 5 + 4); /// oddd
break;
}
}
Expand Down
2 changes: 1 addition & 1 deletion airhv

0 comments on commit 9d05dc2

Please sign in to comment.