Stack Canaries
The Buffer Overflow defence
Bypassing Canaries
Leaking it
Source
#include <stdio.h>
void vuln() {
char buffer[64];
puts("Leak me");
gets(buffer);
printf(buffer);
puts("");
puts("Overflow me");
gets(buffer);
}
int main() {
vuln();
}
void win() {
puts("You won!");
}32-bit
64-bit
Bruteforcing the Canary
Last updated
Was this helpful?