!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/   drwxr-xr-x
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:     function.php (1.41 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |

<?
// ฟังก์ชั่นตรวจสอบ Category
    
function CheckCategory($Category) { 
        include(
"config.inc.php");    //ตั้งค่าต่างๆของเว็บบอร์ด
        
        
$CategoryOK 0;

        for ( 
$i=$i<sizeof($CategoryArray) ; $i++ ){
            if(
$Category==$CategoryArray[$i]){
                
$CategoryOK 1;
                break;
            }
            else
                
$CategoryOK 0;
        }

        if(!
$CategoryOK){
            echo 
"<center><br>";
            echo 
"<font color=red size=+1> กรุณาระบุ Category ให้ตรงกับที่ web เปิดใช้ด้วยครับ</font>";
            echo 
"<br><br>";
            echo 
"<font color=red size=+1><b>[</b> <a href='javascript:history.back(1)'>กลับไปแก้ไข</a> <b>]</b></font>";
            echo 
"</center>";
            exit();
            return 
0;
        }
        else {
            return 
$Category;
        }

    }
    
//$online = 1;
    
function convert_date($str) {
$d substr($str82);
$m substr($str52);
$y substr($str04);
$h substr($str115);
$s substr($str142);
$result $d.'-'.$m.'-'.$y.' '.$h;
return 
$result;
}

//thaidate
/*
function convert_date($str) {
$d = substr($str, 8, 2);
$m = substr($str, 5, 2);
$y = substr($str, 0, 4);
$y  = $y + 543;
$h = substr($str, 11, 5);
$s = substr($str, 14, 2);
$result = $d.'-'.$m.'-'.$y.' '.$h;
return $result;
}
*/

function convert_ckdate($str) {
$d substr($str82);
$m substr($str52);
$y substr($str04);
$h substr($str115);
//$h =$h + 7;
$s substr($str142);
$result $d.'-'.$m.'-'.$y.' '.$h;
return 
$result;
}

?>

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