Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 662 Bytes

File metadata and controls

38 lines (28 loc) · 662 Bytes

Writeup for loop

@levena_evenas

 curl http://q21.ctf.katsudon.org/ -L -i -s | grep X-Flag > aki.txt


 f=open("./aki.txt","r+t")

 allarr=[]
 for a in f:
     arr=a[:-2].split(" ")
     global allarr
     allarr.append(arr[1])

 print "".join(allarr)

@mpyw

#!/bin/sh
curl -vL http://q21.ctf.katsudon.org/ 2>&1 | awk '
    $2!="X-Flag:"{next}
    s==$3{exit}
    s==""{s=$3}
    {gsub(/\r/,"",$3);printf $3}
    END{print""}
'

@ctf_shiho

curl http://q21.ctf.katsudon.org/ -v 2>&1 | grep "X-Flag" | cut -f3 -d" "
ひたすら連打していると周期があったのでつなぎあわせてFLAG