Quantcast
Viewing all articles
Browse latest Browse all 12

Decoding base64 encoded files attached to mail

To decode base64 encoded files attached to mail, there are several tools available.

base64 is a command-line utility tool.

To decode it :

fool@localhost:~$ base64 -di < input_file

where -d : decoding data and -i : ignore non-alphabet characters

This Perl one-liner can do the job as well :

fool@localhost:~$ perl -MMIME::Base64 -ne ‘print decode_base64($_) < input_file

 

 


Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 12

Trending Articles