python

TryHackMe: "Scripting" Room Walkthrough

Gespeichert von Sinclair am So., 03.07.2022 - 09:58

Base64
This file has been base64 encoded 50 times - write a script to retrieve the flag. Here is the general process to do this:

  1. read input from the file
  2. use function to decode the file
  3. do process in a loop

    Python code:

    # TryHackme - Scripting Room
    # Decode a base64 encoded value 50 times
    # Daniel Fai, Jul 2022
    # www.sinclair-software.de

    import base64

    f = open("b64.txt", "r")
    coded_string= f.read()