/usr/bin/hexdraw is in unifont-bin 1:5.1.20080914-1.1ubuntu1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | #!/usr/bin/perl -p
sub unpack {
local ($_) = @_;
$_ = unpack ("B*", pack ("H*", $_));
$width=length($_)/16;
s/(.{$width})/\t$1\n/g;
y/01/-#/;
$_;
};
sub pack {
local ($_) = @_;
y/-#/01/;
$_= unpack ("H*", pack ("B*", $_));
y/a-f/A-F/;
$_;
}
s/([0-9A-F]{64})/&unpack($1)/ie ||
s/([0-9A-F]{32})/&unpack($1)/ie ||
s/\t([-#]+)\n/&pack($1)/e;
|