$79 GRAYBYTE WORDPRESS FILE MANAGER $56

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/usr/bin/

HOME
Current File : /usr/bin//snmpconf
#!/usr/bin/perl

#
# A simple configuration file builder based on questions listed in
# its own configuration file.  It would certainly be easy to use this
# for other (non-snmp) programs as well.
#

use Getopt::Std;
use Term::ReadLine;
use IO::File;
use Data::Dumper;
use File::Copy;
if ($^O eq 'MSWin32') {
  eval 'require Win32::Registry;';
  if ($@) {
    print "\nWarning: Perl module Win32::Registry is not installed.  This module is\n";
    print "         required to read the SNMPSHAREPATH and SNMPCONFPATH values from \n";
    print "         the registry.  To use snmpconf without the module you need to\n";
    print "         define SNMPSHAREPATH and SNMPCONFPATH as environment variables\n";
    print "         or use the -c and -I command line options.\n";
  }
}

# globals
%tokenitems=qw(line 1 info 1 comment 1);
%arrayitems=qw(question 1 validanswer 1);

# default folder for snmpconf-data
if (defined(&my_getenv("SNMPSHAREPATH"))) {
  $opts{'c'} = &my_getenv("SNMPSHAREPATH") . "/snmpconf-data";
}
else {
  $opts{'c'} = "/usr/share/snmp/snmpconf-data";
}
 
# default config file path
if (defined(&my_getenv("SNMPCONFPATH"))) {
  $confpath = &my_getenv("SNMPCONFPATH");
}
else {
  $confpath = "/usr/share/snmp";
}

# home environment variable
if (defined(&my_getenv("HOME"))) {
  $home = &my_getenv("HOME") . "/.snmp";
}
else {
  $home = "(HOME dir - n/a)";
}

# read the argument string
getopts("qadhfc:piI:r:R:g:G", \%opts);

# display help
if ($opts{'h'}) {
    print "$0 [options] [FILETOCREATE...]\n";
    print "options:\n";
    print "  -f           overwrite existing files without prompting\n";
    print "  -i           install created files into $confpath.\n";
    print "  -p           install created files into $home.\n";
    print "  -I DIR       install created files into DIR.\n";
    print "  -a           Don't ask any questions, just read in current\n";
    print "                   current .conf files and comment them\n";
    print "  -r all|none  Read in all or none of the .conf files found.\n";
    print "  -R file,...  Read in a particular list of .conf files.\n";
    print "  -g GROUP     Ask a series of GROUPed questions.\n";
    print "  -G           List known GROUPs.\n";
    print "  -c conf_dir  use alternate configuration directory.\n";
    print "  -q           run more quietly with less advice.\n";
    print "  -d           turn on debugging output.\n";
    print "  -D           turn on debugging dumper output.\n";
    exit;
}

# setup terminal interface.
$ENV{'PERL_RL'}='o=0' if (!exists($ENV{'PERL_RL'}));
$term = new Term::ReadLine 'snmpconf';

# read in configuration file set
read_config_files($opts{'c'}, \%filetypes);
debug(my_Dumper(\%filetypes));

if ($opts{'G'}) {
    Print("\nKnown GROUPs of tokens:\n\n");
    foreach my $group (keys(%groups)) {
	print "  $group\n";
    }
    Print("\n");
    exit;
}

#
# Expand the search path in case it contains multiple directories.
#
my $ENV_SEPARATOR = ':';
my @searchpath = split(/$ENV_SEPARATOR/, $confpath);
push @searchpath, "/etc/snmp";
push @searchpath, ".";
push @searchpath, "$home";

# Remove trailing /'s or \'s
for (my $i=0; $i <= $#searchpath; $i++) {
  $searchpath[$i] =~ /(.*?)([\/\\])*$/;
  $searchpath[$i] = $1;
}

# Determine persistent directory.  Order of preference:
# 
# file in SNMP_PERSISTENT_FILE environment variable
# directory defined by persistentDir snmp.conf variable
# directory in SNMP_PERSISTENT_DIR environment variable
# default PERSISTENT_DIRECTORY directory
my $persistentDir = "";
my $persistentFile = "";

# SNMP_PERSISTENT_FILE environment variable
if (defined(&my_getenv("SNMP_PERSISTENT_FILE"))) {
  $persistentFile = &my_getenv("SNMP_PERSISTENT_FILE");
  debug ("persistent file: SNMP_PERSISTENT_FILE environment variable set\n");
}

# snmp.conf persistentDir
if (!($persistentDir) && !($persistentFile)) {
  foreach my $i (@searchpath) {
    debug ("Searching file $i/snmp.conf for persistentDir\n");
    my $temp = get_persistentDir("$i/snmp.conf");
    if ($temp) {
      debug("persistent directory: set to $temp in $i/snmp.conf\n");
      $persistentDir = $temp;
      last;
    }
  }
}

# SNMP_PERSISTENT_DIR environment variable
if (!($persistentDir) && !($persistentFile)) {
  if (&my_getenv("SNMP_PERSISTENT_DIR")) {
    $persistentDir = &my_getenv("SNMP_PERSISTENT_DIR");
    debug ("persistent directory: SNMP_PERSISTENT_DIR environment variable set\n");
  }
}

# PERSISTENT_DIRECTORY default variable
if (!($persistentDir) && !($persistentFile)) {
  $persistentDir = "/var/lib/net-snmp";
  debug ("persistent directory: Using default value\n");
}

# Rebuild search path without persistent folder
# Note:  persistent file handled in Find existing 
# files to possibly read in section
if ($persistentDir) {
  # Remove trailing /'s or \'s
  $persistentDir =~ /(.*?)([\/\\])*$/;
  $persistentDir = $1;
  debug ("persistent directory: $persistentDir\n");

  my @searchpath_old = @searchpath;
  @searchpath = ();
  foreach my $path_temp (@searchpath_old) {
    if ($path_temp eq $persistentDir) {
      debug("skipping persistent directory $path_temp\n");
      next;
    }
    push @searchpath, $path_temp;
  }
}

# Reset $confpath to the first path
$confpath = $searchpath[0];

#
# Find existing files to possibly read in.
#
push @searchpath, $opts{I} if ($opts{I});
foreach my $i (@searchpath) {
    debug("searching $i\n");
    foreach my $ft (keys(%filetypes)) {
        if ("$i/$ft" eq $persistentFile) {
          debug("skipping persistent file $i/$ft\n");
          next;
        }
	debug("searching for $i/$ft\n");
	$knownfiles{"$i/$ft"} = $ft if (-f "$i/$ft");
	my $localft = $ft;
	$localft =~ s/.conf/.local.conf/;
	$knownfiles{"$i/$localft"} = $ft if (-f "$i/$localft");
    }
}

#
# Ask the user if they want them to be read in and read them
#
if (keys(%knownfiles)) {
    my @files;
    if (defined($opts{'r'})) {
	if ($opts{'r'} eq "all" || $opts{'r'} eq "a") {
	    @files = keys(%knownfiles);
	} elsif ($opts{'r'} ne "none" && $opts{'r'} ne "n") {
	    print "unknown argument to -r: $opts{'r'}\n";
	    exit(1);
	}
    } elsif(defined($opts{'R'})) {
	@files = split(/\s*,\s*/,$opts{'R'});
	foreach my $i (@files) {
	    my $x = $i;
	    $x =~ s/.*\/([^\/]+)$/$1/;
	    $knownfiles{$i} = $x;
	}
	Print("reading: ", join(",",@files),"\n");
    } else {
	@files = display_menu(-head => "The following installed configuration files were found:\n",
			      -tail => "Would you like me to read them in?  Their content will be merged with the\noutput files created by this session.\n\nValid answer examples: \"all\", \"none\",\"3\",\"1,2,5\"\n",
			      -multiple => 1,
			      -question => 'Read in which',
			      -defaultvalue => 'all',
			      sort keys(%knownfiles));
    }
    foreach my $i (@files) {
	debug("reading $i\n");
	read_config($i, $knownfiles{$i});
    }
}

if ($opts{'g'}) {
    my @groups = split(/,:\s/,$opts{'g'});
    foreach my $group (@groups) {
	do_group($group);
    }
} elsif ($#ARGV >= 0) {
    #
    # loop through requested files.
    #
    foreach my $i (@ARGV) {
	if (!defined($filetypes{$i})) {
	    warn "invalid file: $i\n";
	} else {
	    if ($opts{'a'}) {
		$didfile{$i} = 1;
	    } else {
		build_file($term, $i, $filetypes{$i});
	    }
	}
    }
} else {
    #
    # ask user to select file type to operate on.
    #
    while(1) {
	my $line = display_menu(-head => "I can create the following types of configuration files for you.\nSelect the file type you wish to create:\n(you can create more than one as you run this program)\n",
				-question => 'Select File',
				-otheranswers => ['quit'],
				-mapanswers => { 'q' => 'quit' },
				keys(%filetypes));
	last if ($line eq "quit");
	debug("file selected: $line\n");
	build_file($term, $line, $filetypes{$line});
    }
}

#
# Write out the results to the output files.
#
output_files(\%filetypes, $term);


#
# Display the files that have been created for the user.
#
Print("\n\nThe following files were created:\n\n");
@didfiles = keys(%didfile);
foreach my $i (@didfiles) {
    if ($didfile{$i} ne "1") {
	if ($opts{'i'} || $opts{'I'}) {
          $opts{'I'} = "$confpath" if (!$opts{'I'});

          if (! (-d "$opts{'I'}") && ! (mkdir ("$opts{'I'}", 0755))) {
	    print "\nCould not create $opts{'I'} directory: $!\n";
	    print ("File $didfile{$i} left in current directory\n");
	  }
	  else {
            move ("$opts{'I'}/$i", "$opts{'I'}/$i.bak") if (-f "$opts{'I'}/$i");
            if (move ("$didfile{$i}", "$opts{'I'}")) {
              print("  $didfile{$i} installed in $opts{'I'}\n");	    
            }
            else {
              print "\nCould not move file $didfile{$i} to $opts{'I'}/$i: $!\n";
              print ("File $didfile{$i} left in current directory\n");
            }
          }
	} elsif ($opts{'p'}) {
	  if (! (-d "$home") && ! (mkdir ("$home", 0755))) {
	    print "\nCould not create $home directory: $!\n";
	    print ("File $didfile{$i} left in current directory\n");
	  }
	  else {	    
	    move ("$home/$i", "$home/$i.bak") if (-f "$home/$i");
	    if (move ("$didfile{$i}", "$home")) {
	      print("  $didfile{$i} installed in $home\n");
	    }
	    else {
	      print "\nCould not move file $didfile{$i} to $home: $!\n";
	      print ("File $didfile{$i} left in current directory\n");
  	    }
	  }
  	} else {
	    Print("  $didfile{$i} ",
	    ($i ne $didfile{$i})?"[ from $i specifications]":" ","\n");
	    if ($opts{'d'}) {
		open(I,$didfile{$i});
		debug("    " . join("    ",<I>) . "\n");
		close(I);
	    }
	}
    }
}

if (!$opts{'p'} && !$opts{'i'} && !$opts{'I'}) {
    Print("\nThese files should be moved to $confpath if you
want them used by everyone on the system.  In the future, if you add 
the -i option to the command line I'll copy them there automatically for you.

Or, if you want them for your personal use only, copy them to
$home .  In the future, if you add the -p option to the
command line I'll copy them there automatically for you.

");
}

###########################################################################
# Functions
###########################################################################

sub Print {
    print @_ if (!$opts{'q'});
}
#
# handle a group of questions
#
sub get_yn_maybe {
    my $question = shift;
    my $ans = "y";
    if ($question ne "") {
	$ans = get_answer($term, $question,
			  valid_answers(qw(yes y no n)), 'y');
    }
    return ($ans =~ /^y/)?1:0;
}

sub do_group {
    my $group = shift;
    die "no such group $group\n" if (!$groups{$group});
    foreach my $token (@{$groups{$group}}) {
	if ($token->[0] eq "message") {
	    Print ("$token->[1] $token->[2]\n");
	} elsif ($token->[0] eq "subgroup") {
	    do_group($token->[1]) if (get_yn_maybe($token->[2]));
	} elsif (defined($tokenmap{$token->[1]})) {
	    if (get_yn_maybe($token->[2])) {
		do {
		    do_line($token->[1], $tokenmap{$token->[1]});
		} until ($token->[0] ne "multiple" ||
			 get_answer($term, "Do another $token->[1] line?",
				    valid_answers(qw(yes y no n)), 'y')
			 =~ /n/);
	    }
	} elsif (defined($filetypes{$token->[1]})) {
	    $didfile{$token->[1]} = 1;
	} else {
	    die "invalid member $token->[1] of group $group\n";
	}
    }
}

#
# build a particular type of file by operating on sections
#
sub build_file {
    my ($term, $filename, $fileconf) = @_;
    $didfile{$filename} = 1;
    my (@lines);
    while(1) {
	my $line = display_menu(-head => "The configuration information which can be put into $filename is divided\ninto sections.  Select a configuration section for $filename\nthat you wish to create:\n",
				-otheranswers => ['finished'],
				-mapanswers => { 'f' => 'finished' },
				-question => "Select section",
				-numeric => 1,
				map { $_->{'title'}[0] } @$fileconf);

	return @lines if ($line eq "finished");
	do_section($fileconf->[$line-1]);
    }
}

#
# configure a particular section by operating on token types
#
sub do_section {
    my $confsect = shift;
    my @lines;
    while(1) {
	Print ("\nSection: $confsect->{'title'}[0]\n");
	Print ("Description:\n");
	Print ("  ", join("\n  ",@{$confsect->{'description'}}),"\n");
	my $line =
	    display_menu(-head => "Select from:\n",
			 -otheranswers => ['finished','list'],
			 -mapanswers => { 'f' => 'finished',
					  'l' => 'list' },
			 -question => 'Select section',
			 -descriptions => [map { $confsect->{$_}{info}[0] } 
					   @{$confsect->{'thetokens'}}],
			 @{$confsect->{'thetokens'}});
	return @lines if ($line eq "finished");
	if ($line eq "list") {
	    print "Lines defined for section \"$confsect->{title}[0]\" so far:\n";
	    foreach my $i (@{$confsect->{'thetokens'}}) {
		if ($#{$confsect->{$i}{'results'}} >= 0) {
		    print "  ",join("\n  ",@{$confsect->{$i}{'results'}}),"\n";
		}
	    }
	    next;
	}
	do_line($line, $confsect->{$line});
    }
    return;
}

#
# Ask all the questions related to a particular line type
#
sub do_line {
    my $token = shift;
    my $confline = shift;
    my (@answers, $counter, $i);
#    debug(my_Dumper($confline));
    Print ("\nConfiguring: $token\n");
    Print ("Description:\n  ",join("\n    ",@{$confline->{'info'}}),"\n\n");
    for($i=0; $i <= $#{$confline->{'question'}}; $i++) {
	if (defined($confline->{'question'}[$i]) &&
	    $confline->{'question'}[$i] ne "") {
	    my $q = $confline->{'question'}[$i];
	    $q =~ s/\$(\d+)/$answers[$1]/g;
	    debug("after: $term, $q, ",$confline->{'validanswer'}[$i],"\n");
	    $answers[$i] = get_answer($term, $q,
				      $confline->{'validanswer'}[$i]);
	    $answers[$i] =~ s/\"/\\\"/g;
	    $answers[$i] = '"' . $answers[$i] . '"' if ($answers[$i] =~ /\s/);
	}
    }
    if ($#{$confline->{'line'}} == -1) {
	my ($i,$line);
	for($i=0; $i <= $#{$confline->{'question'}}; $i++) {
	    next if (!defined($confline->{'question'}[$i]) ||
		     $confline->{'question'}[$i] eq "");
	    $line .= " \$" . $i;
	}
	push @{$confline->{'line'}}, $line;
    }

    foreach my $line (@{$confline->{'line'}}) {
	my $finished = $line;
	debug("preline: $finished\n");
	debug("answers: ",my_Dumper(\@answers));
	$finished =~ s/\$(\d+)/$answers[$1]/g;
	if ($line =~ s/^eval\s+//) {
	    debug("eval: $finished\n");
	    $finished = eval $finished;
	    debug("eval results: $finished\n");
	}
	$finished = $token . " " . $finished;
	Print ("\nFinished Output: $finished\n");
	push @{$confline->{'results'}},$finished;
    }
}

#
# read all sets of config files in the various subdirectories.
#
sub read_config_files {
    my $readdir = shift;
    my $filetypes = shift;
    opendir(DH, $readdir) || die "no such directory $readdir, did you run make install?\n";
    my $dir;
    my $configfilename="snmpconf-config";

    while(defined($dir = readdir(DH))) {
	next if ($dir =~ /^\./);
	next if ($dir =~ /CVS/);
	debug("dir entry: $dir\n");
	if (-d "$readdir/$dir" && -f "$readdir/$dir/$configfilename") {

	    my $conffile;

	    # read the top level configuration inforamation about the direcotry.
	    open(I, "$readdir/$dir/$configfilename");
	    while(<I>) {
		$conffile = $1 if (/forconffile: (.*)/);
	    }
	    close(I);

	    # no README informatino.
	    if ($conffile eq "") {
		print STDERR "Warning: No 'forconffile' information in $readdir/$dir/$configfilename\n";
		next;
	    }

	    # read all the daat in the directory
	    $filetypes->{$conffile} = read_config_items("$readdir/$dir", $conffile);
	} else {
	    # no README informatino.
	    print STDERR "Warning: No $configfilename file found in $readdir/$dir\n";
	}
    }
    closedir DH;
}

#
# read each configuration file in a directory
#
sub read_config_items {
    my $itemdir = shift;
    my $type = shift;
    opendir(ITEMS, $itemdir);
    my $file;
    my @results;
    while(defined($file = readdir(ITEMS))) {
	next if ($file =~ /~$/);
	next if ($file =~ /^snmpconf-config$/);
	if (-f "$itemdir/$file") {
	    my $res = read_config_item("$itemdir/$file", $type);
	    if (scalar(keys(%$res)) > 0) {
		push @results, $res;
	    }
	}
    }
    closedir(ITEMS);
    return \@results;
}

#
# mark a list of tokens as a special "group"
#
sub read_config_group {
    my ($fh, $group, $type) = @_;
    my $line;
    debug("handling group $group\n");
    push (@{$groups{$group}},['filetype', $type]);
    while($line = <$fh>) {
	chomp($line);
	next if ($line =~ /^\s*$/);
	next if ($line =~ /^\#/);
	return $line if ($line !~ /^(single|multiple|message|filetype|subgroup)/);
	my ($type, $token, $rest) = ($line =~ /^(\w+)\s+([^\s]+)\s*(.*)/);
	debug ("reading group $group : $type -> $token -> $rest\n");
	push (@{$groups{$group}}, [$type, $token, $rest]);
    }
    return;
}
	

#
# Parse one file
#
sub read_config_item {
    my $itemfile = shift;
    my $itemcount;
    my $type = shift;
    my $fh = new IO::File($itemfile);
    return if (!defined($fh));
    my (%results, $curtoken);
    debug("tokenitems:  ", my_Dumper(\%tokenitems));
  topwhile:
    while($line = <$fh>) {
	next if ($line =~ /^\s*\#/);
	my ($token, $rest) = ($line =~ /^(\w+)\s+(.*)/);
	next if (!defined($token) || !defined($rest));
	while ($token eq 'group') {
	    # handle special group list
	    my $next = read_config_group($fh, $rest,$type);
	    if ($next) {
		($token, $rest) = ($next =~ /^(\w+)\s+(.*)/);
	    } else {
		next topwhile;
	    }
	}
	debug("token: $token => $rest\n");
	if ($token eq 'steal') {
	    foreach my $stealfrom (keys(%{$results{$rest}})) {
		if (!defined($results{$curtoken}{$stealfrom})) {
		    @{$results{$curtoken}{$stealfrom}} = 
			@{$results{$rest}{$stealfrom}};
		}
	    }
	} elsif (defined($tokenitems{$token})) {
	    if (!defined($curtoken)) {
		die "error in configuration file $itemfile, no token set\n";
	    }
	    $rest =~ s/^\#//;
	    push @{$results{$curtoken}{$token}},$rest;
	} elsif (defined($arrayitems{$token})) {
	    if (!defined($curtoken)) {
		die "error in configuration file $itemfile, no token set\n";
	    }
	    my ($num, $newrest) = ($rest =~ /^(\d+)\s+(.*)/);
	    if (!defined($num) || !defined($newrest)) {
		warn "invalid config line: $line\n";
	    } else {
		$results{$curtoken}{$token}[$num] = $newrest;
	    }
	} elsif ($token =~ /^token\s*$/) {
	    $rest = lc($rest);
	    $curtoken = $rest;
	    if (! exists $results{$curtoken}{'defined'}) {
		push @{$results{'thetokens'}}, $curtoken;
		$results{$curtoken}{'defined'} = 1;
	    }
	    $tokenmap{$curtoken} = $results{$curtoken};
	    debug("current token set to $token\n");
	} else {
	    push @{$results{$token}},$rest;
	}
    }
    return \%results;
}

sub debug {
    print @_ if ($opts{'d'});
}

sub output_files {
    my $filetypes = shift;
    my $term = shift;
    foreach my $ft (keys(%$filetypes)) {
	next if (!$didfile{$ft});
	my $outputf = $ft;
	if (-f $outputf && !$opts{'f'}) {
	    print "\nError: An $outputf file already exists in this directory.\n\n";
	    my $ans = get_answer($term,"'overwrite', 'skip', 'rename' or 'append'? ",valid_answers(qw(o overwrite r rename s skip a append)));
	    next if ($ans =~ /^(s|skip)$/i);
	    if ($ans =~ /^(a|append)/) {
		$outputf = ">$outputf";
	    } elsif ($ans =~ /^(r|rename)$/i) {
		# default to rename for error conditions
		$outputf = $term->readline("Save to what new file name instead (or 'skip')? ");
	    }
	}
	$didfile{$ft} = $outputf;
	open(O,">$outputf") || warn "couldn't write to $outputf\n";
	print O "#" x 75,"\n";
	print O "#\n# $ft\n";
	print O "#\n#   - created by the snmpconf configuration program\n#\n";
	foreach my $sect (@{$filetypes->{$ft}}) {
	    my $secthelp = 0;
	    foreach my $token (@{$sect->{'thetokens'}}) {
		if ($#{$sect->{$token}{'results'}} >= 0) {
		    if ($secthelp++ == 0) {
			print O "#" x 75,"\n# SECTION: ",
			join("\n#          ", @{$sect->{title}}), "\n#\n";
			print O "#   ", join("\n#   ",@{$sect->{description}}),
			"\n";
		    }
		    print O "\n# $token: ",
		    join("\n#   ",@{$sect->{$token}{info}}), "\n\n";
		    foreach my $result (@{$sect->{$token}{'results'}}) {
			print O "$result\n";
		    }
		}
	    }
	    print O "\n\n\n";
	}
	if ($#{$unknown{$ft}} > -1) {
	    print O "#\n# Unknown directives read in from other files by snmpconf\n#\n";
	    foreach my $unknown (@{$unknown{$ft}}) {
		print O $unknown,"\n";
	    }
	}
	close(O);
    }
}

sub get_answer {
    my ($term, $question, $regexp, $defaultval) = @_;
    $question .= " (default = $defaultval)" if (defined($defaultval) && $defaultval ne "");
    $question .= ": ";
    my $ans = $term->readline($question);
    return $defaultval if ($ans eq "" && defined($defaultval) && 
			   $defaultval ne "");
    while (!(!defined($regexp) ||
	     $regexp eq "" ||
	     $ans =~ /$regexp/)) {
	print "invalid answer!  It must match this regular expression: $regexp\n";
	$ans = $term->readline($question);
    }
    return $defaultval if ($ans eq "" && defined($defaultval) && 
			   $defaultval ne "");
    return $ans;
}
    
sub valid_answers {
    my @list;
    foreach $i (@_) {
	push @list, $i if ($i);
    }
    return "^(" . join("|",@list) . ")\$";
}

sub read_config {
    my $file = shift;
    my $filetype = shift;
    return if (!defined($filetypes{$filetype}));
    if (! -f $file) {
	warn "$file does not exist\n";
	return;
    }
    open(I,$file);
    while(<I>) {
	next if (/^\s*\#/);
	next if (/^\s*$/);
	chomp;
	my ($token, $rest) = /^\s*(\w+)\s+(.*)/;
	$token = lc($token);
	next if (defined($alllines{$_})); # drop duplicate lines
	if (defined($tokenmap{$token})) {
	    push @{$tokenmap{$token}{'results'}},$_;
	} else {
	    push @{$unknown{$filetype}},$_;
	}
	$alllines{$_}++;
    }
    close(I);
}

sub display_menu {
    my %config;

    while ($#_ > -1 && $_[0] =~ /^-/) {
	my $key = shift;
	$config{$key} = shift;
    }

    my $count=1;
    print "\n" if (!defined($config{'-dense'}));
    if ($config{'-head'}) {
	print $config{'-head'};
	print "\n" if (!defined($config{'-dense'}));
    }
    my @answers = @_;
    my @list;
    if (defined($config{'-descriptions'}) && 
	ref($config{'-descriptions'}) eq "ARRAY") {
	@list = @{$config{'-descriptions'}}
    } else {
	@list = @_;
    }
    foreach my $i (@list) {
	printf "  %2d:  $i\n", $count++ if ($i);
    }
    print "\n" if (!defined($config{'-dense'}));
    if (defined($config{'-otheranswers'})) {
	if (ref($config{'-otheranswers'}) eq 'ARRAY') {
	    print "Other options: ", join(", ",
					  @{$config{'-otheranswers'}}), "\n";
	    push @answers, @{$config{'-otheranswers'}};
	    push @answers, keys(%{$config{'-mapanswers'}});
	} else {
	    my $maxlen = 0;
	    push @answers,keys(%{$config{'-otheranswers'}});
	    foreach my $i (keys(%{$config{'-otheranswers'}})) {
		$maxlen = length($i) if (length($i) > $maxlen);
	    }
	    foreach my $i (keys(%{$config{'-otheranswers'}})) {
		printf("  %-" . $maxlen . "s: %s\n", $i, 
		       $config{'-otheranswers'}{$i});
	    }
	}
	print "\n" if (!defined($config{'-dense'}));
    }
    if ($config{'-tail'}) {
	print $config{'-tail'};
	print "\n" if (!defined($config{'-dense'}));
    }

    if (defined($config{'-question'})) {
	while(1) {
	    my $numexpr;
	    if ($config{'-multiple'}) {
		$numexpr = '[\d\s,]+|all|a|none|n';
	    } else {
		$numexpr = '\d+';
	    }
	    push @answers,"" if ($config{'-defaultvalue'});
	    $ans = get_answer($term, $config{'-question'},
			      valid_answers($numexpr,@answers),
			      $config{'-defaultvalue'});
	    if ($config{'-mapanswers'}{$ans}) {
		$ans = $config{'-mapanswers'}{$ans};
	    }

	    if ($ans =~ /^$numexpr$/) {
		if ($config{'-multiple'}) {
		    my @list = split(/\s*,\s*/,$ans);
		    my @ret;
		    $count = 0;
		    foreach my $i (@_) {
			$count++;
			if ($ans eq "all" || $ans eq "a" 
			    || grep(/^$count$/,@list)) {
			    push @ret, $i;
			}
		    }
		    return @ret;
		} else {
		    if ($ans <= 0 || $ans > $#_+1) {
			warn "invalid selection: $ans [must be 1-" .
			    ($#_+1) . "]\n";
		    } else {
			return $ans if ($config{'-numeric'});
			$count = 0;
			foreach my $i (@_) {
			    $count++;
			    if ($ans eq $count) {
				return $i;
			    }
			}
		    }
		}
	    } else {
		return $ans;
	    }
	}
    }
}

sub my_Dumper {
    if ($opts{'D'}) {
	return Dumper(@_);
    } else {
	return "\n";
    }
}

sub get_persistentDir {
    my $file = shift;
    my $result = 0;
    if (! -f $file) {
	return 0;
    }
    open(I,$file);
    while(<I>) {
	next if (/^\s*\#/);
	next if (/^\s*$/);
	chomp;
	my ($token, $rest) = /^\s*(\w+)\s+(.*)/;
        if (lc($token) eq "persistentdir") {
          $result = $rest;
        }
        next;
    }
    close(I);
    return $result;
}

# Usage:   &win32_reg_read("key", "value")
# Example: &win32_reg_read("SOFTWARE\\Net-SNMP","SNMPSHAREPATH");
# Returns: Value if found in HKCU or HCLM.  Otherwise an empty string.
sub win32_reg_read {
  my $sub_key = shift;
  my $value = shift;

  require Win32::Registry;
   
  my ($hkey, %key_values, $temp, $no_warn);
 
  # Try HKCU first
  $no_warn = $HKEY_CURRENT_USER;
  if ($HKEY_CURRENT_USER->Open($sub_key, $hkey))
  {
    $hkey->GetValues(\%key_values);   
    foreach $temp (sort keys %key_values) {
      if ($temp eq $value) {
        return $key_values{$temp}[2];
      }
    }
    $hkey->Close(); 
  }

  # Try HKLM second
  $no_warn = $HKEY_LOCAL_MACHINE;
  if ($HKEY_LOCAL_MACHINE->Open($sub_key, $hkey))
  {
    $hkey->GetValues(\%key_values);
    foreach $temp (sort keys %key_values) {
      if ($temp eq $value) {
        return $key_values{$temp}[2];
      }
    }
    $hkey->Close(); 
  }
  return "";
}

# Usage:   &my_getenv("key")
# Example: &my_getenv("SNMPSHAREPATH");
# Returns: Unix:  Environment variable value (undef if not defined)
#          Win32: HKCU\Software\Net-SNMP\(key) or
#          Win32: HKLM\Software\Net-SNMP\(key) or
#          Win32: Environment variable value (undef if not defined)
sub my_getenv {
  my $key = shift;
  
  # Unix
  if ($^O ne 'MSWin32') {
    return $ENV{$key};
  }
  # Windows
  else {
    my $temp = &win32_reg_read("SOFTWARE\\Net-SNMP","$key");
    if ($temp ne "") {
      return $temp;
    }
    else {
      return $ENV{$key};
    }
  }
}


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
17 Dec 2025 2.45 AM
root / root
0755
GET
15.837 KB
23 Apr 2022 3.13 AM
root / root
0755
Magick-config
1.426 KB
1 Apr 2025 8.10 PM
root / root
0755
MagickCore-config
1.559 KB
1 Apr 2025 8.10 PM
root / root
0755
MagickWand-config
1.56 KB
1 Apr 2025 8.10 PM
root / root
0755
Mail
408.891 KB
13 Oct 2019 7.19 AM
root / root
0755
Wand-config
1.421 KB
1 Apr 2025 8.10 PM
root / root
0755
[
53.672 KB
1 Apr 2023 3.44 PM
root / root
0755
aclocal
35.623 KB
15 Oct 2023 3.00 AM
root / root
0755
aclocal-1.16
35.623 KB
15 Oct 2023 3.00 AM
root / root
0755
addr2line
33.414 KB
7 Oct 2025 1.44 PM
root / root
0755
agentxtrap
24.539 KB
7 Oct 2025 4.19 PM
root / root
0755
animate
11.844 KB
1 Apr 2025 8.15 PM
root / root
0755
ar
61.969 KB
7 Oct 2025 1.44 PM
root / root
0755
arch
37.406 KB
1 Apr 2023 3.44 PM
root / root
0755
arpaname
11.82 KB
6 Nov 2025 2.45 PM
root / root
0755
as
889.914 KB
7 Oct 2025 1.44 PM
root / root
0755
aspell
159.5 KB
18 Apr 2022 10.10 PM
root / root
0755
at
1.012 KB
10 Oct 2022 5.23 PM
root / root
0755
atq
1.014 KB
10 Oct 2022 5.23 PM
root / root
0755
atrm
1.016 KB
10 Oct 2022 5.23 PM
root / root
0755
autoconf
14.422 KB
14 Aug 2024 2.30 AM
root / root
0755
autoheader
8.334 KB
14 Aug 2024 2.30 AM
root / root
0755
autom4te
31.427 KB
14 Aug 2024 2.30 AM
root / root
0755
automake
251.903 KB
15 Oct 2023 3.00 AM
root / root
0755
automake-1.16
251.903 KB
15 Oct 2023 3.00 AM
root / root
0755
autoreconf
20.572 KB
14 Aug 2024 2.30 AM
root / root
0755
autoscan
16.723 KB
14 Aug 2024 2.30 AM
root / root
0755
autoupdate
33.078 KB
14 Aug 2024 2.30 AM
root / root
0755
awk
669.773 KB
18 Apr 2022 10.56 PM
root / root
0755
b2sum
57.758 KB
1 Apr 2023 3.44 PM
root / root
0755
base32
41.547 KB
1 Apr 2023 3.44 PM
root / root
0755
base64
41.563 KB
1 Apr 2023 3.44 PM
root / root
0755
basename
37.492 KB
1 Apr 2023 3.44 PM
root / root
0755
bash
1.1 MB
26 Aug 2025 3.48 PM
root / root
0755
bashbug-64
7.176 KB
26 Aug 2025 3.48 PM
root / root
0755
batch
0.134 KB
10 Oct 2022 5.23 PM
root / root
0755
bison
437.719 KB
12 Oct 2019 7.28 PM
root / root
0755
bunzip2
36.859 KB
28 Jan 2025 8.38 AM
root / root
0755
bzcat
36.859 KB
28 Jan 2025 8.38 AM
root / root
0755
bzcmp
2.078 KB
28 Jan 2025 8.38 AM
root / root
0755
bzdiff
2.078 KB
28 Jan 2025 8.38 AM
root / root
0755
bzgrep
1.638 KB
28 Jan 2025 8.38 AM
root / root
0755
bzip2
36.859 KB
28 Jan 2025 8.38 AM
root / root
0755
bzip2recover
16.438 KB
28 Jan 2025 8.38 AM
root / root
0755
bzless
1.229 KB
28 Jan 2025 8.38 AM
root / root
0755
bzmore
1.229 KB
28 Jan 2025 8.38 AM
root / root
0755
c++
1.21 MB
26 Aug 2025 4.47 PM
root / root
0755
c++filt
28.891 KB
7 Oct 2025 1.44 PM
root / root
0755
c89
0.219 KB
26 Aug 2025 4.45 PM
root / root
0755
c99
0.21 KB
26 Aug 2025 4.45 PM
root / root
0755
cagefs_enter.proxied
1.031 KB
26 May 2025 6.13 PM
root / root
0755
cal
65.977 KB
6 Apr 2024 8.02 PM
root / root
0755
captoinfo
85.313 KB
15 Oct 2023 1.54 AM
root / root
0755
cat
37.539 KB
1 Apr 2023 3.44 PM
root / root
0755
catchsegv
3.206 KB
8 Dec 2025 4.36 PM
root / root
0755
cc
1.21 MB
26 Aug 2025 4.47 PM
root / root
0755
chcon
70.43 KB
1 Apr 2023 3.44 PM
root / root
0755
chgrp
66.352 KB
1 Apr 2023 3.44 PM
root / root
0755
chmod
62.289 KB
1 Apr 2023 3.44 PM
root / root
0755
chown
70.391 KB
1 Apr 2023 3.44 PM
root / root
0755
chrt
37.18 KB
6 Apr 2024 8.02 PM
root / root
0755
cksum
37.461 KB
1 Apr 2023 3.44 PM
root / root
0755
cldetect
10.345 KB
13 Nov 2025 4.52 PM
root / root
0755
clear
12.539 KB
15 Oct 2023 1.54 AM
root / root
0755
cloudlinux-awp-user
1.775 KB
29 Sep 2025 8.34 PM
root / root
0755
clwpos-user
1.775 KB
29 Sep 2025 8.34 PM
root / root
0755
cmp
103.758 KB
4 May 2020 10.15 PM
root / root
0755
col
29 KB
6 Apr 2024 8.02 PM
root / root
0755
colcrt
16.477 KB
6 Apr 2024 8.02 PM
root / root
0755
colrm
24.883 KB
6 Apr 2024 8.02 PM
root / root
0755
column
49.469 KB
6 Apr 2024 8.02 PM
root / root
0755
comm
41.633 KB
1 Apr 2023 3.44 PM
root / root
0755
compare
11.852 KB
1 Apr 2025 8.15 PM
root / root
0755
composite
11.836 KB
1 Apr 2025 8.15 PM
root / root
0755
conjure
11.836 KB
1 Apr 2025 8.15 PM
root / root
0755
convert
11.836 KB
1 Apr 2025 8.15 PM
root / root
0755
cp
148.047 KB
1 Apr 2023 3.44 PM
root / root
0755
cpan
8.174 KB
3 Jun 2025 9.32 PM
root / root
0755
cpp
1.21 MB
26 Aug 2025 4.47 PM
root / root
0755
crontab
1.488 KB
6 Apr 2024 6.40 PM
root / root
0755
crontab.cagefs
54.156 KB
5 Nov 2025 4.23 PM
root / root
0755
csplit
53.758 KB
1 Apr 2023 3.44 PM
root / root
0755
curl
230.078 KB
7 Oct 2025 1.37 PM
root / root
0755
cut
49.594 KB
1 Apr 2023 3.44 PM
root / root
0755
date
106.031 KB
1 Apr 2023 3.44 PM
root / root
0755
dbiprof
6.061 KB
25 Apr 2022 11.10 PM
root / root
0755
dd
78.047 KB
1 Apr 2023 3.44 PM
root / root
0755
delv
42.461 KB
6 Nov 2025 2.45 PM
root / root
0755
df
91.164 KB
1 Apr 2023 3.44 PM
root / root
0755
diff
268.008 KB
4 May 2020 10.15 PM
root / root
0755
diff3
128.602 KB
4 May 2020 10.15 PM
root / root
0755
dig
162.18 KB
6 Nov 2025 2.45 PM
root / root
0755
dir
139.969 KB
1 Apr 2023 3.44 PM
root / root
0755
dircolors
49.625 KB
1 Apr 2023 3.44 PM
root / root
0755
dirname
33.438 KB
1 Apr 2023 3.44 PM
root / root
0755
display
11.844 KB
1 Apr 2025 8.15 PM
root / root
0755
dnstap-read
20.43 KB
6 Nov 2025 2.45 PM
root / root
0755
du
107.102 KB
1 Apr 2023 3.44 PM
root / root
0755
echo
37.43 KB
1 Apr 2023 3.44 PM
root / root
0755
egrep
0.027 KB
11 Oct 2019 10.15 PM
root / root
0755
enc2xs
40.975 KB
13 Oct 2019 3.46 PM
root / root
0755
enchant
21.078 KB
24 Oct 2019 3.03 AM
root / root
0755
enchant-lsmod
13.094 KB
24 Oct 2019 3.03 AM
root / root
0755
env
41.43 KB
1 Apr 2023 3.44 PM
root / root
0755
eps2eps
0.624 KB
3 Jun 2025 9.48 AM
root / root
0755
eqn
232.156 KB
13 Oct 2019 9.29 PM
root / root
0755
ex
1.13 MB
12 Oct 2025 7.23 AM
root / root
0755
expand
41.664 KB
1 Apr 2023 3.44 PM
root / root
0755
expr
49.648 KB
1 Apr 2023 3.44 PM
root / root
0755
factor
86.055 KB
1 Apr 2023 3.44 PM
root / root
0755
false
33.391 KB
1 Apr 2023 3.44 PM
root / root
0755
fc-cache
0.129 KB
16 Aug 2021 6.04 PM
root / root
0755
fc-cache-64
20.352 KB
9 Oct 2021 4.02 PM
root / root
0755
fc-cat
16.352 KB
9 Oct 2021 4.02 PM
root / root
0755
fc-conflist
12.25 KB
9 Oct 2021 4.02 PM
root / root
0755
fc-list
12.25 KB
9 Oct 2021 4.02 PM
root / root
0755
fc-match
16.258 KB
9 Oct 2021 4.02 PM
root / root
0755
fc-pattern
12.258 KB
9 Oct 2021 4.02 PM
root / root
0755
fc-query
12.242 KB
9 Oct 2021 4.02 PM
root / root
0755
fc-scan
12.258 KB
9 Oct 2021 4.02 PM
root / root
0755
fc-validate
16.258 KB
9 Oct 2021 4.02 PM
root / root
0755
fgrep
0.027 KB
11 Oct 2019 10.15 PM
root / root
0755
file
24.688 KB
7 Oct 2025 1.30 PM
root / root
0755
find
223.305 KB
24 Sep 2024 9.19 AM
root / root
0755
flex
428.445 KB
12 Oct 2019 7.33 PM
root / root
0755
flex++
428.445 KB
12 Oct 2019 7.33 PM
root / root
0755
flock
33.195 KB
6 Apr 2024 8.02 PM
root / root
0755
fmt
45.57 KB
1 Apr 2023 3.44 PM
root / root
0755
fold
41.484 KB
1 Apr 2023 3.44 PM
root / root
0755
free
20.789 KB
15 Oct 2023 3.31 AM
root / root
0755
freetype-config
4.313 KB
1 Apr 2025 2.37 AM
root / root
0755
funzip
36.625 KB
3 Jun 2025 9.10 AM
root / root
0755
g++
1.21 MB
26 Aug 2025 4.47 PM
root / root
0755
gawk
669.773 KB
18 Apr 2022 10.56 PM
root / root
0755
gcc
1.21 MB
26 Aug 2025 4.47 PM
root / root
0755
gcc-ar
36.656 KB
26 Aug 2025 4.47 PM
root / root
0755
gcc-nm
36.656 KB
26 Aug 2025 4.47 PM
root / root
0755
gcc-ranlib
36.656 KB
26 Aug 2025 4.47 PM
root / root
0755
gcov
1.31 MB
26 Aug 2025 4.47 PM
root / root
0755
gcov-dump
570.961 KB
26 Aug 2025 4.47 PM
root / root
0755
gcov-tool
607.773 KB
26 Aug 2025 4.47 PM
root / root
0755
gencat
24.836 KB
8 Dec 2025 4.43 PM
root / root
0755
geoiplookup
21.891 KB
29 Nov 2019 5.06 AM
root / root
0755
geoiplookup6
21.648 KB
29 Nov 2019 5.06 AM
root / root
0755
geqn
232.156 KB
13 Oct 2019 9.29 PM
root / root
0755
getconf
32.461 KB
8 Dec 2025 4.43 PM
root / root
0755
getent
33.125 KB
8 Dec 2025 4.43 PM
root / root
0755
getopt
20.523 KB
6 Apr 2024 8.02 PM
root / root
0755
ghostscript
12.352 KB
3 Jun 2025 9.48 AM
root / root
0755
git
3.67 MB
23 Jul 2025 1.59 PM
root / root
0755
git-receive-pack
3.67 MB
23 Jul 2025 1.59 PM
root / root
0755
git-shell
2.13 MB
23 Jul 2025 1.59 PM
root / root
0755
git-upload-archive
3.67 MB
23 Jul 2025 1.59 PM
root / root
0755
git-upload-pack
3.67 MB
23 Jul 2025 1.59 PM
root / root
0755
gm
7.82 KB
28 Mar 2022 10.50 PM
root / root
0755
gmake
235.32 KB
18 Apr 2022 11.38 PM
root / root
0755
gneqn
0.887 KB
13 Oct 2019 9.29 PM
root / root
0755
gnroff
3.234 KB
13 Oct 2019 9.29 PM
root / root
0755
gpg
1.04 MB
13 Sep 2022 5.15 PM
root / root
0755
gpg-agent
419.289 KB
13 Sep 2022 5.15 PM
root / root
0755
gpg-error
34.156 KB
12 Oct 2019 7.20 PM
root / root
0755
gpg-zip
3.442 KB
13 Sep 2022 5.15 PM
root / root
0755
gpgsplit
87.016 KB
13 Sep 2022 5.15 PM
root / root
0755
gpgv
451.578 KB
13 Sep 2022 5.15 PM
root / root
0755
gpic
293.844 KB
13 Oct 2019 9.29 PM
root / root
0755
gprof
103.352 KB
7 Oct 2025 1.44 PM
root / root
0755
grep
193.633 KB
11 Oct 2019 10.15 PM
root / root
0755
groff
124.922 KB
13 Oct 2019 9.29 PM
root / root
0755
grops
191.141 KB
13 Oct 2019 9.29 PM
root / root
0755
grotty
141.898 KB
13 Oct 2019 9.29 PM
root / root
0755
groups
37.469 KB
1 Apr 2023 3.44 PM
root / root
0755
gs
12.352 KB
3 Jun 2025 9.48 AM
root / root
0755
gsnd
0.271 KB
3 Jun 2025 9.48 AM
root / root
0755
gsoelim
42.555 KB
13 Oct 2019 9.29 PM
root / root
0755
gtar
448.992 KB
26 Aug 2025 3.57 PM
root / root
0755
gtbl
154.609 KB
13 Oct 2019 9.29 PM
root / root
0755
gtroff
805.023 KB
13 Oct 2019 9.29 PM
root / root
0755
gunzip
2.29 KB
27 Apr 2022 12.49 PM
root / root
0755
gzexe
6.226 KB
27 Apr 2022 12.49 PM
root / root
0755
gzip
94.672 KB
27 Apr 2022 12.49 PM
root / root
0755
h2ph
28.693 KB
28 Jul 2025 3.08 PM
root / root
0755
h2xs
59.439 KB
28 Jul 2025 3.07 PM
root / root
0755
head
45.578 KB
1 Apr 2023 3.44 PM
root / root
0755
hexdump
57.5 KB
6 Apr 2024 8.02 PM
root / root
0755
host
142.289 KB
6 Nov 2025 2.45 PM
root / root
0755
hostid
33.406 KB
1 Apr 2023 3.44 PM
root / root
0755
hostname
21.156 KB
11 Oct 2019 8.06 PM
root / root
0755
hunspell
144.695 KB
13 Oct 2019 3.33 PM
root / root
0755
iconv
61.43 KB
8 Dec 2025 4.43 PM
root / root
0755
id
45.516 KB
1 Apr 2023 3.44 PM
root / root
0755
identify
11.844 KB
1 Apr 2025 8.15 PM
root / root
0755
idn
39.406 KB
13 Oct 2019 11.55 PM
root / root
0755
ifnames
4.031 KB
14 Aug 2024 2.30 AM
root / root
0755
import
11.836 KB
1 Apr 2025 8.15 PM
root / root
0755
infocmp
61.047 KB
15 Oct 2023 1.54 AM
root / root
0755
infotocap
85.313 KB
15 Oct 2023 1.54 AM
root / root
0755
install
156.25 KB
1 Apr 2023 3.44 PM
root / root
0755
instmodsh
4.096 KB
13 Oct 2019 3.55 PM
root / root
0755
ionice
28.984 KB
6 Apr 2024 8.02 PM
root / root
0755
ipcrm
28.992 KB
6 Apr 2024 8.02 PM
root / root
0755
ipcs
53.391 KB
6 Apr 2024 8.02 PM
root / root
0755
isosize
24.875 KB
6 Apr 2024 8.02 PM
root / root
0755
ispell
0.965 KB
18 Apr 2022 10.10 PM
root / root
0755
join
53.766 KB
1 Apr 2023 3.44 PM
root / root
0755
kill
37.273 KB
6 Apr 2024 8.02 PM
root / root
0755
ld
1.71 MB
7 Oct 2025 1.44 PM
root / root
0755
ld.bfd
1.71 MB
7 Oct 2025 1.44 PM
root / root
0755
ldd
5.313 KB
8 Dec 2025 4.36 PM
root / root
0755
less
173.758 KB
3 Jul 2024 3.10 AM
root / root
0755
lessecho
12.398 KB
3 Jul 2024 3.10 AM
root / root
0755
lesskey
21.992 KB
3 Jul 2024 3.10 AM
root / root
0755
lesspipe.sh
3.069 KB
3 Jul 2024 2.57 AM
root / root
0755
lex
428.445 KB
12 Oct 2019 7.33 PM
root / root
0755
libnetcfg
15.405 KB
28 Jul 2025 3.08 PM
root / root
0755
libtool
359.105 KB
11 Oct 2019 9.55 PM
root / root
0755
libtoolize
126.169 KB
11 Oct 2019 9.55 PM
root / root
0755
link
33.406 KB
1 Apr 2023 3.44 PM
root / root
0755
ln
70.57 KB
1 Apr 2023 3.44 PM
root / root
0755
locale
56.445 KB
8 Dec 2025 4.43 PM
root / root
0755
localedef
307.469 KB
8 Dec 2025 4.43 PM
root / root
0755
logger
49.984 KB
6 Apr 2024 8.02 PM
root / root
0755
login
40.961 KB
6 Apr 2024 8.02 PM
root / root
0755
logname
33.422 KB
1 Apr 2023 3.44 PM
root / root
0755
look
16.453 KB
6 Apr 2024 8.02 PM
root / root
0755
ls
139.969 KB
1 Apr 2023 3.44 PM
root / root
0755
m4
185.563 KB
11 Oct 2019 9.41 PM
root / root
0755
mail
408.891 KB
13 Oct 2019 7.19 AM
root / root
0755
mailx
408.891 KB
13 Oct 2019 7.19 AM
root / root
0755
make
235.32 KB
18 Apr 2022 11.38 PM
root / root
0755
make-dummy-cert
0.596 KB
9 Oct 2024 8.39 PM
root / root
0755
mariadb
4.34 MB
26 Oct 2025 12.47 AM
root / root
0755
mariadb-access
109.337 KB
26 Oct 2025 12.42 AM
root / root
0755
mariadb-admin
3.88 MB
26 Oct 2025 12.47 AM
root / root
0755
mariadb-binlog
4.14 MB
26 Oct 2025 12.47 AM
root / root
0755
mariadb-check
3.88 MB
26 Oct 2025 12.47 AM
root / root
0755
mariadb-conv
3.59 MB
26 Oct 2025 12.47 AM
root / root
0755
mariadb-convert-table-format
4.122 KB
26 Oct 2025 12.42 AM
root / root
0755
mariadb-dump
3.96 MB
26 Oct 2025 12.47 AM
root / root
0755
mariadb-dumpslow
8.049 KB
26 Oct 2025 12.42 AM
root / root
0755
mariadb-embedded
22.59 MB
26 Oct 2025 12.47 AM
root / root
0755
mariadb-find-rows
3.213 KB
26 Oct 2025 12.42 AM
root / root
0755
mariadb-hotcopy
34.153 KB
26 Oct 2025 12.42 AM
root / root
0755
mariadb-import
3.87 MB
26 Oct 2025 12.47 AM
root / root
0755
mariadb-plugin
3.57 MB
26 Oct 2025 12.47 AM
root / root
0755
mariadb-secure-installation
13.486 KB
26 Oct 2025 12.42 AM
root / root
0755
mariadb-setpermission
17.556 KB
26 Oct 2025 12.42 AM
root / root
0755
mariadb-show
3.87 MB
26 Oct 2025 12.47 AM
root / root
0755
mariadb-slap
3.89 MB
26 Oct 2025 12.47 AM
root / root
0755
mariadb-tzinfo-to-sql
3.57 MB
26 Oct 2025 12.47 AM
root / root
0755
mariadb-waitpid
3.55 MB
26 Oct 2025 12.47 AM
root / root
0755
mcookie
33.258 KB
6 Apr 2024 8.02 PM
root / root
0755
md5sum
45.617 KB
1 Apr 2023 3.44 PM
root / root
0755
mesg
16.359 KB
6 Apr 2024 8.02 PM
root / root
0755
mkdir
82.789 KB
1 Apr 2023 3.44 PM
root / root
0755
mkfifo
66.563 KB
1 Apr 2023 3.44 PM
root / root
0755
mknod
70.555 KB
1 Apr 2023 3.44 PM
root / root
0755
mktemp
45.734 KB
1 Apr 2023 3.44 PM
root / root
0755
mogrify
11.836 KB
1 Apr 2025 8.15 PM
root / root
0755
montage
11.836 KB
1 Apr 2025 8.15 PM
root / root
0755
more
44.938 KB
6 Apr 2024 8.02 PM
root / root
0755
msql2mysql
1.412 KB
26 Oct 2025 12.42 AM
root / root
0755
mv
144.031 KB
1 Apr 2023 3.44 PM
root / root
0755
my_print_defaults
3.56 MB
26 Oct 2025 12.47 AM
root / root
0755
mysql
4.34 MB
26 Oct 2025 12.47 AM
root / root
0755
mysql_config
4.514 KB
26 Oct 2025 12.42 AM
root / root
0755
mysql_find_rows
3.213 KB
26 Oct 2025 12.42 AM
root / root
0755
mysql_waitpid
3.55 MB
26 Oct 2025 12.47 AM
root / root
0755
mysqlaccess
109.337 KB
26 Oct 2025 12.42 AM
root / root
0755
mysqladmin
3.88 MB
26 Oct 2025 12.47 AM
root / root
0755
mysqlbinlog
4.14 MB
26 Oct 2025 12.47 AM
root / root
0755
mysqlcheck
3.88 MB
26 Oct 2025 12.47 AM
root / root
0755
mysqldump
3.96 MB
26 Oct 2025 12.47 AM
root / root
0755
mysqlimport
3.87 MB
26 Oct 2025 12.47 AM
root / root
0755
mysqlshow
3.87 MB
26 Oct 2025 12.47 AM
root / root
0755
mytop
71.954 KB
26 Oct 2025 12.42 AM
root / root
0755
namei
33.102 KB
6 Apr 2024 8.02 PM
root / root
0755
nano
247.938 KB
24 Sep 2024 9.16 AM
root / root
0755
neqn
0.887 KB
13 Oct 2019 9.29 PM
root / root
0755
net-snmp-create-v3-user
3.147 KB
7 Oct 2025 4.19 PM
root / root
0755
nice
37.414 KB
1 Apr 2023 3.44 PM
root / root
0755
nl
45.625 KB
1 Apr 2023 3.44 PM
root / root
0755
nm
50.375 KB
7 Oct 2025 1.44 PM
root / root
0755
nohup
37.484 KB
1 Apr 2023 3.44 PM
root / root
0755
nproc
37.484 KB
1 Apr 2023 3.44 PM
root / root
0755
nroff
3.234 KB
13 Oct 2019 9.29 PM
root / root
0755
nslookup
146.258 KB
6 Nov 2025 2.45 PM
root / root
0755
nsupdate
73.055 KB
6 Nov 2025 2.45 PM
root / root
0755
numfmt
65.711 KB
1 Apr 2023 3.44 PM
root / root
0755
objcopy
240.07 KB
7 Oct 2025 1.44 PM
root / root
0755
objdump
419.758 KB
7 Oct 2025 1.44 PM
root / root
0755
od
73.883 KB
1 Apr 2023 3.44 PM
root / root
0755
openssl
745.953 KB
9 Oct 2024 8.39 PM
root / root
0755
pango-list
11.875 KB
8 Oct 2021 10.22 PM
root / root
0755
pango-view
57.438 KB
8 Oct 2021 10.22 PM
root / root
0755
passwd
1.02 KB
19 Apr 2022 5.59 AM
root / root
0755
paste
37.461 KB
1 Apr 2023 3.44 PM
root / root
0755
patch
206.461 KB
1 Jun 2020 10.14 PM
root / root
0755
pathchk
37.406 KB
1 Apr 2023 3.44 PM
root / root
0755
pdf2dsc
0.682 KB
3 Jun 2025 9.48 AM
root / root
0755
pdf2ps
0.888 KB
3 Jun 2025 9.48 AM
root / root
0755
perl
12.43 KB
28 Jul 2025 3.07 PM
root / root
0755
perl5.26.3
12.43 KB
28 Jul 2025 3.07 PM
root / root
0755
perlbug
44.393 KB
28 Jul 2025 3.08 PM
root / root
0755
perldoc
0.115 KB
13 Oct 2019 6.53 PM
root / root
0755
perlivp
10.56 KB
28 Jul 2025 3.07 PM
root / root
0755
perlml
6.609 KB
3 Oct 2025 2.40 AM
root / root
0755
perlthanks
44.393 KB
28 Jul 2025 3.08 PM
root / root
0755
pgrep
28.844 KB
15 Oct 2023 3.31 AM
root / root
0755
php
0.915 KB
3 Apr 2025 6.08 PM
root / root
0755
pic
293.844 KB
13 Oct 2019 9.29 PM
root / root
0755
piconv
8.077 KB
13 Oct 2019 3.46 PM
root / root
0755
ping
66.125 KB
15 Oct 2023 12.19 AM
root / root
0755
pinky
41.531 KB
1 Apr 2023 3.44 PM
root / root
0755
pkg-config
40.039 KB
13 Oct 2019 1.57 PM
root / root
0755
pkgconf
40.039 KB
13 Oct 2019 1.57 PM
root / root
0755
pkill
28.844 KB
15 Oct 2023 3.31 AM
root / root
0755
pl2pm
4.427 KB
28 Jul 2025 3.08 PM
root / root
0755
pmap
32.781 KB
15 Oct 2023 3.31 AM
root / root
0755
pod2html
4.037 KB
28 Jul 2025 3.08 PM
root / root
0755
pod2man
14.682 KB
13 Oct 2019 9.12 PM
root / root
0755
pod2text
10.55 KB
13 Oct 2019 9.12 PM
root / root
0755
pod2usage
3.855 KB
13 Oct 2019 6.57 PM
root / root
0755
podchecker
3.572 KB
13 Oct 2019 6.46 PM
root / root
0755
podselect
2.468 KB
13 Oct 2019 6.52 PM
root / root
0755
post-grohtml
238.727 KB
13 Oct 2019 9.29 PM
root / root
0755
pr
82.227 KB
1 Apr 2023 3.44 PM
root / root
0755
pre-grohtml
130.555 KB
13 Oct 2019 9.29 PM
root / root
0755
precat
5.523 KB
18 Apr 2022 10.10 PM
root / root
0755
preunzip
5.523 KB
18 Apr 2022 10.10 PM
root / root
0755
prezip
5.523 KB
18 Apr 2022 10.10 PM
root / root
0755
prezip-bin
11.977 KB
18 Apr 2022 10.10 PM
root / root
0755
printenv
33.398 KB
1 Apr 2023 3.44 PM
root / root
0755
printf
53.641 KB
1 Apr 2023 3.44 PM
root / root
0755
prove
13.244 KB
13 Oct 2019 7.42 PM
root / root
0755
ps
134.75 KB
15 Oct 2023 3.31 AM
root / root
0755
ps2ascii
0.616 KB
3 Jun 2025 9.48 AM
root / root
0755
ps2epsi
2.688 KB
3 Jun 2025 9.48 AM
root / root
0755
ps2pdf
0.266 KB
3 Jun 2025 9.48 AM
root / root
0755
ps2pdf12
0.21 KB
3 Jun 2025 9.48 AM
root / root
0755
ps2pdf13
0.21 KB
3 Jun 2025 9.48 AM
root / root
0755
ps2pdf14
0.21 KB
3 Jun 2025 9.48 AM
root / root
0755
ps2pdfwr
1.071 KB
3 Jun 2025 9.48 AM
root / root
0755
ps2ps
0.632 KB
3 Jun 2025 9.48 AM
root / root
0755
ps2ps2
0.653 KB
3 Jun 2025 9.48 AM
root / root
0755
ptx
78.07 KB
1 Apr 2023 3.44 PM
root / root
0755
pwd
37.5 KB
1 Apr 2023 3.44 PM
root / root
0755
pwdx
12.68 KB
15 Oct 2023 3.31 AM
root / root
0755
python2
7.844 KB
10 Apr 2024 11.58 AM
root / root
0755
python2.7
7.844 KB
10 Apr 2024 11.58 AM
root / root
0755
python3
11.594 KB
26 Aug 2025 4.08 PM
root / root
0755
python3.6
11.594 KB
26 Aug 2025 4.08 PM
root / root
0755
python3.6m
11.594 KB
26 Aug 2025 4.08 PM
root / root
0755
ranlib
61.969 KB
7 Oct 2025 1.44 PM
root / root
0755
raw
16.492 KB
6 Apr 2024 8.02 PM
root / root
0755
readelf
624.539 KB
7 Oct 2025 1.44 PM
root / root
0755
readlink
45.961 KB
1 Apr 2023 3.44 PM
root / root
0755
realpath
50.016 KB
1 Apr 2023 3.44 PM
root / root
0755
recode
47.031 KB
18 Oct 2019 10.18 PM
root / root
0755
rename
16.5 KB
6 Apr 2024 8.02 PM
root / root
0755
renew-dummy-cert
0.708 KB
9 Oct 2024 8.39 PM
root / root
0755
renice
16.461 KB
6 Apr 2024 8.02 PM
root / root
0755
replace
3.54 MB
26 Oct 2025 12.47 AM
root / root
0755
reset
24.758 KB
15 Oct 2023 1.54 AM
root / root
0755
rev
12.453 KB
6 Apr 2024 8.02 PM
root / root
0755
rm
70.469 KB
1 Apr 2023 3.44 PM
root / root
0755
rmdir
45.539 KB
1 Apr 2023 3.44 PM
root / root
0755
rnano
247.938 KB
24 Sep 2024 9.16 AM
root / root
0755
run-with-aspell
0.083 KB
18 Apr 2022 10.10 PM
root / root
0755
runcon
37.445 KB
1 Apr 2023 3.44 PM
root / root
0755
rvi
1.13 MB
12 Oct 2025 7.23 AM
root / root
0755
rview
1.13 MB
12 Oct 2025 7.23 AM
root / root
0755
rvim
2.93 MB
12 Oct 2025 7.23 AM
root / root
0755
scalar
2.18 MB
23 Jul 2025 1.59 PM
root / root
0755
scl
36.867 KB
1 Apr 2023 11.10 PM
root / root
0755
scl_enabled
0.252 KB
25 Aug 2017 3.23 PM
root / root
0755
scl_source
1.819 KB
1 Apr 2023 11.10 PM
root / root
0755
scp
102.844 KB
30 Sep 2025 5.44 PM
root / root
0755
screen
482.461 KB
5 May 2021 5.04 PM
root / screen
0755
script
36.789 KB
6 Apr 2024 8.02 PM
root / root
0755
sdiff
105.328 KB
4 May 2020 10.15 PM
root / root
0755
sed
115.477 KB
19 Apr 2022 4.41 AM
root / root
0755
selectorctl
7.629 KB
3 Nov 2025 9.48 PM
root / root
0755
seq
53.523 KB
1 Apr 2023 3.44 PM
root / root
0755
setsid
16.375 KB
6 Apr 2024 8.02 PM
root / root
0755
setterm
45.117 KB
6 Apr 2024 8.02 PM
root / root
0755
sftp
159.734 KB
30 Sep 2025 5.44 PM
root / root
0755
sh
1.1 MB
26 Aug 2025 3.48 PM
root / root
0755
sha1sum
45.625 KB
1 Apr 2023 3.44 PM
root / root
0755
sha224sum
45.656 KB
1 Apr 2023 3.44 PM
root / root
0755
sha256sum
45.656 KB
1 Apr 2023 3.44 PM
root / root
0755
sha384sum
45.664 KB
1 Apr 2023 3.44 PM
root / root
0755
sha512sum
45.664 KB
1 Apr 2023 3.44 PM
root / root
0755
shred
61.938 KB
1 Apr 2023 3.44 PM
root / root
0755
shuf
58.164 KB
1 Apr 2023 3.44 PM
root / root
0755
size
33.25 KB
7 Oct 2025 1.44 PM
root / root
0755
skill
28.797 KB
15 Oct 2023 3.31 AM
root / root
0755
slabtop
20.844 KB
15 Oct 2023 3.31 AM
root / root
0755
sleep
37.469 KB
1 Apr 2023 3.44 PM
root / root
0755
snice
28.797 KB
15 Oct 2023 3.31 AM
root / root
0755
snmpconf
25.44 KB
7 Oct 2025 4.19 PM
root / root
0755
soelim
42.555 KB
13 Oct 2019 9.29 PM
root / root
0755
sort
123.547 KB
1 Apr 2023 3.44 PM
root / root
0755
spell
0.119 KB
18 Apr 2022 10.10 PM
root / root
0755
splain
18.701 KB
28 Jul 2025 3.08 PM
root / root
0755
split
58.125 KB
1 Apr 2023 3.44 PM
root / root
0755
sprof
28.672 KB
8 Dec 2025 4.43 PM
root / root
0755
sqlite3
1.28 MB
29 Jul 2025 8.27 AM
root / root
0755
ssh
757.516 KB
30 Sep 2025 5.44 PM
root / root
0755
ssh-add
346.125 KB
30 Sep 2025 5.44 PM
root / root
0755
ssh-agent
325.555 KB
30 Sep 2025 5.44 PM
root / root
0755
ssh-copy-id
10.443 KB
30 Sep 2025 5.44 PM
root / root
0755
ssh-keygen
427.156 KB
30 Sep 2025 5.44 PM
root / root
0755
ssh-keyscan
428.57 KB
30 Sep 2025 5.44 PM
root / root
0755
stat
86.234 KB
1 Apr 2023 3.44 PM
root / root
0755
stdbuf
49.578 KB
1 Apr 2023 3.44 PM
root / root
0755
strace
1.94 MB
28 Jan 2025 8.32 AM
root / root
0755
stream
11.828 KB
1 Apr 2025 8.15 PM
root / root
0755
strings
37.43 KB
7 Oct 2025 1.44 PM
root / root
0755
strip
240.102 KB
7 Oct 2025 1.44 PM
root / root
0755
stty
77.68 KB
1 Apr 2023 3.44 PM
root / root
0755
sum
45.609 KB
1 Apr 2023 3.44 PM
root / root
0755
sync
37.43 KB
1 Apr 2023 3.44 PM
root / root
0755
tabs
16.555 KB
15 Oct 2023 1.54 AM
root / root
0755
tac
41.57 KB
1 Apr 2023 3.44 PM
root / root
0755
tail
74.203 KB
1 Apr 2023 3.44 PM
root / root
0755
tar
448.992 KB
26 Aug 2025 3.57 PM
root / root
0755
taskset
37.25 KB
6 Apr 2024 8.02 PM
root / root
0755
tbl
154.609 KB
13 Oct 2019 9.29 PM
root / root
0755
tclsh
9.039 KB
12 Oct 2019 7.25 AM
root / root
0755
tclsh8.6
9.039 KB
12 Oct 2019 7.25 AM
root / root
0755
tee
41.555 KB
1 Apr 2023 3.44 PM
root / root
0755
test
53.625 KB
1 Apr 2023 3.44 PM
root / root
0755
tic
85.313 KB
15 Oct 2023 1.54 AM
root / root
0755
timeout
41.93 KB
1 Apr 2023 3.44 PM
root / root
0755
tload
16.758 KB
15 Oct 2023 3.31 AM
root / root
0755
tmpwatch
35.469 KB
12 Oct 2019 6.32 PM
root / root
0755
toe
16.453 KB
15 Oct 2023 1.54 AM
root / root
0755
top
121.695 KB
15 Oct 2023 3.31 AM
root / root
0755
touch
94.016 KB
1 Apr 2023 3.44 PM
root / root
0755
tput
24.797 KB
15 Oct 2023 1.54 AM
root / root
0755
tr
49.703 KB
1 Apr 2023 3.44 PM
root / root
0755
troff
805.023 KB
13 Oct 2019 9.29 PM
root / root
0755
true
33.398 KB
1 Apr 2023 3.44 PM
root / root
0755
truncate
41.438 KB
1 Apr 2023 3.44 PM
root / root
0755
tset
24.758 KB
15 Oct 2023 1.54 AM
root / root
0755
tsort
41.57 KB
1 Apr 2023 3.44 PM
root / root
0755
tty
33.391 KB
1 Apr 2023 3.44 PM
root / root
0755
tzselect
15.01 KB
8 Dec 2025 4.36 PM
root / root
0755
uapi
1.016 KB
11 Mar 2026 9.23 PM
root / root
0755
ul
20.578 KB
6 Apr 2024 8.02 PM
root / root
0755
uname
37.406 KB
1 Apr 2023 3.44 PM
root / root
0755
unexpand
45.68 KB
1 Apr 2023 3.44 PM
root / root
0755
uniq
49.719 KB
1 Apr 2023 3.44 PM
root / root
0755
unlink
33.414 KB
1 Apr 2023 3.44 PM
root / root
0755
unzip
201.883 KB
3 Jun 2025 9.10 AM
root / root
0755
unzipsfx
101.477 KB
3 Jun 2025 9.10 AM
root / root
0755
uptime
12.586 KB
15 Oct 2023 3.31 AM
root / root
0755
users
37.469 KB
1 Apr 2023 3.44 PM
root / root
0755
utmpdump
28.656 KB
6 Apr 2024 8.02 PM
root / root
0755
vdir
139.969 KB
1 Apr 2023 3.44 PM
root / root
0755
vi
1.13 MB
12 Oct 2025 7.23 AM
root / root
0755
view
1.13 MB
12 Oct 2025 7.23 AM
root / root
0755
vim
2.93 MB
12 Oct 2025 7.23 AM
root / root
0755
vimdiff
2.93 MB
12 Oct 2025 7.23 AM
root / root
0755
vimtutor
2.071 KB
12 Oct 2025 7.23 AM
root / root
0755
vmstat
36.789 KB
15 Oct 2023 3.31 AM
root / root
0755
watch
29.188 KB
15 Oct 2023 3.31 AM
root / root
0755
wc
49.719 KB
1 Apr 2023 3.44 PM
root / root
0755
wget
521.414 KB
14 Aug 2024 5.22 AM
root / root
0755
whereis
29.273 KB
6 Apr 2024 8.02 PM
root / root
0755
which
29.383 KB
26 Aug 2025 3.54 PM
root / root
0755
who
53.68 KB
1 Apr 2023 3.44 PM
root / root
0755
whoami
33.414 KB
1 Apr 2023 3.44 PM
root / root
0755
word-list-compress
11.992 KB
18 Apr 2022 10.10 PM
root / root
0755
x86_64-redhat-linux-c++
1.21 MB
26 Aug 2025 4.47 PM
root / root
0755
x86_64-redhat-linux-g++
1.21 MB
26 Aug 2025 4.47 PM
root / root
0755
x86_64-redhat-linux-gcc
1.21 MB
26 Aug 2025 4.47 PM
root / root
0755
x86_64-redhat-linux-gcc-8
1.21 MB
26 Aug 2025 4.47 PM
root / root
0755
xargs
74.109 KB
24 Sep 2024 9.19 AM
root / root
0755
xmlcatalog
20.375 KB
6 Aug 2025 8.59 PM
root / root
0755
xmllint
73.367 KB
6 Aug 2025 8.59 PM
root / root
0755
xmlwf
36.961 KB
20 Nov 2025 2.31 PM
root / root
0755
xsltproc
28.469 KB
26 Aug 2025 3.55 PM
root / root
0755
xsubpp
4.961 KB
13 Oct 2019 3.58 PM
root / root
0755
xxd
20.539 KB
12 Oct 2025 7.23 AM
root / root
0755
yes
33.445 KB
1 Apr 2023 3.44 PM
root / root
0755
zcat
1.937 KB
27 Apr 2022 12.49 PM
root / root
0755
zcmp
1.638 KB
27 Apr 2022 12.49 PM
root / root
0755
zdiff
5.741 KB
27 Apr 2022 12.49 PM
root / root
0755
zegrep
0.028 KB
27 Apr 2022 12.49 PM
root / root
0755
zfgrep
0.028 KB
27 Apr 2022 12.49 PM
root / root
0755
zforce
2.031 KB
27 Apr 2022 12.49 PM
root / root
0755
zgrep
7.404 KB
27 Apr 2022 12.49 PM
root / root
0755
zip
229 KB
11 Oct 2019 8.11 PM
root / root
0755
zipcloak
102.906 KB
11 Oct 2019 8.11 PM
root / root
0755
zipgrep
2.884 KB
11 Oct 2008 12.40 AM
root / root
0755
zipinfo
201.883 KB
3 Jun 2025 9.10 AM
root / root
0755
zipnote
97.758 KB
11 Oct 2019 8.11 PM
root / root
0755
zipsplit
97.758 KB
11 Oct 2019 8.11 PM
root / root
0755
zless
2.153 KB
27 Apr 2022 12.49 PM
root / root
0755
zmore
1.798 KB
27 Apr 2022 12.49 PM
root / root
0755
znew
4.445 KB
27 Apr 2022 12.49 PM
root / root
0755
zsoelim
42.555 KB
13 Oct 2019 9.29 PM
root / root
0755

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF