!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/lvm/   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:     save_vg.cgi (1.85 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# save_vg.cgi
# Create, update or delete a volume group

require './lvm-lib.pl';
&ReadParse();

if ($in{'vg'}) {
    ($vg) = grep { $_->{'name'} eq $in{'vg'} } &list_volume_groups();
    $vg || &error($text{'vg_egone'});
    }

if ($in{'confirm'}) {
    # Delete the volume group
    &error_setup($text{'vg_err2'});
    $err = &delete_volume_group($vg);
    &error("<pre>$err</pre>") if ($err);
    &webmin_log("delete", "vg", $in{'vg'}, $vg);
    &redirect("");
    }
elsif ($in{'delete'}) {
    # Ask the user if he is sure
    &ui_print_header(undef, $text{'vg_delete'}, "");
    @lvs = &list_logical_volumes($in{'vg'});
    if (@lvs) {
        print "<p><b>",&text('vg_cannot', scalar(@lvs)),"</b> <p>\n";
        }
    else {
        print "<center>\n";
        print &ui_form_start("save_vg.cgi");
        print &ui_hidden("vg", $in{'vg'});
        print "<b>",&text('vg_rusure', $vg->{'name'}),"</b><p>\n";
        print &ui_form_end([ [ 'confirm', $text{'vg_deleteok'} ] ]);
        print "</center>\n";
        }
    &ui_print_footer("", $text{'index_return'});
    }
else {
    &error_setup($text{'vg_err'});
    $in{'name'} =~ /^[A-Za-z0-9\.\-\_]+$/ || &error($text{'vg_ename'});
    if (!$in{'vg'}) {
        # Add the volume group
        $vg = { 'name' => $in{'name'} };
        local $device;
        if ($in{'device'}) {
            $device = $in{'device'};
            }
        else {
            -r $in{'other'} || &error($text{'pv_eother'});
            $device = $in{'other'};
            }
        if (!$in{'pesize_def'}) {
            $in{'pesize'} =~ /^\d+$/ || &error($text{'vg_epesize'});
            $vg->{'pe_size'} = $in{'pesize'};
            }
        $err = &create_volume_group($vg, $device);
        &error("<pre>$err</pre>") if ($err);
        &webmin_log("create", "vg", $in{'name'}, $vg);
        }
    else {
        # Rename the volume group
        if ($vg->{'name'} ne $in{'name'}) {
            $err = &rename_volume_group($vg, $in{'name'});
            &error("<pre>$err</pre>") if ($err);
            $vg->{'name'} = $in{'name'};
            }
        &webmin_log("modify", "vg", $in{'vg'}, $vg);
        }
    &redirect("index.cgi?mode=vgs");
    }


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