Post

HackTheBox Baby Crypt Writeup

Explore the basics of cybersecurity in the Baby Crypt Challenge on Hack The Box. This easy-level Challenge introduces encryption reversal and file handling concepts in a clear and accessible way, perfect for beginners.

https://app.hackthebox.com/challenges/210

Description

Give me the key and take what’s yours.

Exploitation

1
2
3
4
5
6
7
#!/usr/bin/python3

a = ['H', 'T', 'B']
b = [0x3f, 0x64, 0x35]
xor = [chr(ord(a[i]) ^ b[i]) for i in range(3)]
key = ''.join(xor)
print(key)

run the program and send the result to retrieve the flag.

Summary

The Baby Crypt Challenge on Hack The Box is an easy-level reverse engineering puzzle that introduces XOR decryption and basic scripting. Participants are tasked with deriving a key by XORing predefined characters with a set of hexadecimal values. By writing a simple Python script to perform the XOR operation, the key is generated and used to retrieve the flag. Ideal for beginners, this challenge provides hands-on experience with XOR-based encryption reversal and basic scripting, offering a practical introduction to cryptographic concepts and data manipulation.

This post is licensed under CC BY 4.0 by the author.