!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/manage/person/admin/   drwxr-xr-x
Free 52.33 GB of 127.8 GB (40.95%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     selectMenuHistoryDoc.php (4.91 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once "template.php";
include_once "../link/function.php";
include_once "../class/clsDocType.php";
include_once "../class/clsDocLineConfig.php";
include_once "../class/clsDocLinePosition.php";
include_once "../class/clsDepartment.php";

$oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EOFFICE'], $GLOBALS['DBUSER_EOFFICE'], $GLOBALS['DBPASS_EOFFICE']);

$oDt = new doctype($oC); 
$oDlc = new DocLineConfig($oC);
$oDlp = new docLinePosition($oC);
$oDP = new Department($oC);
$oDP1 = new Department($oC);
?>
<html>
<head>
<script language="javascript" src="../source/calendarDateInput.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<link href="../source/style.css" rel="stylesheet" type="text/css">
</head>
<style>
/*
<!--
A:link {text-decoration: none; color: #000000}
A:visited {text-decoration: none; color: #000000}
A:hover {text-decoration: none; font-weight: bold; color: #000066} 
-->
*/
</style>
<body>
<table  width="100%"  align="center">
<tr><td >
<fieldset>
      <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="?mm=1">รายงาน</a>
	</font>
	<img src="../picture/ico3.gif" width="10" border="0" align="absmiddle"><a href="historyDoc.php">ประวัติงานสารบรรณก่อนใช้โครงสร้างปัจจุบัน</a>
	<img src="../picture/ico3.gif" width="10" border="0" align="absmiddle">ค้นหาข้อมูล
	</font>
	</legend>
		<table width="100%"   border="0" cellpadding="0" cellspacing="0" align="center" style="border-collapse:collapse" bordercolor="#DADADA" ><tr><? //echo $selectPosition."-".$selectPositionDeptID."-".$selectPositionN;?>
		<?    if($selectPositionN!="ผู้ใช้ทั่วไป"){
					$oDlc->SearchByKey($selectPosition);
					$oDlc->GetRecord();
					$oDlp->SearchByKey($oDlc->DlpID);
					$oDlp->GetRecord();
					$oDP->SearchByKey($oDlc->deptId);
					$oDP->GetRecord(); 
				}else{  
					$oDP->SearchByKey($selectPositionDeptID);
					$oDP->GetRecord(); 
					$GpID="108";
				}
		?>
		<td align="left" height="30">&nbsp;&nbsp;&nbsp;<img src="../picture/reg.png"   border="0"><font color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>" size="2">&nbsp;<strong><? if($selectPosition==""){   echo "ผู้ใช้ทั่วไป";   }else{   echo $oDlp->DlpName;  }  echo "&nbsp;(".$oDP->deptName.")";  ?></strong></font></td>
		</tr></table>
		<table width="85%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse">
		<form name="ff"  method="post">
		<?  if($oDlp->GpID=="107" || $oDlp->GpID=="110" || $oDlp->GpID=="111" || $oDlp->GpID=="112" || $GroupID=="115"){ ?>
			<tr><td colspan="6" height="22"><font color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>" size="2">
              <img src="../picture/submenu_mini.gif"   border="0">
			  <a href="#" onClick="selectRephistoryDoc(1)">รายงานทะเบียนหนังสือของวิทยาลัย</a></font></td></tr>
		<? }  ?>
		<?  if($oDlp->GpID=="107" || $oDlp->GpID=="110" || $oDlp->GpID=="111" || $oDlp->GpID=="112" || $GpID=="108" || $GroupID=="115"){ ?>
			 <tr><td colspan="6" height="22"><font color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>" size="2">
			 <img src="../picture/submenu_mini.gif"   border="0">
             <a href="#" onClick="selectRephistoryDoc(2)">รายงานทะเบียนหนังสือของวิทยาลัยแยกตามหน่วยงานย่อย</a></font></td></tr>
			 <tr><td colspan="6" height="22"><font color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>" size="2">
			 <img src="../picture/submenu_mini.gif"   border="0">
             <a href="#" onClick="selectRephistoryDoc(3)">รายงานการติดตามหนังสือราชการ</a></font></td></tr>
			 <tr><td colspan="6" height="22"><font color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>" size="2">
			 <img src="../picture/submenu_mini.gif"   border="0">
             <a href="#" onClick="selectRephistoryDoc(4)">รายงานการติดตามหนังสือที่กำหนดวันแล้วเสร็จ</a></font></td></tr>
		<? } ?>
		<tr><td align="center"><input name="d" type="button" value="กลับหน้าหลัก" onClick="location.href = 'historyDoc.php'"></td></tr>
		<input name="selectPosition" type="hidden" value="<? echo $selectPosition; ?>">
		<input name="selectPositionN" type="hidden" value="<? echo $selectPositionN; ?>">
		<input name="selectPositionDeptID" type="hidden" value="<? echo $selectPositionDeptID; ?>">
		<input name="DocGroup" type="hidden" value="<? echo $oDlc->docGroup; ?>">
		</form>
		</table>
		</fieldset> 
</td>
</tr>
</table>
</body>
</html>	
<script language="javascript">
 
 function selectPosition() {
 return true;
}

function radioSelectType(val){
	document.getElementById('RPtype').value=val;
}
function radioSelectVal(val){
	document.getElementById('selectVal').value=val;
}
function selectRephistoryDoc(p){
  if(p==1){
  document.ff.action="searchRepHisRegisDoc.php";
  }else if(p==2){
  document.ff.action="searchRepHisRegisDocDept.php";
  }else if(p==3){
   document.ff.action="cc.php";
  }else if(p==4){
  document.ff.action="ee.php";
  }
 document.ff.submit();
}
</script>

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