!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 4.27 GB of 27.03 GB (15.79%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     index.cgi (3.28 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# Show all scheduled backups, and a form for doing an immediate one

use strict;
use warnings;
require './backup-config-lib.pl';
our (%text, %in, %config);
&ReadParse();

&ui_print_header(undef, $text{'index_title'}, "", undef, 1, 1);
my @mods = &list_backup_modules();
if (!@mods) {
    &ui_print_endpage($text{'index_emods'});
    }
my %mods = map { $_->{'dir'}, $_ } @mods;

# Show tabs
my @tabs = ( [ "backup", $text{'index_tabbackup'}, "index.cgi?mode=backup" ],
         [ "sched", $text{'index_tabsched'}, "index.cgi?mode=sched" ],
         [ "restore", $text{'index_tabrestore'}, "index.cgi?mode=restore" ],
       );
print &ui_tabs_start(\@tabs, "tab", $in{'mode'} || "backup", 1);

print &ui_tabs_start_tab("tab", "sched");
my @backups = &list_backups();
my $using_strftime = 0;
if (@backups) {
    # Show all scheduled backups
    print &ui_link("edit.cgi?new=1", $text{'index_add'});
    print "<br>\n";
    print &ui_columns_start([ $text{'index_dest'},
                      $text{'index_mods'},
                      $text{'index_sched'} ], 100);
    foreach my $b (@backups) {
        my @m = map { $mods{$_}->{'desc'} }
                split(/\s+/, $b->{'mods'});
        print &ui_columns_row(
            [ &ui_link("edit.cgi?id=".$b->{'id'},
             &nice_dest($b->{'dest'}) ),
              @m > 5 ? &text('index_count', scalar(@m))
                 : join(", ", @m),
              $b->{'sched'} ? &text('index_when',
                &cron::when_text($b)) : $text{'no'} ]);
        $using_strftime++ if ($b->{'dest'} =~ /%/);
        }
    print &ui_columns_end();
    }
else {
    print "<b>$text{'index_none'}</b><p>\n";
    }
print &ui_link("edit.cgi?new=1", $text{'index_add'});
print "<p>\n";
if ($using_strftime && !$config{'date_subs'}) {
    print "<font color=#ff0000><b>$text{'index_nostrftime'}",
          "</b></font><p>\n";
    }
print &ui_tabs_end_tab();

# Show immediate form
print &ui_tabs_start_tab("tab", "backup");
print &ui_form_start("backup.cgi/backup.tgz", "post");
print &ui_table_start($text{'index_header'}, undef, 2);

my @dmods = split(/\s+/, $config{'mods'} || "");
print &ui_table_row($text{'edit_mods'},
            &ui_select("mods", \@dmods,
               [ map { [ $_->{'dir'}, $_->{'desc'} ] } @mods ],
               10, 1));

print &ui_table_row($text{'edit_dest'},
            &show_backup_destination("dest", $config{'dest'}, 2));

print &ui_table_row($text{'edit_what'},
            &show_backup_what("what", $config{'configfile'},
                          $config{'nofiles'}));

print &ui_table_end();
print &ui_form_end([ [ 'backup', $text{'index_now'} ] ]);

print &ui_tabs_end_tab();

# Show restore form
print &ui_tabs_start_tab("tab", "restore");
print &ui_form_start("restore.cgi", "form-data");
print &ui_table_start($text{'index_header2'}, undef, 2);

print &ui_table_row($text{'edit_mods2'},
            &ui_select("mods",
               [ map { $_->{'dir'} } @mods ],
               [ map { [ $_->{'dir'}, $_->{'desc'} ] } @mods ],
               5, 1));

print &ui_table_row($text{'edit_other2'},
            &ui_textarea("others", undef, 3, 50));

print &ui_table_row($text{'edit_dest2'},
            &show_backup_destination("src", $config{'dest'}, 1));

print &ui_table_row($text{'index_apply'},
            &ui_yesno_radio("apply", $config{'apply'} ? 1 : 0));

print &ui_table_row($text{'index_test'},
            &ui_yesno_radio("test", 0));

print &ui_table_end();
print &ui_form_end([ [ 'restore', $text{'index_now2'} ] ]);

print &ui_tabs_end_tab();
print &ui_tabs_end(1);

&ui_print_footer("/", $text{'index'});


:: 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.0033 ]--