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


Viewing file:     GrapDura.php (25.13 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
execQuery($query);
		//$numrows = $dbObj->_numrows
	
	

 ?>






<?=$_Config_sitename;?>




หน้าหลัก » ข้อมูลครุภัณฑ์ » กราฟแสดงข้อมูลครุภัณฑ์  
 
‹ ย้อนกลับ
 
 
   
 
"; // Fetch all factory records $strQuery = "SELECT * FROM accessories_type_tb "; $result1 = mysql_query($strQuery); //Iterate through each factory if ($result1) { while( $rs1 = mysql_fetch_array($result1) ) { $error_id = $rs1['id']; $strQuery = " SELECT * FROM accessories_tb at, accessories_type_tb att WHERE at.Dura='Y' and at.Status='Y' and at.Acc_type_code = att.Acc_type_code and at.Acc_type_code !='0' and at.Acc_type_code='$rs1[Acc_type_code]' "; $result2 = mysql_query($strQuery); $numAmt = mysql_num_rows($result2); $strXML .= ""; } # while } # if //Finally, close element $strXML .= ""; //Create the chart - Pie 3D Chart with data from strXML echo renderChart("./charts/Pie3D.swf", "", $strXML, "", 750, 375, false, false); ?> "; // Fetch all factory records $strQuery = "SELECT * FROM durable_tb dt, accessories_type_tb att , accessories_tb at WHERE at.Dura='Y' and at.Acc_type_code = att.Acc_type_code and dt.AccId = at.AccId and at.Acc_type_code !='0' GROUP BY dt.Acc_type_code "; $result2= mysql_query($strQuery); //Iterate through each factory if ($result2) { while( $rs2 = mysql_fetch_array($result2) ) { $error_id = $rs2['id']; $strQuery = "SELECT * FROM durable_tb dt, accessories_type_tb att , accessories_tb at WHERE at.Dura='Y' and at.Acc_type_code = att.Acc_type_code and dt.AccId = at.AccId and at.Acc_type_code !='0' and at.Acc_type_code='$rs2[Acc_type_code]' "; $result3 = mysql_query($strQuery); $numAmt = mysql_num_rows($result3); $strXML .= ""; } # while } # if //Finally, close element $strXML .= ""; //Create the chart - Pie 3D Chart with data from strXML echo renderChart("./charts/Pie3D.swf", "", $strXML, "", 750, 375, false, false); ?> "; // Fetch all factory records $strQuery = " SELECT * FROM durable_type_tb "; $result1 = mysql_query($strQuery); //Iterate through each factory if ($result1) { while( $rs1 = mysql_fetch_array($result1) ) { $error_id = $rs1['id']; $strQuery = "Select * From durable_tb WHERE durableCode='$rs1[durableCode]' "; $result2 = mysql_query($strQuery); $numAmt = mysql_num_rows($result2); $strXML .= ""; } # while } # if //Finally, close element $strXML .= ""; //Create the chart - Pie 3D Chart with data from strXML echo renderChart("./charts/Pie3D.swf", "", $strXML, "", 750, 375, false, false); ?> "; // Fetch all factory records $strQuery = " SELECT * FROM accessories_type_tb "; $result1 = mysql_query($strQuery); //Iterate through each factory if ($result1) { while( $rs1 = mysql_fetch_array($result1) ) { $error_id = $rs1['id']; $strQuery = " SELECT * FROM accessories_tb at, accessories_type_tb att WHERE Fund='หมดอายุการใช้งาน' and at.Acc_type_code = att.Acc_type_code and at.Acc_type_code !='0' and at.Acc_type_code='$rs1[Acc_type_code]' "; $result2 = mysql_query($strQuery); $numAmt = mysql_num_rows($result2); $strXML .= ""; } # while } # if //Finally, close element $strXML .= ""; //Create the chart - Pie 3D Chart with data from strXML echo renderChart("./charts/Pie3D.swf", "", $strXML, "", 750, 375, false, false); ?> "; // Fetch all factory records $strQuery = " SELECT * FROM accessories_tb WHERE Year !=' ' and Dura='Y' GROUP BY Year "; $result1 = mysql_query($strQuery); //Iterate through each factory if ($result1) { while( $rs1 = mysql_fetch_array($result1) ) { $error_id = $rs1['id']; $strQuery = " SELECT SUM(Price) AS SumB1 FROM accessories_tb WHERE Year='$rs1[Year]' and Dura='Y' "; $result3 = $dbObj->execQuery($strQuery); $rs3 = $dbObj->fetchArray($result3); $strXML .= ""; } # while } # if //Finally, close element $strXML .= ""; //Create the chart - Pie 3D Chart with data from strXML echo renderChart("./charts/Column2D.swf", "", $strXML, "", 750, 375, false, false); ?> "; // Fetch all factory records $strQuery = " SELECT * FROM accessories_tb WHERE Year !=' ' and Dura='N' GROUP BY Year "; $result1 = mysql_query($strQuery); //Iterate through each factory if ($result1) { while( $rs1 = mysql_fetch_array($result1) ) { $error_id = $rs1['id']; $strQuery = " SELECT SUM(Price) AS SumB1 FROM accessories_tb WHERE Year='$rs1[Year]' and Dura='N' "; $result2 = mysql_query($strQuery); $rs2 = $dbObj->fetchArray($result2); $strXML .= ""; } # while } # if //Finally, close element $strXML .= ""; //Create the chart - Pie 3D Chart with data from strXML echo renderChart("./charts/Column2D.swf", "", $strXML, "", 750, 375, false, false); ?> "; // Fetch all factory records $strQuery = "SELECT * FROM accessories_type_tb "; $result1 = mysql_query($strQuery); //Iterate through each factory if ($result1) { while( $rs1 = mysql_fetch_array($result1) ) { $error_id = $rs1['id']; $strQuery = " SELECT * FROM accessories_tb at, accessories_type_tb att WHERE at.Dura='N' and at.Status='Y' and at.Acc_type_code = att.Acc_type_code and at.Acc_type_code !='0' and at.Acc_type_code='$rs1[Acc_type_code]' "; $result2 = mysql_query($strQuery); $numAmt = mysql_num_rows($result2); $strXML .= ""; } # while } # if //Finally, close element $strXML .= ""; //Create the chart - Pie 3D Chart with data from strXML echo renderChart("./charts/Pie3D.swf", "", $strXML, "", 750, 375, false, false); ?> "; /* $strQuery = " SELECT * FROM project_type_tb Where Budget_Year !=' ' and Budget_Year !='0' GROUP BY Budget_Year "; $result111 = $dbObj->execQuery($strQuery); //Iterate through each factory if ($result111) { while( $rs111 = $dbObj->fetchArray($result111) ) { $sql3 = " SELECT SUM(Budget_total) AS SumB1 FROM $myTable2 WHERE Budget_Year='$rs111[Budget_Year]' "; $result3 = $dbObj->execQuery($sql3); $rs3 = $dbObj->fetchArray($result3); $sql4 = " SELECT SUM(Budget_use) AS SumB2 FROM $myTable3 WHERE Budget_Year='$rs111[Budget_Year]' "; $result4 = $dbObj->execQuery($sql4); $rs4 = $dbObj->fetchArray($result4); $strXML .= ""; $strXML .= ""; } # while } # if //Finally, close element $strXML .= ""; //Create the chart - Pie 3D Chart with data from strXML echo renderChart("charts/Line.swf", "", $strXML, "", 750, 375, false, false); */ // Fetch all factory records $strQuery = "SELECT * FROM project_type_tb Where Budget_Year !=' ' and Budget_Year !='0' GROUP BY Budget_Year "; $result1 = mysql_query($strQuery); //Iterate through each factory if( $result1 ) { $strXML .= ""; while( $rs1 = mysql_fetch_array($result1) ) { $Budget_Year = $rs1['Budget_Year']; $strXML .= ""; } # while $strXML .= ""; }# if mysql_free_result($result1); // Fetch all factory records $strQuery = "SELECT * FROM project_type_tb Where Budget_Year !=' ' and Budget_Year !='0' GROUP BY Budget_Year "; $result1 = mysql_query($strQuery); //Iterate through each factory if( $result1 ) { $strXML .= ""; while( $rs1 = mysql_fetch_array($result1) ) { $Budget_Year = $rs1['Budget_Year']; $strQuery2 = "SELECT SUM(Budget_total) AS numAmt2 FROM project_type_tb WHERE Budget_Year='$Budget_Year' "; $result2 = mysql_query($strQuery2); $rs2 = mysql_fetch_array($result2); mysql_free_result($result2); $strXML .= ""; } # while $strXML .= ""; } # if mysql_free_result($result1); // Fetch all factory records $strQuery = "SELECT * FROM project_type_tb Where Budget_Year !=' ' and Budget_Year !='0' GROUP BY Budget_Year "; $result1 = mysql_query($strQuery); //Iterate through each factory if( $result1 ) { $strXML .= ""; while( $rs1 = mysql_fetch_array($result1) ) { $Budget_Year = $rs1['Budget_Year']; $strQuery3 = " SELECT SUM(Budget_use) AS numAmt3 FROM project_tb WHERE Budget_Year='$Budget_Year'"; $result3 = mysql_query($strQuery3); $rs3 = mysql_fetch_array($result3); $numAmt3 = mysql_num_rows($result3); mysql_free_result($result3); $strXML .= ""; } # while $strXML .= ""; } # if mysql_free_result($result1); //Finally, close element $strXML .= ""; //Create the Multi-series Line Chart with data from strXML echo renderChart("./charts/MSLine.swf", "", $strXML, "", 750, 375, false, false); ?> "; // Fetch all factory records $strQuery111 = " SELECT * FROM faculty_tb GROUP BY Faculty_code "; $result111 = $dbObj->execQuery($strQuery111); //Iterate through each factory if( $result111 ) { while( $rs111 = $dbObj->fetchArray($result111) ) { $Faculty_code = $rs111['Faculty_code']; $strQuery222 = " SELECT * FROM accessories_tb WHERE Faculty_code='$rs111[Faculty_code]' "; $result222 = $dbObj->execQuery($strQuery222); $numAmt222 = $dbObj->_numrows; $dbObj->freeresult($result222); // $strXML .= ""; $strXML .= ""; } # while } # if $dbObj->freeresult($result111); //Finally, close element $strXML .= ""; //Create the chart - Pie 3D or Column3D Chart with data from strXML echo renderChart("./charts/Pie3D.swf", "", $strXML, "", 750,375, false, false); ?>
 
freeresult($result); /** Close the Database */ $dbObj->disconn(); /** Unset Class */ unset($dbObj); ?>
bool(false)

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