| [ Web Proxy ] |
| Viewing: https://raw.githubusercontent.com/Sn0rt/linux-exploit-development-tutorial/master/lab_code/stack.c | [Back] [Original] |
/*
* gcc -fno-stack-protector -m32 -z execstack -o level1 stack.c
*/
#include
#include
#include
void vulnerable_function() {
char buf[128];
read(STDIN_FILENO, buf, 256);
}
int main(int argc, char** argv) {
vulnerable_function();
write(STDOUT_FILENO, "Hello, World\n", 13);
}
| Web Proxy Viewer | New URL | Original Page |