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


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

ini_set
("memory_limit"'1024M');
define('FPDF_FONTPATH',$this->config->item('path_application').'/font/');
//echo $this->config->item('path_application').'/font/'; exit; 
header('Content-Type: text/html; charset=utf-8');
$pdf = new FPDF();

/*echo json_encode($studen->result());
exit;*/

if ($studen->num_rows()) {
        
$college $college->result();
        
$qu_pp $qu_pp->result();
        
$printDate explode(" ",a2th(fullDate(splitDateDb2($printDate))));
    if(
$graduateDate == 2){
        
$dataGraduate explode(" ",a2th(fullDate(splitDateDb2($graduateDatePicker))));
    }
    foreach(
$studen->result() as $res){
        
/*echo print_r($res);
        exit;*/

        
$pdf->AddPage();
        
$pdf->Image($this->config->item('path_application').'/uploads/eregis/picture/logo_pi.jpg',92.5,18,28);
        
$pdf->Ln(74.5);

        
$pdf->AddFont('THSarabunIT9Bold','B','THSarabunIT9Bold.php');
        
$pdf->AddFont('THSarabunIT9','','THSarabunIT9.php');

        
$pdf->SetFont('THSarabunIT9Bold','B',16);
        
$pdf->Cell(0,0,iconv'UTF-8','TIS-620','สถาบันพระบรมราชชนก'),0,1,"C");
        
$pdf->Ln(9.1);
        
$pdf->SetFont('THSarabunIT9Bold','B',16);
        
$pdf->Cell(0,0,iconv'UTF-8','TIS-620','หนังสือรับรอง'),0,1,"C");
        
$pdf->Ln(6.5);
        
$pdf->SetFont('THSarabunIT9','',16);
        
$pdf->Cell(0,0,iconv'UTF-8','TIS-620','หนังสือสำคัญฉบับนี้ให้ไว้เพื่อแสดงว่า'),0,1,"C");
        
$pdf->Ln(10.937767);
        
$pdf->SetFont('THSarabunIT9Bold','B',16);
        
//print_r($res); exit;
        
$res->pfName = ($res->pfName=='') ? $res->prefixName $res->pfName;
        
        
$pdf->Cell(0,0,iconv'UTF-8','TIS-620'$res->pfName.''.$res->stdName.' '.$res->stdSurname),0,1,"C");  
        
$pdf->Ln(10.937767);
        
$pdf->SetFont('THSarabunIT9','',16);
        
$pdf->Cell(0,0,iconv'UTF-8','TIS-620','รหัสประจำตัวนักศึกษา '.$res->stdCode),0,1,"C");
        
$pdf->Ln(6.5);
        
$pdf->SetFont('THSarabunIT9','',16);
        
$pdf->Cell(0,0,iconv'UTF-8','TIS-620','เป็นผู้ที่สำเร็จการศึกษาตามหลักสูตร '.$res->edgName.( !$affiliatedTo  ?  '':' สมทบมหาวิทยาลัย'.$affiliatedTo ) ),0,1,"C");
        
$pdf->Ln(6.5);
        
$pdf->SetFont('THSarabunIT9','',16);
        if(
$graduateDateY == 2){
            
$pdf->Cell(0,0,iconv'UTF-8','TIS-620','ปีการศึกษา '.$graduateYDatePicker),0,1,"C");
        }else{
            
$pdf->Cell(0,0,iconv'UTF-8','TIS-620','ปีการศึกษา '.$res->stdGraduateY),0,1,"C");     
        }
        
$pdf->Ln(10.937767);
        
$pdf->SetFont('THSarabunIT9','',16);
        
$pdf->Cell(0,0,iconv'UTF-8','TIS-620',$college[0]->clgName),0,1,"C");
        
$pdf->Ln(6.5);
        
$pdf->SetFont('THSarabunIT9','',16);
        
$pdf->Cell(0,0,iconv'UTF-8','TIS-620',$college[0]->FacName.' สถาบันพระบรมราชชนก'),0,1,"C");
        
$type = array('2','3','4','5');
        if(
in_array($typeForm,$type)){
            
$pdf->Ln(6.5);
            
$pdf->SetFont('THSarabunIT9','',16);
            if(
$typeForm == 2){
                
$pdf->Cell(0,0,iconv'UTF-8','TIS-620','ซึ่งสภาสถาบันพระบรมราชชนก ได้อนุมัติปริญญาแล้ว'),0,1,"C");
            }else if(
$typeForm == 3){
                
$pdf->Cell(0,0,iconv'UTF-8','TIS-620','ซึ่งสภาสถาบันพระบรมราชชนก ได้อนุมัติประกาศนียบัตรแล้ว'),0,1,"C");
            }else if(
$typeForm == 4){
                
$pdf->Cell(0,0,iconv'UTF-8','TIS-620','ซึ่งสภามหาวิทยาลัย'.$academicCollage.' ได้อนุมัติปริญญาแล้ว'),0,1,"C");
            }else if(
$typeForm == 5){
                
$pdf->Cell(0,0,iconv'UTF-8','TIS-620','ซึ่งสำนักงานปลัดกระทรวง กระทรวงสาธารณสุข ได้อนุมัติให้สำเร็จการศึกษาแล้ว'),0,1,"C");
            }
        }
        
$pdf->Ln(8.5);
        
$pdf->SetFont('THSarabunIT9','',16);
        if(
$graduateDate == 1){
            
$dataGraduate explode(" ",a2th(fullDate(splitDateDb2($res->stdGraduateDate))));
            
$pdf->Cell(0,0,iconv'UTF-8','TIS-620','เมื่อวันที่ '.$dataGraduate[0].' เดือน '.$dataGraduate[1].' พ.ศ. '.$dataGraduate[2]),0,1,"C");
        }else{
            
$pdf->Cell(0,0,iconv'UTF-8','TIS-620','เมื่อวันที่ '.$dataGraduate[0].' เดือน '.$dataGraduate[1].' พ.ศ. '.$dataGraduate[2]),0,1,"C");
        }
        
$pdf->Ln(6.5);
        
$pdf->SetFont('THSarabunIT9','',16);
        
$pdf->Cell(0,0,iconv'UTF-8','TIS-620','ให้ไว้ ณ วันที่ '.$printDate[0].' เดือน '.$printDate[1].' พ.ศ. '.$printDate[2]),0,1,"C");
        
$pdf->Ln(8.5);
        
$pdf->Ln(8.5);
        
$pdf->Ln(8.5);
        
$pdf->Image($this->config->item('path_application').'/uploads/eregis/picture/borderPicture.jpg',37,195,25);
        
$pdf->SetX(100);
        
$pdf->Cell(95,0,iconv'UTF-8','TIS-620','............................................'),0,1,"C");
        
$pdf->Ln(5.5);
        
$pdf->SetX(100);
        
$pdf->Cell(95,5,'('.iconv('UTF-8','TIS-620',$qu_pp[0]->name).')',0,0,'C');
        
$pdf->Ln(6.5);
        
$pdf->SetX(100);
        
$pdf->Cell(95,5,iconv('UTF-8','TIS-620',!$directorPos 'ผู้อำนวยการ'.$college[0]->clgName:$directorPos),0,0,'C');
        
$pdf->Ln(6.5);
        
$pdf->SetX(100);
        
$pdf->Cell(95,5,iconv('UTF-8','TIS-620','นายทะเบียน'),0,0,'C');
        
$pdf->Ln(23);
        
$pdf->SetX(29);
        
$pdf->Cell(95,0,iconv'UTF-8','TIS-620','..........................................'),0,1,"L");
        
$pdf->Ln(3.5);
        
$pdf->SetX(34);
        
$pdf->Cell(95,5,iconv('UTF-8','TIS-620','ลายมือชื่อนักศึกษา'),0,0,'L');
       
    }

   
    
$pdf->Output('หนังสือรับรอง.pdf''I');

}else{
    
?>
    <meta http-equiv="Content-Type" content="text/html; charset=TIS-620" />
    <table align="center">
        <tr>
            <td align="center"><font face="Microsoft Sans Serif" >** ไม่ปรากฏข้อมูล **<br>
            <?php echo anchor($this->config->item("rg_folder")."rpt_misc/searchFSG","[ปิดหน้านี้]");?>
            </font></td>
        </tr>
    </table>
<?php
}

?>

<meta charset="UTF-8">

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