added all ctfs
This commit is contained in:
18
ir0nstone/ret2win/vuln.c
Normal file
18
ir0nstone/ret2win/vuln.c
Normal file
@@ -0,0 +1,18 @@
|
||||
// gcc source.c -o vuln -no-pie -fno-stack-protector -z execstack -m32
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
void unsafe() {
|
||||
char buffer[40];
|
||||
|
||||
puts("Overflow me");
|
||||
gets(buffer);
|
||||
}
|
||||
|
||||
void main() {
|
||||
unsafe();
|
||||
}
|
||||
|
||||
void flag() {
|
||||
puts("Exploited!!!!!");
|
||||
}
|
||||
Reference in New Issue
Block a user