November 2017
Intermediate to advanced
226 pages
5h 59m
English
Follow the steps to generate an exploit code for buffer overflow attacks in Linux environment:
#include <stdio.h>
void secretFunction()
{
printf("Congratulations!\n");
printf("You have entered in the secret function!\n");
}
void echo()
{
char buffer[20];
printf("Enter some text:\n");
scanf("%s", buffer);
printf("You entered: %s\n", buffer);
}
int main()
{
echo();
return 0;
}
gcc bof.c -w -g -Wno-format -Wno-format-security -fno-stack-protector -z norelro -z execstack -o bof
./bof
objdump -d bof
From that we can get the memory ...
Read now
Unlock full access