!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/bacula-backup/   drwxr-xr-x
Free 49.54 GB of 127.8 GB (38.76%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     edit_pool.cgi (2.62 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# Show the details of one file pool daemon

require './bacula-backup-lib.pl';
&ReadParse();
$conf = &get_director_config();
@pools = &find("Pool", $conf);

if ($in{'new'}) {
    &ui_print_header(undef, $text{'pool_title1'}, "");
    $mems = [ { 'name' => 'Pool Type',
            'value' => 'Backup' },
          { 'name' => 'Recycle',
            'value' => 'yes' },
          { 'name' => 'AutoPrune',
            'value' => 'yes' },
          { 'name' => 'Volume Retention',
            'value' => '365 days' },
        ];
    if (&get_bacula_version_cached() < 2) {
        push(@$mems,
          { 'name' => 'Accept Any Volume',
            'value' => 'yes' });
        }
    $pool = { 'members' => $mems };
    }
else {
    &ui_print_header(undef, $text{'pool_title2'}, "");
    $pool = &find_by("Name", $in{'name'}, \@pools);
    $pool || &error($text{'pool_egone'});
    $mems = $pool->{'members'};
    }

# Show details
print &ui_form_start("save_pool.cgi", "post");
print &ui_hidden("new", $in{'new'}),"\n";
print &ui_hidden("old", $in{'name'}),"\n";
print &ui_table_start($text{'pool_header'}, "width=100%", 4);

# Pool name
print &ui_table_row($text{'pool_name'},
    &ui_textbox("name", $name=&find_value("Name", $mems), 40), 3);

# Pool type
print &ui_table_row($text{'pool_type'},
    &ui_select("type", $type=&find_value("Pool Type", $mems),
            [ map { [ $_, $_ =~ /^\*(.*)$/ ? $1 : $_ ] }
             @pool_types ], 1, 0, 1));

# Maximum Volume Jobs
$max = &find_value("Maximum Volume Jobs", $mems);
print &ui_table_row($text{'pool_max'},
        &ui_radio("maxmode", $max == 0 ? 0 : 1,
              [ [ 0, $text{'pool_unlimited'} ],
            [ 1, &ui_textbox('max', $max == 0 ? "" : $max, 6) ] ]));

# Retention period
$reten = &find_value("Volume Retention", $mems);
print &ui_table_row($text{'pool_reten'},
            &show_period_input("reten", $reten));

# Various yes/no options
print &ui_table_row($text{'pool_recycle'},
            &bacula_yesno("recycle", "Recycle", $mems));
print &ui_table_row($text{'pool_auto'},
            &bacula_yesno("auto", "AutoPrune", $mems));
if (&get_bacula_version_cached() < 2) {
    print &ui_table_row($text{'pool_any'},
                &bacula_yesno("any", "Accept Any Volume", $mems));
    }
print &ui_table_row($text{'pool_autolabel'},
    &ui_textbox("autolabel", $name=&find_value("LabelFormat", $mems), 20), 3);
print &ui_table_row($text{'pool_maxvolsize'},
    &ui_textbox("maxvolsize", $name=&find_value("Maximum Volume Bytes", $mems), 10), 3);


# All done
print &ui_table_end();
if ($in{'new'}) {
    print &ui_form_end([ [ "create", $text{'create'} ] ]);
    }
else {
    print &ui_form_end([ [ "save", $text{'save'} ],
                 [ "status", $text{'pool_status'} ],
                 [ "delete", $text{'delete'} ] ]);
    }
&ui_print_footer("list_pools.cgi", $text{'pools_return'});


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