Files
Brandon Arvanaghi a8e41cba84 Restructured folders
2017-08-05 09:40:40 -04:00

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;
}