CTF write_up/2018 X-MAS CTF

[Misc] The ultimate Christmas game

ws1004 2019. 6. 22. 23:11

 

 

제공해주는 Server 연결을 해보니 다음과 같은 문장이 나왔습니다.

 

 

마다 값이 다르게 주어지네요

Md5(x).hexdigest()인거 보니까 복호화 하는거 같습니다.

 

 

keygen.py

 

복호화만 하는게 아니라 추가 문제들이 있나 보네요. 이렇게 되면 파이썬 pwn모듈을 이용해서 코드를 작성해야 같습니다.

 

The_Ultimate_Christmas_Game.py

python  The_Ultimate_Christmas_Game.py 명령어

 

 

Flag : X-MAS{If_y0u_st4rt_1n_a_w1nn1ng_posit1on_0f_NIM_4nd_th3_ch4ll3ng3_15_wr1t7en_c0rr3ctly_then_you_c4n_4lways_w1n}

 

Pwntools 관련 Docs

http://docs.pwntools.com/en/stable/index.html

 

Itertools 관련 Docs

https://docs.python.org/2/library/itertools.html