!C99Shell v. 1.0 pre-release build #16!

Software: Apache/2.0.54 (Fedora). PHP/5.0.4 

uname -a: Linux mina-info.me 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 

uid=48(apache) gid=48(apache) groups=48(apache)
context=system_u:system_r:httpd_sys_script_t
 

Safe-mode: OFF (not secure)

/usr/libexec/webmin/backup-config/   drwxr-xr-x
Free 5.17 GB of 27.03 GB (19.13%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     backup.pl (2.06 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# Execute a backup on schedule

use strict;
use warnings;
our (%text, %config, $no_acl_check);
$no_acl_check++;
require './backup-config-lib.pl';
&foreign_require("mailboxes", "mailboxes-lib.pl");

# Get the backup
my $backup = &get_backup($ARGV[0]);
$backup || die "Failed to find backup $ARGV[0]";

# Run the pre-backup command, if any
my $err;
my $premsg = "";
if ($backup->{'pre'} =~ /\S/) {
    my $preout = &backquote_command("($backup->{'pre'}) 2>&1 </dev/null");
    $premsg = &text('email_pre', $backup->{'pre'})."\n".
          $preout."\n";
    if ($?) {
        $err = $text{'email_prefailed'};
        }
    }

# Do it
my @mods = split(/\s+/, $backup->{'mods'});
my $size;
if (!$err) {
    $err = &execute_backup(\@mods, $backup->{'dest'}, \$size, undef,
                   $backup->{'configfile'}, $backup->{'nofiles'},
                   [ split(/\t+/, $backup->{'others'}) ]);
    }

# Run the post-backup command, if any
my $postmsg = "";
if (!$err && $backup->{'post'} =~ /\S/) {
    my $postout = &backquote_command("($backup->{'post'}) 2>&1 </dev/null");
    $postmsg = "\n".
          &text('email_post', $backup->{'post'})."\n".
          $postout."\n";
    }

# Send off the results
if (($err || $backup->{'emode'} == 0) && $backup->{'email'}) {
    my $mlist;
    foreach my $m (@mods) {
        my %minfo = &get_module_info($m);
        $mlist .= "    $minfo{'desc'}\n";
        }
    my $host = &get_system_hostname();
    my $nice = &nice_dest($backup->{'dest'}, 1);
    $nice =~ s/<[^>]+>//g;
    my $msg;
    my $subject;
    if ($err) {
        $err =~ s/<[^>]+>//g;
        $msg = $premsg.
               $text{'email_mods'}."\n".
               $mlist.
               "\n".
               &text('email_failed', $nice)."\n\n".
               "    $err\n";
        $subject = &text('email_sfailed', $host);
        }
    else {
        $msg = $premsg.
               $text{'email_mods'}."\n".
               $mlist.
               "\n".
               &text('email_ok', $nice)."\n".
               &text('email_final', &nice_size($size))."\n".
               $postmsg;
        $subject = &text('email_sok', $host);
        }
    &mailboxes::send_text_mail($config{'from_addr'} ||
                   &mailboxes::get_from_address(),
                   $backup->{'email'},
                   undef,
                   $subject,
                   $msg);
    }


:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

--[ c99shell v. 1.0 pre-release build #16 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.003 ]--