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


Viewing file:     processReceiveDoc.php (8.01 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
SearchMaxDocGroup();

if($method=="addReceiveDoc"){ 
	$flagCommit = true;
	$oC->BeginTrans();
	
				$timesend=getNowDateTh()." ".date('H:i:s');
				
				//-----check runningNo
				$checkerror=0;
				if($DtID!=15){  $insertDtID="3"; }else{  $insertDtID="15"; }
				$DocTypeNo=ShowRunningDoc(3,$insertDtID,$deptId); 
				//echo "==".$DocTypeNo;
				$oDP->SearchByKey($deptId); $oDP->GetRecord();  //echo $oDP->deptName;
				if($DocTypeNo=="N"){
					$checkerror++;
				?>
					
				";
				}
				if($DocTypeNo=="NoConfirm"){
					$checkerror++;
				?>
					
				";
				}
				
				//----set running Doc
				$oRd->SearchRunningBydocGroupDtIDDept($DocGroup,$insertDtID,$deptId);
				$oRd->GetRecord();
				$oRd->Edit();
				$oRd->receiveNo=$DocTypeNo;
				$flagCommit = $oRd->Save();
				
				//----edit set Document
					$oDoc2->SearchByKey($DocID);
					$oDoc2->GetRecord();
					$oDoc2->Edit();
					$oDoc2->DsID="1";
					$oDoc2->DocDateCreate=$timesend;
					$oDoc2->DocTypeNo=$oRd->receiveNo;
					$flagCommit = $oDoc2->Save();
		
					//-----edit set RsDoc
					$oRs->SearchByKey($DrsID);
					//echo "DrsID_edit=".$DrsID."
"; $oRs->GetRecord(); $oRs->Edit(); $oRs->DrsSendDate=$timesend; $oRs->DrsSendPersonId=$personId; $oRs->DrsSendDlcID=$DlcID; $flagCommit = $oRs->Save(); $oRs2->AddNew(); $oRs2->DrsID=$oRs2->GetNextCode(); //echo "DrsID=".$oRs2->DrsID."
"; $oRs2->DocID=$oRs->DocID; $oRs2->DlcID=$DlcID; $oRs2->DsID="1"; $oRs2->PtID=$oRs->PtID; $oRs2->DrsDocTypeNo=$DocTypeNo; $oRs2->DrsReceiveDate=$timesend; $oDlc->SearchByKey($oDoc->DlcID); $oDlc->GetRecord(); $oRs2->DrsReceivePersonId=$personId; $oRs2->DrsDlcIDCreate=$DlcID ; $oRs2->DrsPsIDCreate=$personId; $oRs2->DrsPropose=$DrsSend; $oRs2->DrsSign=$oRs2->DrsSign; $oRs2->DrsFromDrsID=$oRs->DrsID; $oRs2->DocGroup=$oRs->DocGroup; //echo $oRs->AnID; $oRs2->AnID=$oRs->AnID; $oRs2->DrsstartDatePost=$oRs->DrsstartDatePost; $oRs2->DrsendDatePost=$oRs->DrsendDatePost; $flagCommit = $oRs2->Save(); if($flagCommit) $oC->CommitTrans(); else $oC->RollbackTrans(); echo ""; }else if($method=="Noaccept"){ $flagCommit = true; $oC->BeginTrans(); //----edit set Document $timesend=getNowDateTh()." ".date('H:i:s'); $oDoc2->SearchByKey($DocID); $oDoc2->GetRecord(); $oDoc2->Edit(); $oDoc2->DsID="6"; $flagCommit = $oDoc2->Save(); //-----edit set RsDoc $oRs->SearchByKey($DrsID); //echo "DrsID_edit=".$DrsID."
"; $oRs->GetRecord(); $oRs->Edit(); $oRs->DrsSendDate=$timesend; $oRs->DrsSendPersonId=$personId; $oRs->DrsSendDlcID=$DlcID; $flagCommit = $oRs->Save(); $oRs2->AddNew(); $oRs2->DrsID=$oRs2->GetNextCode(); //echo "DrsID=".$oRs2->DrsID."
"; $oRs2->DocID=$oRs->DocID; $oRs2->DlcID=$DlcID; $oRs2->DsID="6"; $oRs2->personId=$oRs->personId; $oRs2->PtID=$oRs->PtID; $oRs2->DrsDocTypeNo=$oRs->DrsDocTypeNo; $oRs2->DrsReceiveDate=$timesend; $oDlc->SearchByKey($oDoc->DlcID); $oDlc->GetRecord(); $oRs2->DrsReceivePersonId=$personId; $oRs2->DrsDlcIDCreate=$DlcID; $oRs2->DrsPsIDCreate=$personId; $oRs2->DrsPropose=$DrsSend; $oRs2->DrsSign=$oRs2->DrsSign; $oRs2->DrsFromDrsID=$oRs->DrsID; $oRs2->DocGroup=$oRs->DocGroup; //echo $oRs->AnID; $oRs2->AnID=$oRs->AnID; $oRs2->DrsstartDatePost=$oRs->DrsstartDatePost; $oRs2->DrsendDatePost=$oRs->DrsendDatePost; $flagCommit = $oRs2->Save(); if($flagCommit) $oC->CommitTrans(); else $oC->RollbackTrans(); echo ""; }else if($method=="SendBack"){ $flagCommit = true; $oC->BeginTrans(); //----edit set Document $timesend=getNowDateTh()." ".date('H:i:s'); $oDoc2->SearchByKey($DocID); $oDoc2->GetRecord(); $oDoc2->Edit(); $oDoc2->DsID="7"; $flagCommit = $oDoc2->Save(); //-----edit set RsDoc $oRs->SearchByKey($DrsID); //echo "DrsID_edit=".$DrsID."
"; $oRs->GetRecord(); $oRs->Edit(); $oRs->DrsSendDate=$timesend; $oRs->DrsSendPersonId=$personId; $oRs->DrsSendDlcID=$DlcID; $flagCommit = $oRs->Save(); $oRs3->SearchByDocIDDsID3Docgroup($oDoc2->DocPID,$MaxDocGroup); $oRs3->GetRecord(); $oRs2->AddNew(); $oRs2->DrsID=$oRs2->GetNextCode(); //echo "DrsID=".$oRs2->DrsID."
"; $oRs2->DocID=$oRs->DocID; $oRs2->DlcID=$DlcID; $oRs2->DsID="7"; $oRs2->personId=$oRs->personId; $oRs2->PtID=$oRs->PtID; $oRs2->DrsDocTypeNo=$oRs->DrsDocTypeNo; $oRs2->DrsReceiveDate=$timesend; $oDlc->SearchByKey($oDoc->DlcID); $oDlc->GetRecord(); $oRs2->DrsReceivePersonId=$personId; $oRs2->DrsDlcIDCreate=$DlcID; $oRs2->DrsPsIDCreate=$personId; $oRs2->DrsPropose=$DrsSend; $oRs2->DrsSign=$oRs2->DrsSign; $oRs2->DrsFromDrsID=$oRs->DrsID; $oRs2->DocGroup=$oRs->DocGroup; //echo $oRs->AnID; $oRs2->AnID=$oRs->AnID; $oRs2->DrsstartDatePost=$oRs->DrsstartDatePost; $oRs2->DrsendDatePost=$oRs->DrsendDatePost; $oRs2->DrsSendBack=$DrsSendBack; $oRs2->DrsSendBackDlcID=$oRs3->DlcID; $flagCommit = $oRs2->Save(); if($flagCommit) $oC->CommitTrans(); else $oC->RollbackTrans(); echo ""; } ?>
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 ]--