!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)

/var/www/html/alumni/inc/class/   drwxr-xr-x
Free 50.98 GB of 127.8 GB (39.89%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     paginationSystem.class.php (5.59 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/********************************************************************************
    - MemHT Portal -
    
    Copyright (C) 2007-2008 by Miltenovik Manojlo
    http://www.memht.com
    
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your opinion) any later version.
    
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU General Public License for more details.
    
    You should have received a copy of the GNU General Public License along
    with this program; if not, see <http://www.gnu.org/licenses/> (GPLv2)
    or write to the Free Software Foundation, Inc., 51 Franklin Street,
    Fifth Floor, Boston, MA02110-1301, USA.
        
********************************************************************************/

//           I  10 1       B        1 10  E
// Page 7/40 |< << < 4 5 6 7 8 9 10 > >> >|

class paginationSystem {
    
//==============================
    //DEFAULT CONFIGURATION
    //==============================
    /*Use CSS style*/
    
var $use_style true;
    
    
/*Show the page position label: "Page N of TOT"*/
    
var $positon_label true;
    
    
/*Show first and last page links*/
    
var $show_limits true;
    
    
/*Page url: "index.php?page=name&op=example&pg={{N}}&salute=bye..."*/
    
var $url "index.php?pg={{N}}";
    
    
/*Num items per page*/
    
var $items 20;
    
    
/*Indicate manually the pages number*/
    
var $override_query false;
    
    
/*Style*/
    
var $box_attribute " style='margin-top:10px;' align='center'";
    var 
$item_attribute " class='box'";
    
    
/*Store and return or print*/
    
var $store false;
    
    
//==============================
    //DO NOT EDIT
    //==============================
    
var $actpg;
    var 
$query;
    var 
$tot_items;
    var 
$storeval;
    
    
//PHP5 Constructor
    
function __construct() {
        
$this->actpg 0;
        
$this->query "";
        
$this->pages 0;
    }
    
//PHP4 Constructor
    
function paginationSystem() {
        
$this->actpg 0;
        
$this->query "";
        
$this->pages 0;
    }
    
    function 
show() {
        global 
$dblink;
        
        
$numitems = ($this->override_query) ? $this->tot_items $dblink->get_num($this->query) ;
        
$numpages ceil($numitems/$this->items);
        if (
$numpages>1) {
            
$this->storeval .= "<table border='0'".$this->box_attribute."><tr><td>\n";
                
$first 1;
                
$prev_big $this->actpg-10;
                
$prev $this->actpg-1;
                
$next $this->actpg+1;
                
$next_big $this->actpg+10;
                
$last $numpages;
                
                
//Label
                
if ($this->positon_label) {
                    
$this->storeval .= "<span".$this->item_attribute.">\n";
                        
$this->storeval .= _PAGE_." "$this->actpg."/$numpages";
                    
$this->storeval .= "</span>\n";
                }
                
                
//First page
                
if ($this->show_limits AND $first<$prev) {
                    
$this->storeval .= "<span".$this->item_attribute.">\n";
                        
$this->storeval .= "<a href='".str_replace("{{N}}",$first,$this->url)."' title='"._PAGE_." $first'>|&lt;</a>";
                    
$this->storeval .= "</span>\n";
                }
                
                
//-10
                
if ($prev_big>0) {
                    
$this->storeval .= "<span".$this->item_attribute.">\n";
                        
$this->storeval .= "<a href='".str_replace("{{N}}",$prev_big,$this->url)."' title='"._PAGE_." $prev_big'>&lt;&lt;</a>";
                    
$this->storeval .= "</span>\n";
                }
                
                
//-1
                
if ($prev>0) {
                    
$this->storeval .= "<span".$this->item_attribute.">\n";
                        
$this->storeval .= "<a href='".str_replace("{{N}}",$prev,$this->url)."' title='"._PAGE_." $prev'>&lt;</a>";
                    
$this->storeval .= "</span>\n";
                }
                
                
//Previous pages
                
for ($i=3;$i>0;$i--) {
                    
$item $this->actpg-$i;
                    if (
$item>0) {
                        
$this->storeval .= "<span".$this->item_attribute.">\n";
                            
$this->storeval .= "<a href='".str_replace("{{N}}",$item,$this->url)."' title='"._PAGE_." $item'>$item</a>";
                        
$this->storeval .= "</span>\n";
                    }
                }
                
                
//Actual page
                
$this->storeval .= "<span".$this->item_attribute.">\n";
                    
$this->storeval .= "<a href='".str_replace("{{N}}",$this->actpg,$this->url)."' title='"._PAGE_." ".$this->actpg."'><b>".$this->actpg."</b></a>";
                
$this->storeval .= "</span>\n";
                
                
//Next pages
                
for ($i=1;$i<=3;$i++) {
                    
$item $this->actpg+$i;
                    if (
$item<=$last) {
                        
$this->storeval .= "<span".$this->item_attribute.">\n";
                            
$this->storeval .= "<a href='".str_replace("{{N}}",$item,$this->url)."' title='"._PAGE_." $item'>$item</a>";
                        
$this->storeval .= "</span>\n";
                    }
                }
                
                
//+1
                
if ($next<=$last) {
                    
$this->storeval .= "<span".$this->item_attribute.">\n";
                        
$this->storeval .= "<a href='".str_replace("{{N}}",$next,$this->url)."' title='"._PAGE_." $next'>&gt;</a>";
                    
$this->storeval .= "</span>\n";
                }
                
                
//+10
                
if ($next_big<=$last) {
                    
$this->storeval .= "<span".$this->item_attribute.">\n";
                        
$this->storeval .= "<a href='".str_replace("{{N}}",$next_big,$this->url)."' title='"._PAGE_." $next_big'>&gt;&gt;</a>";
                    
$this->storeval .= "</span>\n";
                }
                
                
//Last page
                
if ($this->show_limits AND $last>$next) {
                    
$this->storeval .= "<span".$this->item_attribute.">\n";
                        
$this->storeval .= "<a href='".str_replace("{{N}}",$last,$this->url)."' title='"._PAGE_." $last'>&gt;|</a>";
                    
$this->storeval .= "</span>\n";
                }
            
$this->storeval .= "</td></tr></table>\n";
            
            if (
$this->store==true) {
                return 
$this->storeval;
            } else {
                echo 
$this->storeval;
            }
        }        
    }
}

?>

:: 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 ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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