diff --git a/2025/catthegrey/pwn/dist-infinite_connect_four/infinite_connect_four_patched b/2025/catthegrey/pwn/dist-infinite_connect_four/infinite_connect_four_patched new file mode 100755 index 0000000..6ffe855 Binary files /dev/null and b/2025/catthegrey/pwn/dist-infinite_connect_four/infinite_connect_four_patched differ diff --git a/2025/catthegrey/pwn/dist-infinite_connect_four/solve.py b/2025/catthegrey/pwn/dist-infinite_connect_four/solve.py new file mode 100755 index 0000000..eb28271 --- /dev/null +++ b/2025/catthegrey/pwn/dist-infinite_connect_four/solve.py @@ -0,0 +1,32 @@ +#!/usr/bin/env python3 + +from pwn import * + +exe = ELF("./infinite_connect_four_patched") +libc = ELF("./libc.so.6") +ld = ELF("./ld-linux-x86-64.so.2") + +context.binary = exe + + +def conn(): + if args.LOCAL: + r = process([exe.path]) + if args.GDB: + gdb.attach(r) + else: + r = remote("addr", 1337) + + return r + + +def main(): + r = conn() + + # good luck pwning :) + + r.interactive() + + +if __name__ == "__main__": + main()