November 2017
Intermediate to advanced
226 pages
5h 59m
English
Here are the steps to create an exploit script for exploiting format string in Linux environment:
#include <stdio.h>
int main(int argc, char **argv){
char buf[1024];
strcpy(buf, argv[1]);
printf(buf);
printf("\n");
}
gcc fmt.c -w -g -Wno-format -Wno-format-security -fno-stack-protector -z norelro -z execstack -o fmt
This will create an executable named fmt. We can use this as our sample application.
Read now
Unlock full access