Skip to main content
Challenges Shellcode encoded with XOR
PWN Medium Shellcode Solves: 7

Shellcode encoded with XOR

Author: CyberSamSU
Points
40

To evade detection, ready-made shellcode is often encoded with a repeating XOR key and only decrypts itself before execution ("self-decoding shellcode"). However, ALMOST ALL real shellcodes begin with a "NOP slide" consisting of several 0x90 (NOP) bytes at the start — which creates a very convenient opportunity for a known-plaintext attack.

The following encoded shellcode is provided (XOR key length is exactly: 3 bytes), in hex format:

0287D7025506CB4508C36C17C55918C15F02DE5B04DD5302CD2F7EA1213A5E

To find the key: XOR the first 3 bytes of the encrypted file with the known NOP slide (0x90 0x90 0x90) — the result will be the key itself. Once the key is found, apply it to the entire ciphertext (repeatedly) — the result will be a NOP slide, followed by readable text (including the flag), and then a single 0xCC (INT3 — breakpoint) byte.

Theory: learn the topic
Hints 3
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −4 pts Log in
Hint 2 −8 pts Log in
Hint 3 −12 pts Log in
To submit a flag, log in.

First solvers

1. W.o.X 09.09.2026
2. Stiv_084100 11.09.2026
3. Mirjaxon Qaxxarov 27.10.2026
4. Odam 05.11.2026
5. Mahfuza 11.11.2026
6. arcanum 11.11.2026
7. Furqat Turayev 11.11.2026