mirror of
https://github.com/Arvanaghi/CheckPlease
synced 2026-06-08 10:25:16 +00:00
25 lines
447 B
C
25 lines
447 B
C
/*
|
|
Checks if process is currently being debugged, C
|
|
Module written by Brandon Arvanaghi
|
|
Website: arvanaghi.com
|
|
Twitter: @arvanaghi
|
|
*/
|
|
|
|
#include "Windows.h"
|
|
#include "Winternl.h"
|
|
#include "stdio.h"
|
|
|
|
int main(int argc, char **argv[]) {
|
|
|
|
PPEB pPEB = (PPEB)__readfsdword(0x30);
|
|
|
|
if (pPEB->BeingDebugged) {
|
|
printf("A debugger is present, do not proceed.");
|
|
} else {
|
|
printf("No debugger is present. Proceed!");
|
|
}
|
|
|
|
getchar();
|
|
return 0;
|
|
|
|
} |