muX1337
CtrlK
Write-Ups
Write-Ups
  • 📙Write-Ups
  • 🔋Hack The Box
    • 🕹️Challenges
      • 🎰AI - ML
        • ☄️AI SPACE
      • ⛓️Blockchain
        • 🤸Survival of the Fittest
      • 🔮Crypto
        • 👶Baby Time Capsule
        • 🕺The Last Dance
      • ⏪Reversing
        • BabyEncryption
        • 🌒Behind the Scenes
        • 🐣BabyEncryption
        • 💹Simple Encryptor
      • 🎛️Hardware
        • 💉The Needle
        • 🔏Photon Lockdown
      • 🥸OSINT
        • 💸Money Flowz
      • 🕸️Web
        • 🏫ArtificialUniversity
        • ApacheBlaze
        • 🎑Breathtaking View
        • 🏴‍☠️Flag Command
        • 💓LoveTok
        • 💥Neonify
        • 😑No Treshold
        • 🗒️jscalc
        • ❓RenderQuests
        • 🗒️PDFy
        • 🙈ProxyAsAService
    • 🏰Fortress
      • 🦙AWS
    • 💻Machines
      • 🎒Backfire
      • 💥BigBang
      • 🐈‍⬛Cat
      • ✔️Checker
      • 🐶Dog
      • 🧧Environment
      • 👮EscapeTwo
      • ⚜️Eureka
      • 🦏Nocturnal
      • 🗒️Planning
      • 🌙Scepter
      • 🚢Titanic
      • TheFrizz
      • 🔞UnderPass
      • 🐰WhiteRabbit
    • 🧐Sherlocks
      • Meerkat
      • Bumblebee
    • 🥼ProLabs
      • 🃏FullHouse
    • 💀Season 8
      • 🐶Puppy
      • 🐕Fluffy
      • 📜Certificate
      • 🧟TombWatcher
      • 🧑‍🎨Artificial
    • 🦓Scripts/Functions/Tools
Powered by GitBook
On this page
  1. 🔋Hack The Box
  2. 🕹️Challenges
  3. ⏪Reversing

BabyEncryption

╰─ cat decrypt.py                                                                                                    ─╯
with open ('msg.enc','r') as file:
    secret = file.read()

ct = bytes.fromhex(secret)
plaintext = ''

for i in ct:
    for j in range(33,126):
        if ((123 * j + 18) % 256) == i:
            plaintext += chr(j)
            break

print(plaintext)

Last updated 9 months ago