Wargame/Cryptohack
Great Snakes
wyv3rn
2023. 1. 31. 10:08
728x90
반응형
1. intro
2. code 및 분석
2.1. code
#!/usr/bin/env python3
import sys
# import this
if sys.version_info.major == 2:
print("You are running Python 2, which is no longer supported. Please update to Python 3.")
ords = [81, 64, 75, 66, 70, 93, 73, 72, 1, 92, 109, 2, 84, 109, 66, 75, 70, 90, 2, 92, 79]
print("Here is your flag:")
print("".join(chr(o ^ 0x32) for o in ords))
2.2. 분석
대놓고 있는 플래그 #2 + python 사용법에 대한 공부.
나중엔 헬이겠지만, 그래도 newbie friendly 한 사이트인 것 같다.
3. exploit
┌──(kali㉿kali)-[~/Downloads]
└─$ python great_snakes_35381fca29d68d8f3f25c9fa0a9026fb.py
Here is your flag:
crypto{z3n_0f_pyth0n}
728x90
반응형