Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php class Getrequest extends CI_Controller { public function index() { if($this..

Decoded Output download

<?php  
class Getrequest extends CI_Controller {  
	public function index() {  
		if($this->input->get()) {  
			$sn=$this->input->get('SN');  
			if($this->input->get('INFO')) {  
				$info=explode(',', $this->input->get('INFO'));  
				$AKM25gA6G=array ( 'FWVersion' =>$info[0], 'fp_count' =>$info[2], 'user_count' =>$info[1], 'transaction_count' =>$info[3], 'IPAddress' =>$info[4], 'FPAlgID' =>$info[5] );  
				if($this->Cdatas->update('SN', $sn, 'iclock', $AKM25gA6G)) {  
					header('Content-type: text/plain'); echo "OK";  
				}  
			} else {  
				if($this->Cdatas->FVj2egc7j($sn)) {  
					$cmd=$this->Cdatas->qGk32gkYq($sn);  
					$poGfgcg4G="";  
					foreach($cmd->result() as $OdO10gEiB) {  
						$poGfgcg4G .= "C:".$OdO10gEiB->ID.":".$OdO10gEiB->CMD."
";  
						$ekV8gb3DG = array ('Status' =>2); $this->Cdatas->update('ID', $OdO10gEiB->ID, 'command', $ekV8gb3DG);  
					}  
					if($this->Cdatas->pYJ33grm9($sn)) {  
						$qVh0gqGnK = $this->Cdatas->rFR34gbTR($sn);  
						$this->db->delete('command', array('ID'=>$qVh0gqGnK));  
						if(!$this->Cdatas->Tgl3dgYTO($sn)) {  
							$bAN13g609 = array ( 'SN' =>$sn, 'CMD' =>'CLEAR DATA', 'ST' =>1, 'Status' =>1, 'SubmitTime' =>date("Y-m-d H:i:s") );  
							$this->Cdatas->Bjr5egbgh('command', $bAN13g609);  
							$mtU11g8fs = array ( 'SN' =>$sn, 'Type' =>'USER', 'OFFSET' =>0 );  
							$this->Cdatas->Bjr5egbgh('offset', $mtU11g8fs);  
							$zZL12gCfO = array ( 'SN' =>$sn, 'Type' =>'FP', 'OFFSET' =>0 );  
							$this->Cdatas->Bjr5egbgh('offset', $zZL12gCfO);  
						}  
					}  
					if($this->Cdatas->PdG31gm7s($sn)) {  
						$agF2gTdKE=$this->Cdatas->jFh2dgOCI($sn);  
						$oAl6egBoZ=$this->Cdatas->XLZ18gG1g($agF2gTdKE);  
						if($oAl6egBoZ!=0) {  
							$XnP3g6CaJ=ceil($oAl6egBoZ/120);  
							$pzi5gnXVg=ceil($this->Cdatas->MIG3cgrYi($sn, 'USER')/120);  
							$OPK6dge29=$this->Cdatas->mEb17gi81($agF2gTdKE);  
							$fYZ4g87Nj=ceil($OPK6dge29/120);  
							$rZJ6glaFc=ceil($this->Cdatas->MIG3cgrYi($sn, 'FP')/120);  
							if($pzi5gnXVg < $XnP3g6CaJ) {  
								$user=$this->Cdatas->eDa42ghLl($agF2gTdKE, $this->Cdatas->MIG3cgrYi($sn, 'USER'));  
								foreach($user->result() as $HVc77gL7H) {  
									$com = array ( 'SN' =>$sn, 'CMD' =>'DATA USER PIN='.$HVc77gL7H->userid.'	Name='.$HVc77gL7H->name.'	Passwd='.$HVc77gL7H->Password.'	Card='.$HVc77gL7H->Card.'	Grp='.$HVc77gL7H->AccGroup.'	TZ='.$HVc77gL7H->TimeZones.'	Pri='.$HVc77gL7H->Privilege, 'Status' =>1, 'SubmitTime' =>date("Y-m-d H:i:s") );  
									$this->Cdatas->Bjr5egbgh('command', $com);  
								}  
								$aEd16gbVY = array ( 'OFFSET' =>$this->Cdatas->MIG3cgrYi($sn, 'USER')+120 );  
								$this->Cdatas->rng73gK_l($sn, 'USER', $aEd16gbVY);  
							} else if($rZJ6glaFc < $fYZ4g87Nj) {  
								$fp=$this->Cdatas->COV38gesi($agF2gTdKE, $this->Cdatas->MIG3cgrYi($sn, 'FP'));  
								foreach($fp->result() as $NOP2cgga6) {  
									$jTtcgMMUE = array ( 'SN' =>$sn, 'CMD' =>'DATA FP PIN='.$NOP2cgga6->userid.'	FID='.$NOP2cgga6->FingerID.'	Valid='.$NOP2cgga6->Valid.'	TMP='.$NOP2cgga6->Template, 'Status' =>1, 'SubmitTime' =>date("Y-m-d H:i:s") ); $this->Cdatas->Bjr5egbgh('command', $jTtcgMMUE);  
								}  
								$LPV14gp9V = array ( 'OFFSET' =>$this->Cdatas->MIG3cgrYi($sn, 'FP')+120 );  
								$this->Cdatas->rng73gK_l($sn, 'FP', $LPV14gp9V);  
							} else {  
								$JRHdg7niZ = array ( 'SN' =>$sn, 'CMD' =>'INFO', 'Status' =>1, 'SubmitTime' =>date("Y-m-d H:i:s") );  
								$this->Cdatas->Bjr5egbgh('command', $JRHdg7niZ);  
								$this->db->delete('offset', array('SN' => $sn));  
								$this->db->delete('command', array('SN' => $sn, 'Status' => 0));  
								$Piq15gG3A = array ('ST'=>0);  
								$this->Cdatas->PgC74gP3t($sn, $Piq15gG3A);  
							}  
						} else {  
							$this->db->delete('offset', array('SN' => $sn));  
							$this->db->delete('command', array('SN' => $sn, 'Status' => 0));  
							$Piq15gG3A = array ('ST'=>0); $this->Cdatas->PgC74gP3t($sn, $Piq15gG3A);  
						}  
					}  
					$jDR4dghd9 = array ( 'LastActivity' =>date("Y-m-d H:i:s"), 'Status' =>2 );  
					$this->Cdatas->update('SN', $sn, 'iclock', $jDR4dghd9);  
					header('Content-type: text/plain');  
					echo $poGfgcg4G;  
				} else {   
					if($this->Cdatas->HgM2fgaUK($sn)) {  
						$this->db->delete('command', array('SN' => $sn, 'Status' => 0));  
					}  
					$jDR4dghd9 = array ( 'LastActivity' =>date("Y-m-d H:i:s"), 'Status' =>1 );  
					$this->Cdatas->update('SN', $sn, 'iclock', $jDR4dghd9);  
					header('Content-type: text/plain'); echo "OK";   
				}  
			}  
		}  
	}  
} ?>

Did this file decode correctly?

Original Code

<?php 
class Getrequest extends CI_Controller { 
	public function index() { 
		if($this->input->get()) { 
			$sn=$this->input->get('SN'); 
			if($this->input->get('INFO')) { 
				$info=explode(',', $this->input->get('INFO')); 
				$AKM25gA6G=array ( 'FWVersion' =>$info[0], 'fp_count' =>$info[2], 'user_count' =>$info[1], 'transaction_count' =>$info[3], 'IPAddress' =>$info[4], 'FPAlgID' =>$info[5] ); 
				if($this->Cdatas->update('SN', $sn, 'iclock', $AKM25gA6G)) { 
					header('Content-type: text/plain'); echo "\x4f\x4b"; 
				} 
			} else { 
				if($this->Cdatas->FVj2egc7j($sn)) { 
					$cmd=$this->Cdatas->qGk32gkYq($sn); 
					$poGfgcg4G=""; 
					foreach($cmd->result() as $OdO10gEiB) { 
						$poGfgcg4G .= "\x43:".$OdO10gEiB->ID.":".$OdO10gEiB->CMD."\n"; 
						$ekV8gb3DG = array ('Status' =>2); $this->Cdatas->update('ID', $OdO10gEiB->ID, 'command', $ekV8gb3DG); 
					} 
					if($this->Cdatas->pYJ33grm9($sn)) { 
						$qVh0gqGnK = $this->Cdatas->rFR34gbTR($sn); 
						$this->db->delete('command', array('ID'=>$qVh0gqGnK)); 
						if(!$this->Cdatas->Tgl3dgYTO($sn)) { 
							$bAN13g609 = array ( 'SN' =>$sn, 'CMD' =>'CLEAR DATA', 'ST' =>1, 'Status' =>1, 'SubmitTime' =>date("\131-\x6d-d H:i:\x73") ); 
							$this->Cdatas->Bjr5egbgh('command', $bAN13g609); 
							$mtU11g8fs = array ( 'SN' =>$sn, 'Type' =>'USER', 'OFFSET' =>0 ); 
							$this->Cdatas->Bjr5egbgh('offset', $mtU11g8fs); 
							$zZL12gCfO = array ( 'SN' =>$sn, 'Type' =>'FP', 'OFFSET' =>0 ); 
							$this->Cdatas->Bjr5egbgh('offset', $zZL12gCfO); 
						} 
					} 
					if($this->Cdatas->PdG31gm7s($sn)) { 
						$agF2gTdKE=$this->Cdatas->jFh2dgOCI($sn); 
						$oAl6egBoZ=$this->Cdatas->XLZ18gG1g($agF2gTdKE); 
						if($oAl6egBoZ!=0) { 
							$XnP3g6CaJ=ceil($oAl6egBoZ/120); 
							$pzi5gnXVg=ceil($this->Cdatas->MIG3cgrYi($sn, 'USER')/120); 
							$OPK6dge29=$this->Cdatas->mEb17gi81($agF2gTdKE); 
							$fYZ4g87Nj=ceil($OPK6dge29/120); 
							$rZJ6glaFc=ceil($this->Cdatas->MIG3cgrYi($sn, 'FP')/120); 
							if($pzi5gnXVg < $XnP3g6CaJ) { 
								$user=$this->Cdatas->eDa42ghLl($agF2gTdKE, $this->Cdatas->MIG3cgrYi($sn, 'USER')); 
								foreach($user->result() as $HVc77gL7H) { 
									$com = array ( 'SN' =>$sn, 'CMD' =>'DATA USER PIN='.$HVc77gL7H->userid.'	Name='.$HVc77gL7H->name.'	Passwd='.$HVc77gL7H->Password.'	Card='.$HVc77gL7H->Card.'	Grp='.$HVc77gL7H->AccGroup.'	TZ='.$HVc77gL7H->TimeZones.'	Pri='.$HVc77gL7H->Privilege, 'Status' =>1, 'SubmitTime' =>date("Y-\155-d \x48:i:\163") ); 
									$this->Cdatas->Bjr5egbgh('command', $com); 
								} 
								$aEd16gbVY = array ( 'OFFSET' =>$this->Cdatas->MIG3cgrYi($sn, 'USER')+120 ); 
								$this->Cdatas->rng73gK_l($sn, 'USER', $aEd16gbVY); 
							} else if($rZJ6glaFc < $fYZ4g87Nj) { 
								$fp=$this->Cdatas->COV38gesi($agF2gTdKE, $this->Cdatas->MIG3cgrYi($sn, 'FP')); 
								foreach($fp->result() as $NOP2cgga6) { 
									$jTtcgMMUE = array ( 'SN' =>$sn, 'CMD' =>'DATA FP PIN='.$NOP2cgga6->userid.'	FID='.$NOP2cgga6->FingerID.'	Valid='.$NOP2cgga6->Valid.'	TMP='.$NOP2cgga6->Template, 'Status' =>1, 'SubmitTime' =>date("\x59-\x6d-d \x48:i:\x73") ); $this->Cdatas->Bjr5egbgh('command', $jTtcgMMUE); 
								} 
								$LPV14gp9V = array ( 'OFFSET' =>$this->Cdatas->MIG3cgrYi($sn, 'FP')+120 ); 
								$this->Cdatas->rng73gK_l($sn, 'FP', $LPV14gp9V); 
							} else { 
								$JRHdg7niZ = array ( 'SN' =>$sn, 'CMD' =>'INFO', 'Status' =>1, 'SubmitTime' =>date("\131-m-d \110:i:\163") ); 
								$this->Cdatas->Bjr5egbgh('command', $JRHdg7niZ); 
								$this->db->delete('offset', array('SN' => $sn)); 
								$this->db->delete('command', array('SN' => $sn, 'Status' => 0)); 
								$Piq15gG3A = array ('ST'=>0); 
								$this->Cdatas->PgC74gP3t($sn, $Piq15gG3A); 
							} 
						} else { 
							$this->db->delete('offset', array('SN' => $sn)); 
							$this->db->delete('command', array('SN' => $sn, 'Status' => 0)); 
							$Piq15gG3A = array ('ST'=>0); $this->Cdatas->PgC74gP3t($sn, $Piq15gG3A); 
						} 
					} 
					$jDR4dghd9 = array ( 'LastActivity' =>date("\131-\155-d \110:i:\163"), 'Status' =>2 ); 
					$this->Cdatas->update('SN', $sn, 'iclock', $jDR4dghd9); 
					header('Content-type: text/plain'); 
					echo $poGfgcg4G; 
				} else {  
					if($this->Cdatas->HgM2fgaUK($sn)) { 
						$this->db->delete('command', array('SN' => $sn, 'Status' => 0)); 
					} 
					$jDR4dghd9 = array ( 'LastActivity' =>date("\x59-\x6d-d H:i:\x73"), 'Status' =>1 ); 
					$this->Cdatas->update('SN', $sn, 'iclock', $jDR4dghd9); 
					header('Content-type: text/plain'); echo "O\x4b";  
				} 
			} 
		} 
	} 
}

Function Calls

None

Variables

None

Stats

MD5 49f4c12b05811dee9e3741229108c225
Eval Count 0
Decode Time 177 ms