supercisco has asked for the wisdom of the Perl Monks concerning the following question:
i have the script but i do not know how to use it what is the input and the output, the script intends to replace hex value
#!/usr/bin/perl @xlat = ( 0x64, 0x73, 0x66, 0x64, 0x3b, 0x6b, 0x66, 0x6f, 0x41, 0x2c, 0x2e, 0x69, 0x79, 0x65, 0x77, 0x72, 0x6b, 0x6c, 0x64, 0x4a, 0x4b, 0x44, 0x48, 0x53 , 0x55, 0x42 ); $in = $ARGV[0]; $ep = $in; $dp = ""; ($s, $e) = ($in =~ /^(..)(.+)/o); for ($i = 0; $i < length($e); $i+=2) { $dp .= sprintf "%c",hex(substr($e,$i,2))^$xlat[$s++]; } print "\n$dp\n\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how to use this script
by marto (Cardinal) on Apr 10, 2013 at 08:44 UTC | |
by Anonymous Monk on Apr 10, 2013 at 09:09 UTC | |
|
Re: how to use this script
by tobias_hofer (Friar) on Apr 10, 2013 at 08:33 UTC | |
|
Re: how to use this script
by VinsWorldcom (Prior) on Apr 10, 2013 at 14:19 UTC | |
|
Re: how to use this script
by prashantktyagi (Scribe) on Apr 10, 2013 at 08:24 UTC | |
|
Re: how to use this script
by Anonymous Monk on Apr 10, 2013 at 08:10 UTC |