Created
April 18, 2022 22:16
-
-
Save IgorGanapolsky/8021935461bf494b47a941e5464f0ce1 to your computer and use it in GitHub Desktop.
Python3 - deobfuscate base64 strings
This file contains 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
import base64 | |
import urllib.parse | |
def print_hi(input_str): | |
# Strings to deobfuscate | |
str_ = input_str | |
for row in str_.split('\n'): | |
if not row: continue | |
print(urllib.parse.unquote(base64.b64decode(row))) | |
if __name__ == '__main__': | |
print_hi("""TU9CSUxF== | |
Y291bnRyeQ==""") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment