alien-console

Info
Details

Category

Misc

Difficulty

Medium

Exploitation Script


from pwn import *
from binascii import unhexlify

HOST = "35.242.245.6"
PORT = 30536

INPUT = b"A" * 90

r = remote(HOST, PORT)
r.recvuntil(b"secure it:")
r.sendline(INPUT)
r.recvline()
cipher = unhexlify(r.recvline().strip())
r.close()

flag = xor(cipher, INPUT[:len(cipher)]) # limiting it to the length of the flag
print(flag.decode(errors="ignore"))

made by k0d

Last updated