Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VM driver service checks #100

Merged
merged 5 commits into from
Jan 26, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Actually return when DLL / API isn't found properly in timing check
Forgot to put returns in there, whoops.
  • Loading branch information
gsuberland committed Jan 24, 2018
commit 2835f8ca59e5e9aafda03a33d92293a77e354285
2 changes: 2 additions & 0 deletions al-khaser/timing-attacks/timing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ VOID timing_NtDelayexecution(UINT delayInMilliSeconds)
// is essentially 0 however since
// ntdll.dll is a vital system resource
printf("Failed to open a handle to NTDLL... this is suspicious!\n");
return;
}

NtDelayExecution = (pNtDelayExecution)GetProcAddress(hNtdll, "NtDelayExecution");
Expand All @@ -34,6 +35,7 @@ VOID timing_NtDelayexecution(UINT delayInMilliSeconds)
// Handle however it fits your needs but as before,
// if this is missing there are some SERIOUS issues with the OS
printf("NTDLL does not have an NtDelayExecution entry point... this is suspicious!\n");
return;
}

// Time to finally make the call
Expand Down