Created
October 1, 2017 19:23
-
-
Save marcpalmer/5012f5d14529286cfb30f79976b7b273 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-static void DisableGDB() { | |
- void *handle = dlopen(0, RTLD_GLOBAL | RTLD_NOW); | |
- ptrace_ptr_t ptrace_ptr = dlsym(handle, "ptrace"); | |
- ptrace_ptr(PT_DENY_ATTACH, 0, 0, 0); | |
- dlclose(handle); | |
-} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment