import subprocess, sys, json, time
HOST = sys.argv[1] if len(sys.argv)>1 else "phadmin.msjshy.com"
H = "X-Forwarded-For: 8.212.169.49"
paths = [l.strip() for l in sys.stdin if l.strip()]
for p in paths:
    url = f"https://{HOST}{p}"
    r = subprocess.run(["curl","-sk","-m","12","-H",H,"-o","/dev/null","-w","%{http_code} %{size_download} %{redirect_url}","--max-redirs","0",url], capture_output=True, text=True)
    print(f"{p}\t{r.stdout.strip()}")
    time.sleep(0.05)
