XOR할 key가 주어져 있다.
"10"이라는 수가 보이는데, 10진수일 경우 읽을 수 없는 글자가 발견되어, 16진수 그러니까 0x10이라고 판단할 수 있겠다.
간단히 이렇게 코딩할 수 있겠다.
1 2 3 4 5 6 7 8 9 10 11 12 13 | def main(): ciphertext = "uqci0t ~7d0i e0dxy~{" result = "" key = 0x10 for char in ciphertext: result += chr(ord(char) ^ key) print "[*] Decrypted: " + result if __name__ == '__main__': main() | cs |
정답은 이렇게 보이고
입력하면
Clear~
'[Wargame Write-up] > Yoire' 카테고리의 다른 글
[Yoire] [reversing] pe/03_crackme_average.php (0) | 2017.03.05 |
---|---|
[Yoire] [reversing] pe/02_crackme_easy.php (0) | 2017.03.04 |
[Yoire] [reversing] pe/01_crackme_very_easy.php (0) | 2017.03.04 |
[Yoire] [binary] conversion/0_chall_very_easy.php (0) | 2017.03.04 |
[Yoire] [base64] transform/0_chall_very_easy.php (0) | 2017.03.03 |