CHIqueen

package main import( "fmt" "math/rand" "time" ) func main(){ fmt.Println("Guessing game") rand.Seed(time.Now().UnixNano()) secNum := rand.Intn(100) var guess int for { fmt.Scan(&guess) fmt.Println("You guessed", guess) if guess secNum { fmt.Println("Down") } else { fmt.Println("Correct!") break } } } 간단한 Go 언어 예제 math/rand와 time을 사용했다.

재미있는 문제 import shutil import os xflag = "tjctf{n0t_th3_fl4g}\n" open("0.txt","w").write(xflag) cwd = os.getcwd() j=0 while (flag:=open(str(j)+".txt").read()) == xflag: j+=1 for i in os.listdir(): if i.endswith("kz3"): os.rename(i,str(j)+".zip") i=str(j)+".zip" if i.startswith(str(j)): shutil.unpack_archive(i) break for k in os.listdir(cwd+"\\"+str(j)): shutil.move(cwd+"\\"+str(j)+"\\"+k,cwd+"\\"..

힌트에 들어가보면 https://www.youtube.com/watch?v=QS1-K01mdXs 고든램지가 RAW(들익었다)! 하는 영상이 나온다. 그럼 뭐다? mp3는 버리고 raw를 생각해야한다. 그리고 문제에서 1700*1700 이거랑 같이 생각해본다면 https://rawpixels.net/ RAW Pixels Robert Mazur robert.mazur(*)rawpixels.net RAW pixels viewer. This application allows you analyze raw image data, you can display memory dumps of frame buffers, video buffers and uncompressed video files. Play with image..