Skip to main content
Back to challenges

Malware Development · Programming

Custom Shellcode Encoder

Intermediate · 3/5
Paid planPractitioner rank required75 points on first solo solve

Challenge brief

Create a polymorphic XOR encoder that eliminates null bytes from shellcode. Find a single-byte XOR key that removes all null bytes and output the encoded payload.

Input

First line: hex-encoded shellcode (may contain null bytes)

Output

Line 1: The XOR key (decimal)
Line 2: Hex-encoded result (no null bytes)

Use the smallest valid key (try keys 1-255 in order). If no key eliminates all null bytes, print NO_VALID_KEY.

Solo practice

Sign in to submit an answer and save your progress.

Sign in to practice