Created
March 27, 2023 20:19
-
-
Save sk0x1234/4a2ccd923074ed43c48561ce147453c4 to your computer and use it in GitHub Desktop.
THM- intro to python challenge
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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