ASCII Numbers

Published: March 5, 2024

Description

Translate the provided list of ASCII byte values into a readable string. No tricks here; it's just a direct conversion from hex to text.

Hex decoding

Copy the sequence of 0x-prefixed values from the prompt.

Either use CyberChef → From Hex or echo the bytes into xxd -p -r to decode locally.

echo "0x70 0x69 0x63 0x6f 0x43 0x54 0x46 0x7b 0x34 0x35 0x63 0x31 0x31 0x5f 0x6e 0x30 0x5f 0x71 0x75 0x33 0x35 0x37 0x31 0x30 0x6e 0x35 0x5f 0x31 0x6c 0x6c 0x5f 0x74 0x33 0x31 0x31 0x5f 0x79 0x33 0x5f 0x6e 0x30 0x5f 0x6c 0x31 0x33 0x35 0x5f 0x34 0x34 0x35 0x64 0x34 0x31 0x38 0x30 0x7d" | xxd -p -r

Solution

  1. Step 1Pipe into xxd
    xxd -p -r treats the input as plain hex bytes (-p) and reverses them to ASCII (-r). The decoded output is the flag.
    echo "0x70 0x69 0x63 0x6f 0x43 0x54 0x46 0x7b 0x34 0x35 0x63 0x31 0x31 0x5f 0x6e 0x30 0x5f 0x71 0x75 0x33 0x35 0x37 0x31 0x30 0x6e 0x35 0x5f 0x31 0x6c 0x6c 0x5f 0x74 0x33 0x31 0x31 0x5f 0x79 0x33 0x5f 0x6e 0x30 0x5f 0x6c 0x31 0x33 0x35 0x5f 0x34 0x34 0x35 0x64 0x34 0x31 0x38 0x30 0x7d" | xxd -p -r
    Learn more

    ASCII (American Standard Code for Information Interchange) is a character encoding standard that assigns a unique 7-bit integer to each printable character and control code. For example, the letter 'p' maps to decimal 112, which is 0x70 in hexadecimal. Every character in the flag corresponds exactly to one of these values.

    The xxd tool is the standard Unix hex-dump utility. Running it with -r -p (reverse, plain) reads whitespace-separated hex values and writes their byte equivalents - essentially undoing the hex encoding. You could accomplish the same thing in Python with bytes.fromhex(), in CyberChef with the "From Hex" recipe, or even manually using an ASCII table.

    Understanding the relationship between characters and their numeric representations is foundational to binary exploitation, cryptography, and network protocol analysis. Any time data is serialized or transmitted, it ultimately moves as numbers, and being able to convert fluently between representations (hex, decimal, binary, ASCII) is an essential skill for any security researcher.

Alternate Solution

Use the Binary to Hex tool on this site to look up hex↔ASCII mappings interactively - paste the hex values and see the corresponding characters instantly without needing xxd or Python.

Flag

picoCTF{45c11_n0_qu35710n5_1ll_t311_y3_n0_l135_445d...}

Any hex → ASCII conversion yields the same output; xxd is just a quick CLI option.

Want more picoGym Exclusive writeups?

Useful tools for General Skills

Related reading

What to try next