Exploiting a GOT overwrite
Source
#include <stdio.h>
void vuln() {
char buffer[300];
while(1) {
fgets(buffer, sizeof(buffer), stdin);
printf(buffer);
puts("");
}
}
int main() {
vuln();
return 0;
}Exploitation
Final Exploit
64-bit
ASLR Enabled
Last updated
Was this helpful?