Cache Me Outside

This commit is contained in:
Maxime Vorwerk
2024-06-21 15:54:48 +02:00
parent e441e07726
commit bab4006b61
25 changed files with 109 additions and 0 deletions

31
cache_me_outside/sol.py Executable file
View File

@@ -0,0 +1,31 @@
#!/usr/bin/env python3
from pwn import *
exe = ELF("./heapedit_patched")
libc = ELF("./libc.so.6")
ld = ELF("./ld-2.27.so")
context.binary = exe
def conn():
if args.LOCAL:
r = process([exe.path])
if args.DEBUG:
gdb.attach(r)
else:
r = remote("addr", 1337)
return r
def main():
r = conn()
r.recvuntil(b"Address: ")
r.interactive()
if __name__ == "__main__":
main()