from base64 import b64decode base64_strings = '''dGVzdAo= dGVzdAo= cmVkaXMtcm9ndWUK cmVkaXMtcm9ndWUK ''' print("[+] base64Decode: ") [print(" {}".format(b64decode(tmp.strip()).decode().strip())) for tmp in base64_strings.split("\n")]
from base64 import b64decode base64_strings = '''dGVzdAo= dGVzdAo= cmVkaXMtcm9ndWUK cmVkaXMtcm9ndWUK ''' print("[+] base64Decode: ") [print(" {}".format(b64decode(tmp.strip()).decode().strip())) for tmp in base64_strings.split("\n")]