20 lines
342 B
Python
20 lines
342 B
Python
from pwn import *
|
|
elf = ELF(os.getcwd() + "/0d2dd2de6fc66a1b0e38dc299e38e0da")
|
|
|
|
gs = '''
|
|
unset env LINES
|
|
unset env COLUMNS
|
|
set follow-fork-mode child
|
|
br *handle_conn+631
|
|
# br *main+420
|
|
continue
|
|
'''
|
|
|
|
def start():
|
|
if args.GDB:
|
|
return gdb.debug([elf.path], gs)
|
|
else:
|
|
return process([elf.path])
|
|
|
|
io = start()
|
|
io.sendline() |