Skip to content

Instantly share code, notes, and snippets.

@sk0x1234
Created March 27, 2023 20:19
Show Gist options
  • Save sk0x1234/4a2ccd923074ed43c48561ce147453c4 to your computer and use it in GitHub Desktop.
Save sk0x1234/4a2ccd923074ed43c48561ce147453c4 to your computer and use it in GitHub Desktop.
THM- intro to python challenge
#save encode.txt in a file
import base64
s = open("encode.txt","r")
s = s.read() # read as strings check type(s)
for i in range(5):
s = base64.b16decode(s)
# type(s) is in bytes
s = s.decode() #convert to type str
for i in range(5):
s = base64.b32decode(s)
s = s.decode(s)
for i in range(5):
s = base64.b64decode(s)
s = s.decode()
###
##b'THM{d431ff8fea00ad3f6b685b7182078e73}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment