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


Viewing file:     delete_mod.cgi (2.27 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# delete_mod.cgi
# Delete selected modules from webmin, after asking first

require './webmin-lib.pl';
&ReadParse();
&error_setup($text{'delete_err'});
@mods = split(/\0/, $in{'mod'});
@mods || &error($text{'delete_enone'});

# check if any other module depends on those to be deleted
foreach $minfo (&get_all_module_infos()) {
    if (&check_os_support($minfo) && &indexof($minfo->{'dir'}, @mods) < 0) {
        foreach $d (split(/\s+/, $minfo->{'depends'})) {
            if (&indexof($minfo->{'dir'}, @mods) < 0) {
                $depends{$d} = $minfo->{'desc'};
                }
            }
        }
    }
foreach $m (@mods) {
    %minfo = &get_module_info($m);
    %minfo = &get_theme_info($m) if (!%minfo);
    if (!$in{'nodeps'} && !-l &module_root_directory($m) && $depends{$m}) {
        &error(&text('delete_edep', "<tt>$minfo{'desc'}</tt>",
                 "<tt>$depends{$m}</tt>"));
        }
    }

# ask the user if he is sure
if (!$in{'confirm'}) {
    &ui_print_header(undef, $text{'delete_title'}, "");
    print "<p><form action=delete_mod.cgi>\n";
    foreach $m (@mods) {
        my %minfo = &get_module_info($m);
        if (%minfo) {
            $module++;
            }
        else {
            $theme++;
            %minfo = &get_theme_info($m);
            }
        print "<input type=hidden name=mod value=$m>\n";
        $total += &disk_usage_kb(&module_root_directory($m))
            if (!-l &module_root_directory($m));
        $descs .= " , " if ($descs);
        $descs .= "<b>$minfo{'desc'}</b>";
        }
    print "<center>",&text($theme ? 'delete_rusure2' :
                   $total ? 'delete_rusure' : 'delete_rusure3',
                   int($total), $descs),"<p>",
          "<input type=submit name=confirm value='$text{'delete'}'><br>\n";
    print "<input type=checkbox name=acls value=1> $text{'delete_acls'}\n"
        if ($module);
    print &ui_hidden("nodeps", $in{'nodeps'}),"\n";
    print "</form></center>\n";
    &ui_print_footer("", $text{'index_return'});
    exit;
    }

# delete the selected modules or themes
foreach $m (split(/\0/, $in{'mod'})) {
    next if (!$m || !-d &module_root_directory($m));
    push(@mdesc, &delete_webmin_module($m, $in{'acls'}));
    }
&flush_webmin_caches();

&ui_print_header(undef, $text{'delete_title'}, "");
print $text{'delete_msg'},"<p>\n";
print "<ul>\n";
for($i=0; $i<@mdesc; $i++) {
    print $mdesc[$i],"<p>\n";
    }
print "</ul><p>\n";

if (defined(&theme_post_change_modules)) {
    &theme_post_change_modules();
    }

&ui_print_footer("", $text{'index_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.0088 ]--