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


Viewing file:     Db.php (1.03 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
Information:
Path /var/www/html/manage/class/Db.php
Size 1.03 KB
MD5 a1ed2e4ba8dfb18f8a9a4f055f91db76
Owner/Group apache/apache
Perms-rw-r--r--
Create time 03/07/2013 18:31:17
Access time 31/07/2024 09:33:49
MODIFY time 04/08/2012 11:41:44

FULL HEXDUMP
00000000
00000018
00000030
00000048
00000060
00000078
00000090
000000A8
000000C0
000000D8
000000F0
00000108
00000120
00000138
00000150
00000168
00000180
00000198
000001B0
000001C8
000001E0
000001F8
00000210
00000228
00000240
00000258
00000270
00000288
000002A0
000002B8
000002D0
000002E8
00000300
00000318
00000330
00000348
00000360
00000378
00000390
000003A8
000003C0
000003D8
000003F0
00000408
3C 3F 0A 69 6E 63 6C 75 64 65 5F 6F 6E 63 65 28 22 2E 2E 2F 63 6F 6E 66
69 67 75 72 61 74 69 6F 6E 2E 70 68 70 22 29 3B 0A 69 6E 63 6C 75 64 65
5F 6F 6E 63 65 20 22 63 6F 6E 6E 65 63 74 2E 70 68 70 22 3B 0A 0A 63 6C
61 73 73 20 44 62 7B 0A 09 76 61 72 20 24 72 73 3B 0A 0A 09 66 75 6E 63
74 69 6F 6E 20 53 65 74 51 75 65 72 79 28 24 71 75 65 72 79 29 7B 0A 09
09 67 6C 6F 62 61 6C 20 24 5F 43 6F 6E 66 69 67 5F 52 45 47 44 42 4E 61
6D 65 3B 0A 0A 09 09 69 6E 63 6C 75 64 65 5F 6F 6E 63 65 20 22 69 6E 73
74 61 6C 6C 65 64 56 61 72 2E 70 68 70 22 3B 0A 09 09 2F 2F 24 71 75 65
72 79 20 3D 20 70 72 65 67 5F 72 65 70 6C 61 63 65 28 22 2F 43 6F 6E 64
69 74 69 6F 6E 2F 22 2C 20 22 60 43 6F 6E 64 69 74 69 6F 6E 60 22 2C 20
24 71 75 65 72 79 29 3B 0A 09 09 2F 2F 24 71 75 65 72 79 20 3D 20 70 72
65 67 5F 72 65 70 6C 61 63 65 28 22 2F 63 6F 6E 64 69 74 69 6F 6E 20 2F
22 2C 20 22 60 63 6F 6E 64 69 74 69 6F 6E 60 20 22 2C 20 24 71 75 65 72
79 29 3B 0A 09 09 2F 2F 6D 79 73 71 6C 5F 73 65 6C 65 63 74 5F 64 62 28
24 47 4C 4F 42 41 4C 53 5B 22 45 52 45 47 49 53 5F 44 42 4E 41 4D 45 22
5D 29 3B 0A 09 09 6D 79 73 71 6C 5F 73 65 6C 65 63 74 5F 64 62 28 24 5F
43 6F 6E 66 69 67 5F 52 45 47 44 42 4E 61 6D 65 29 3B 0A 09 09 24 74 68
69 73 2D 3E 72 73 3D 20 6D 79 73 71 6C 5F 71 75 65 72 79 28 24 71 75 65
72 79 29 3B 0A 09 09 69 66 20 28 21 20 24 74 68 69 73 2D 3E 72 73 20 29
7B 0A 09 09 09 2F 2F 65 63 68 6F 20 22 3C 6D 65 74 61 20 68 74 74 70 2D
65 71 75 69 76 3D 27 72 65 66 72 65 73 68 27 20 63 6F 6E 74 65 6E 74 3D
27 30 3B 20 55 52 4C 3D 73 68 6F 77 45 72 72 6F 72 2E 70 68 70 3F 65 72
72 6E 6F 3D 22 2E 20 6D 79 73 71 6C 5F 65 72 72 6E 6F 28 29 20 2E 22 27
3E 22 3B 0A 09 09 09 64 69 65 28 22 45 72 72 6F 72 20 3A 3A 20 22 20 2E
20 6D 79 73 71 6C 5F 65 72 72 6E 6F 28 29 20 2E 20 27 20 3A 20 27 20 2E
20 6D 79 73 71 6C 5F 65 72 72 6F 72 28 29 20 29 3B 0A 09 09 7D 0A 09 09
72 65 74 75 72 6E 20 24 74 68 69 73 2D 3E 72 73 3B 0A 09 7D 0A 0A 09 66
75 6E 63 74 69 6F 6E 20 47 65 74 4C 73 74 49 44 28 29 7B 0A 09 09 72 65
74 75 72 6E 20 6D 79 73 71 6C 5F 69 6E 73 65 72 74 5F 69 64 28 29 3B 0A
09 7D 0A 0A 09 66 75 6E 63 74 69 6F 6E 20 4E 75 6D 46 69 65 6C 64 28 29
7B 0A 09 09 09 72 65 74 75 72 6E 20 6D 79 73 71 6C 5F 6E 75 6D 5F 66 69
65 6C 64 73 28 24 74 68 69 73 2D 3E 72 73 29 3B 0A 09 7D 0A 09 0A 09 66
75 6E 63 74 69 6F 6E 20 47 65 74 52 6F 77 53 65 6C 65 63 74 65 64 28 29
7B 0A 09 09 72 65 74 75 72 6E 20 6D 79 73 71 6C 5F 6E 75 6D 5F 72 6F 77
73 28 24 74 68 69 73 2D 3E 72 73 29 3B 0A 09 7D 0A 09 0A 09 66 75 6E 63
74 69 6F 6E 20 47 65 74 52 65 73 75 6C 74 28 29 7B 0A 09 09 69 66 28 24
74 68 69 73 2D 3E 72 73 29 7B 0A 09 09 09 72 65 74 75 72 6E 20 6D 79 73
71 6C 5F 66 65 74 63 68 5F 61 72 72 61 79 28 24 74 68 69 73 2D 3E 72 73
29 3B 0A 09 09 7D 0A 09 09 09 72 65 74 75 72 6E 20 30 3B 0A 09 7D 0A 0A
09 66 75 6E 63 74 69 6F 6E 20 47 65 74 41 66 66 65 63 74 65 64 28 29 7B
0A 09 09 72 65 74 75 72 6E 20 6D 79 73 71 6C 5F 61 66 66 65 63 74 65 64
5F 72 6F 77 73 28 29 3B 0A 09 7D 0A 0A 09 66 75 6E 63 74 69 6F 6E 20 44
65 73 74 72 6F 79 44 62 28 29 7B 0A 09 09 72 65 74 75 72 6E 20 6D 79 73
71 6C 5F 63 6C 6F 73 65 28 29 3B 0A 09 7D 0A 7D 0A 3F 3E 0A
<? include_once("../conf
iguration.php"); include
_once "connect.php";  cl
ass Db{  var $rs;   func
tion SetQuery($query){ 
global $_Config_REGDBNa
me;   include_once "ins
talledVar.php";  //$que
ry = preg_replace("/Cond
ition/", "`Condition`", 
$query);  //$query = pr
eg_replace("/condition /
", "`condition` ", $quer
y);  //mysql_select_db(
$GLOBALS["EREGIS_DBNAME"
]);  mysql_select_db($_
Config_REGDBName);  $th
is->rs= mysql_query($que
ry);  if (! $this->rs )
{  //echo "<meta http-
equiv='refresh' content=
'0; URL=showError.php?er
rno=". mysql_errno() ."'
>";  die("Error :: " .
 mysql_errno() . ' : ' .
 mysql_error() );  } 
return $this->rs;  }   f
unction GetLstID(){  re
turn mysql_insert_id(); 
}   function NumField()
{  return mysql_num_fi
elds($this->rs);  }    f
unction GetRowSelected()
{  return mysql_num_row
s($this->rs);  }    func
tion GetResult(){  if($
this->rs){  return mys
ql_fetch_array($this->rs
);  }  return 0;  }  
function GetAffected(){
  return mysql_affected
_rows();  }   function D
estroyDb(){  return mys
ql_close();  } } ?> 

HEXDUMP: [Full] [Preview]
Base64:
[Encode [+chunk [+chunk+quotes [Decode


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