why_xor

CyberEDU

Info
Details

Category

Cryptography

Challenge Overview

We're given a Python script where every character from the list is the XORed result between each character from s1 and s2 with the same corresponding positions.

In this type of challenge I'd like to use CyberChef and not complicate things with Python scripts. Even though I extracted and transformed all characters in hex values using python.

extracting values

We're also given a hint that ['\x00', '\x00', '\x00'] at the start of the xored list is the best hint we get. Knowing the basics of XOR operations, that means the first 3 characters from both strings are equal.

We also know the flag format, which is ctf{...}.

XORed the extracted list with key ctf using CyberChef, and got the flag.

cyberchef best tool

Final Flag

ctf{79f107231696395c004e87dd7709d3990f0d602a57e9f56ac428b31138bda258}

made by k0d

Last updated