-
-
Save smirn0v/b73cffeb389c4733493d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use autodie qw(:all); | |
my $str = do { local $/; <STDIN> }; | |
$str =~ s/[^0-9a-fA-F]//gm; | |
$str = pack('H*', $str); | |
print $str; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment