El script es una traduccion a perl del famoso programa getbytes.py hecho por hecky neobits.
El codigo :
Código
#!usr/bin/perl #HexNow 0.1 #Coded By Doddy H #Script based in getbytes.py made by hecky neobits #Thanks to hecky neobits & explorer(perlenespanol) use Getopt::Long; use File::Basename; use Cwd; GetOptions( "hex=s" => \$hex, "each=s" => \$hexeach, "output=i" => \$output, "savefile=s" => \$savefile ); head(); if ($hex) { my $code_final; if ($hexeach) { my $reco; $reco .= $final . "\n"; } $code_final = $reco; } else { } if ( $output eq "1" ) { } if ($savefile) { savefile( $savefile, $code_final ); } else { my $div = basename($hex); if ( $div =~ /(.*)\.(.*)/ ) { my $listo = $1 . "_hex.txt"; savefile( $listo, $code_final ); } } copyright(); } sub head { _____ ,----/,--. `. / '. `-' \ Program Name : HexNow | ____ \ '`|_ Version : 0.1 \'.--._/` _ \ '. Author : Doddy H /'-|/ \|`\|-` \ Script based in getbytes.py made by hecky neobits / / \ | Thanks to hecky neobits | ; '` | .' '. |;; ; / \ \ ; / ,' Examples : ;--, .,--, `'-'-' `-'-'` perl hexnow.pl -hex imagen.jpg -each 5 ______________________ perl hexnow.pl -hex imagen.jpg -output 1 /'/ / \ \ \ perl hexnow.pl -hex imagen.jpg -savefile test.txt / '.'; ; \ ' \ '-/ | ; | ; \-' \_| | | |_/ The End ? `-'\_/`-' ); } sub copyright { } sub getcontent { my @lines = <FILE>; close FILE; } sub savefile { if ( -f $_[0] ) { } close SAVE; } #The End ?