Skip to content

Instantly share code, notes, and snippets.

@0xPwny
Created May 26, 2020 14:32
Show Gist options
  • Save 0xPwny/11637c43ebf8911318dda259ac3c4b46 to your computer and use it in GitHub Desktop.
Save 0xPwny/11637c43ebf8911318dda259ac3c4b46 to your computer and use it in GitHub Desktop.
Bypass - ptrace (reverse eng)
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