Post

HackTheBox SpellBrewery Writeup

Explore the basics of cybersecurity in the SpellBrewery 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.

Proof of Concept (PoC)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
ingredients = [
    "Witch's Eye", "Bat Wing", "Ghostly Essence", "Toadstool Extract", "Vampire Blood", "Mandrake Root", "Zombie Brain", "Ghoul's Breath", 
    "Spider Venom", "Black Cat's Whisker", "Werewolf Fur", "Banshee's Wail", "Spectral Ash", "Pumpkin Spice", "Goblin's Earwax", "Haunted Mist", 
    "Wraith's Tear", "Serpent Scale", "Moonlit Fern", "Cursed Skull", "Raven Feather", "Wolfsbane", "Frankenstein's Bolt", "Wicked Ivy", 
    "Screaming Banshee Berry", "Mummy's Wrappings", "Dragon's Breath", "Bubbling Cauldron Brew", "Gorehound's Howl", "Wraithroot", "Haunted Grave Moss", 
    "Ectoplasmic Slime", "Voodoo Doll's Stitch", "Bramble Thorn", "Hocus Pocus Powder", "Cursed Clove", "Wicked Witch's Hair", "Halloween Moon Dust", 
    "Bog Goblin Slime", "Ghost Pepper", "Phantom Firefly Wing", "Gargoyle Stone", "Zombie Toenail", "Poltergeist Polyp", "Spectral Goo", "Salamander Scale", 
    "Cursed Candelabra Wax", "Witch Hazel", "Banshee's Bane", "Grim Reaper's Scythe", "Black Widow Venom", "Moonlit Nightshade", "Ghastly Gourd", 
    "Siren's Song Seashell", "Goblin Gold Dust", "Spider Web Silk", "Haunted Spirit Vine", "Frog's Tongue", "Mystic Mandrake", "Widow's Peak Essence", 
    "Wicked Warlock's Beard", "Crypt Keeper's Cryptonite", "Bewitched Broomstick Bristle", "Dragon's Scale Shimmer", "Vampire Bat Blood", "Graveyard Grass", 
    "Halloween Harvest Pumpkin", "Cursed Cobweb Cotton", "Phantom Howler Fur", "Wraithbone", "Goblin's Green Slime", "Witch's Brew Brew", "Voodoo Doll Pin", 
    "Bramble Berry", "Spooky Spellbook Page", "Halloween Cauldron Steam", "Spectral Spectacles", "Salamander's Tail", "Cursed Crypt Key", "Pumpkin Patch Spice", 
    "Haunted Hay Bale", "Banshee's Bellflower", "Ghoulish Goblet", "Frankenstein's Lab Liquid", "Zombie Zest Zest", "Werewolf Whisker", "Gargoyle Gaze", 
    "Black Cat's Meow", "Wolfsbane Extract", "Goblin's Gold", "Phantom Firefly Fizz", "Spider Sling Silk", "Widow's Weave", "Wraith Whisper", 
    "Siren's Serenade", "Moonlit Mirage", "Spectral Spark", "Dragon's Roar", "Banshee's Banshee", "Witch's Whisper", "Ghoul's Groan", "Toadstool Tango", 
    "Vampire's Kiss", "Bubbling Broth", "Mystic Elixir", "Cursed Charm"
]
correct = [
    "Phantom Firefly Wing", "Ghastly Gourd", "Hocus Pocus Powder", "Spider Sling Silk", "Goblin's Gold", "Wraith's Tear", "Werewolf Whisker", 
    "Ghoulish Goblet", "Cursed Skull", "Dragon's Scale Shimmer", "Raven Feather", "Dragon's Scale Shimmer", "Ghoulish Goblet", "Cursed Skull", 
    "Raven Feather", "Spectral Spectacles", "Dragon's Scale Shimmer", "Haunted Hay Bale", "Wraith's Tear", "Zombie Zest Zest", "Serpent Scale", 
    "Wraith's Tear", "Cursed Crypt Key", "Dragon's Scale Shimmer", "Salamander's Tail", "Raven Feather", "Wolfsbane", "Frankenstein's Lab Liquid", 
    "Zombie Zest Zest", "Cursed Skull", "Ghoulish Goblet", "Dragon's Scale Shimmer", "Cursed Crypt Key", "Wraith's Tear", "Black Cat's Meow", 
    "Wraith Whisper"
]
flag = "".join(chr(ingredients.index(item) + 0x20) for item in correct)
print("Flag:", flag)

Summary

SpellBrewery on Hack The Box is an easy-level challenge focused on reversing and logic-based problem-solving. Participants analyze a crafted list of “ingredients” and extract a hidden flag by mapping a subset of correct items to their corresponding indices, applying a simple encoding logic. This challenge introduces file parsing, string manipulation, and basic decryption concepts, making it ideal for beginners exploring cybersecurity fundamentals.

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