!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/usr/share/webmin/virtual-server/   drwxrwxr-x
Free 28.39 GB of 117.98 GB (24.06%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     list-backup-keys.pl (1.89 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl

=head1 list-backup-keys.pl

Lists all available backup encryption keys.

When run with no flags, this command outputs a table of backup keys for
use by scheduled and manula backups.  To get a more parsable format with full
details for each shell, use the C<--multiline> parameter. Or to only output
key IDs, use the C<--id-only> flag.

=cut

package virtual_server;
if (!$module_name) {
    $main::no_acl_check++;
    $ENV{'WEBMIN_CONFIG'} ||= "/etc/webmin";
    $ENV{'WEBMIN_VAR'} ||= "/var/webmin";
    if ($0 =~ /^(.*)\/[^\/]+$/) {
        chdir($pwd = $1);
        }
    else {
        chop($pwd = `pwd`);
        }
    $0 = "$pwd/list-backup-keys.pl";
    require './virtual-server-lib.pl';
    $< == 0 || die "list-backup-keys.pl must be run as root";
    }

# Parse command-line args
while(@ARGV > 0) {
    local $a = shift(@ARGV);
    if ($a eq "--multiline") {
        $multi = 1;
        }
    elsif ($a eq "--id-only") {
        $idonly = 1;
        }
    elsif ($a eq "--help") {
        &usage();
        }
    else {
        &usage("Unknown parameter $a");
        }
    }

@keys = &list_backup_keys();
if ($multi) {
    # Show full details
    foreach $key (@keys) {
        print $key->{'id'},"\n";
        print "    Description: ",$key->{'desc'},"\n";
        if ($key->{'owner'}) {
            print "    Owner: ",$key->{'owner'},"\n";
            }
        print "    GPG key ID: ",$key->{'key'},"\n";
        print "    Created: ",&make_date($key->{'created'}),"\n";
        }
    }
elsif ($idonly) {
    # Just IDs
    foreach $key (@keys) {
        print $key->{'id'},"\n";
        }
    }
else {
    # One per line
    $fmt = "%-20.20s %-40.40s %-17.17s\n";
    printf $fmt, "Key ID", "Description", "Owner";
    printf $fmt, ("-" x 20), ("-" x 40), ("-" x 17);
    foreach $key (@keys) {
        printf $fmt, $key->{'id'},
                 $key->{'desc'},
                 $key->{'owner'} || "root";
        }
    }

sub usage
{
print "$_[0]\n\n" if ($_[0]);
print "Lists all available backup encryption keys.\n";
print "\n";
print "virtualmin list-backup-keys [--multiline]\n";
print "                            [--id-only]\n";
exit(1);
}


:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.004 ]--