some things
This commit is contained in:
28
DownUnderCTF 2023/beginner/one byte/onebyte.py
Normal file
28
DownUnderCTF 2023/beginner/one byte/onebyte.py
Normal file
@@ -0,0 +1,28 @@
|
||||
from pwn import *
|
||||
import os
|
||||
|
||||
gs = '''
|
||||
unset env LINES
|
||||
unset env COLUMNS
|
||||
set follow-fork-mode child
|
||||
br *main
|
||||
c
|
||||
'''
|
||||
|
||||
elf = ELF(os.getcwd()+"/downunderflow")
|
||||
|
||||
def start():
|
||||
if args.GDB:
|
||||
return gdb.debug(elf.path, gs)
|
||||
if args.REMOTE:
|
||||
return remote("2023.ductf.dev", 30018)
|
||||
else:
|
||||
return process(os.getcwd()+"/downunderflow")
|
||||
|
||||
io = start()
|
||||
|
||||
print(io.recvuntil("Your turn: "))
|
||||
io.send(cyclic(11))
|
||||
|
||||
|
||||
io.interactive()
|
||||
Reference in New Issue
Block a user