1.CryptoHack (https://cryptohack.org/):
https://cryptohack.org/courses/intro/fflags/
crypto{y0ur_f1rst_fl4g}
https://cryptohack.org/courses/intro/nc-intro/
crypto{z3n_0f_pyth0n}
#!/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.")
#檢查當前運行的 Python 版本,並在版本為 Python 2 時提醒用戶升級到 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))
# chr(o ^ 0x32) for o in ords : 讓ords列表中的每一個元素與十六進制數的0x32進行xor運算,並轉換成chr字符模式
# "".join(...) : 將所有轉換後的字符連接成一個字串
* https://ithelp.ithome.com.tw/articles/10317110
* https://www.dcode.fr/caesar-cipher
* https://cryptohack.org/courses/intro/nc-intro/