tryhackme scripting room

TryHackMe Scripting Room Writeup

Task 1: base64

I will be using python to write a script for this task. We are first opening the file, then reading the file and then use decode function in loop for 50 times to finally get the output.

Read more: TryHackMe Scripting Room Writeup
import base64

#open file
f = open("b64_1550406728131.txt")

#read file
read = f.read() 

#decode 50 times
for i in range(50):
	read = base64.b64decode(read)  
	print("encoded number of times" + str(i))

print("final string: " + str(read.decode()))

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *