Skip to content

Instantly share code, notes, and snippets.

@IgorGanapolsky
Created April 18, 2022 22:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IgorGanapolsky/8021935461bf494b47a941e5464f0ce1 to your computer and use it in GitHub Desktop.
Save IgorGanapolsky/8021935461bf494b47a941e5464f0ce1 to your computer and use it in GitHub Desktop.
Python3 - deobfuscate base64 strings
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