!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/cpan/   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_mod.cgi (2.35 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# edit_mod.cgi
# Display the details and documentation of a perl module

require './cpan-lib.pl';
&ReadParse();
if ($in{'name'}) {
    @mods = &list_perl_modules($in{'name'});
    $mod = $mods[0];
    }
else {
    @mods = &list_perl_modules($in{'name'});
    $mod = $mods[$in{'idx'}];
    }
$midx = $in{'midx'} ? $in{'midx'} : 0;

&ui_print_header(undef, $text{'edit_title'}, "");

print &ui_table_start($text{'edit_header'}, "width=100%", 4);

# Module name and version
@m = @{$mod->{'mods'}};
($desc, $ver) = &module_desc($mod, $midx);
print &ui_table_row($text{'edit_mod'}, "$m[$midx] $ver");

# Description
print &ui_table_row($text{'edit_desc'},
    $desc ? &html_escape($desc) : $text{'edit_none'}, 2);

# Install date
print &ui_table_row($text{'edit_date'}, $mod->{'date'});

# Main file
print &ui_table_row($text{'edit_file'}, $mod->{'files'}->[$midx]);

# Install method (RPM or whatever)
print &ui_table_row($text{'edit_method'},
    $mod->{'pkg'} ? &text('edit_'.$mod->{'pkgtype'}, "<tt>$mod->{'pkg'}</tt>")
          : $text{'edit_manual'});

if ($midx == $mod->{'master'} && @m > 1) {
    # Sub-modules
    @links = ( );
    for($i=0; $i<@m; $i++) {
        push(@links, "<a href='edit_mod.cgi?idx=$in{'idx'}&midx=$i&name=$in{'name'}'>$m[$i]</a>") if ($i != $mod->{'master'});
        }
    print &ui_table_row($text{'edit_subs'}, &ui_links_row(\@links), 3);
    }

print &ui_table_end();

# Un-install form
print "<table> <tr>\n";
if ($midx == $mod->{'master'} && !$mod->{'noremove'}) {
    print &ui_form_start("uninstall.cgi");
    print &ui_hidden("idx", $in{'idx'});
    print "<td>",&ui_submit($text{'edit_uninstall'}),"</td>\n";
    print &ui_form_end();
    }

# Upgrade form
if ($midx == $mod->{'master'} && !$mod->{'noupgrade'}) {
    print &ui_form_start("download.cgi");
    print &ui_hidden("cpan", $mod->{'mods'}->[0]);
    print &ui_hidden("source", 3);
    print "<td>",&ui_submit($text{'edit_upgrade'}),"</td>\n";
    print &ui_form_end();
    }
print "</table>\n";

# Module documentation
open(DOC, "$perl_doc -t '$m[$midx]' 2>/dev/null |");
while(<DOC>) { $doc .= $_; }
close(DOC);
if ($doc =~ /\S/) {
    print &ui_table_start($text{'edit_header2'}, "width=100%", 2);
    print &ui_table_row(undef, "<pre>".&html_escape($doc)."</pre>", 2);
    print &ui_table_end();
    }

&ui_print_footer($midx != $mod->{'master'} ?
     ( "edit_mod.cgi?idx=$in{'idx'}&midx=$mod->{'master'}&name=$in{'name'}",
       $text{'edit_return'} ) : ( ),
    "", $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.0125 ]--