Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@spetrunia
Created September 1, 2021 12:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spetrunia/6cf92913cce8d42eed67b5dec3b509f6 to your computer and use it in GitHub Desktop.
Save spetrunia/6cf92913cce8d42eed67b5dec3b509f6 to your computer and use it in GitHub Desktop.
#!/usr/bin/perl
use MIME::Base64;
while(<>) {
if ($_ =~ /base64:type254:([^"]+)"/) {
$res= decode_base64($1);
s/base64:type254:([^"]+)"/b64dec:type254:$res"/;
}
print $_;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment