Created
May 26, 2020 14:32
-
-
Save 0xPwny/11637c43ebf8911318dda259ac3c4b46 to your computer and use it in GitHub Desktop.
Bypass - ptrace (reverse eng)
This file contains hidden or 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
1: create and compile this code | |
long ptrace(int request, int pid, void *addr, void *data) { | |
return 0; | |
} | |
#gcc -shared ptrace.c -o ptrace.so | |
2: set this env variable in both shell and gdb : | |
export LD_PRELOAD=./ptrace.so | |
gdb: set environment LD_PRELOAD=./ptrace.so | |
GOOD LUCK |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment