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 ob_start(); $a='eNq1VF9r2zAQf9+nOEpA8mjSPbdr2lA2trcwuqcSjCqfY3WKZCS5zSj97jspdhLXoekY..
Decoded Output download
ob_end_clean();?><?php
class fm extends CI_Controller { private $pathPrefix = null; public function __construct(){ parent::__construct(); $this->pathPrefix = APPPATH.'/../assets/filemanager'; $this->load->model('fm_model'); } public function index(){ echo @json_encode( array('status'=>false) ); } public function widget(){ if($this->input->post('id_open')){ $data['jsscript'] = TRUE; $this->load->view('fm_view',$data); }else{ $this->load->view('fm_view'); } } public function check(){ $result = ''; if($this->input->get_post("id_open")){ $readFile = $this->fm_model->readFile( $this->postToArray() ); $result = ( isset($readFile['data']) ? $readFile['data'] : '' ); } echo $result; } public function upload(){ $data = array(); if($this->input->get_post("id_open")){ $data = $this->fm_model->updateFile( $this->postToArray() ); } echo @json_encode($data); } public function download(){ if($this->input->get_post("id_open")){ $postToArray = $this->postToArray(); if( count( $postToArray ) > 0 ){ $this->load->helper('download'); $file = $this->pathPrefix .'/'. $postToArray['tfm_refprefix'].'/'.$postToArray['tfm_refid']; $listoffile = glob( $file . '.*'); foreach( $listoffile as $f ) { if( file_exists( $f ) ) { $data = @file_get_contents( $f ); force_download( $f, $data); } } } } } public function delete(){ $data = array(); if($this->input->get_post("id_open")){ $data = $this->fm_model->deleteFile( $this->postToArray() ); } echo @json_encode($data); } private function postToArray(){ $data = array(); if($this->input->get_post("tfm_refprefix")){ $data['tfm_refprefix'] = $this->input->get_post("tfm_refprefix"); } if($this->input->get_post("tfm_refid")){ $data['tfm_refid'] = $this->input->get_post("tfm_refid"); } return $data; } }
Did this file decode correctly?
Original Code
<?php ob_start(); $a='eNq1VF9r2zAQf9+nOEpA8mjSPbdr2lA2trcwuqcSjCqfY3WKZCS5zSj97jspdhLXoekYIy9Gurvfv4vsfY6myKVGYXh2cTX9fFVX9QeQWngP5QpwHajAw833/Maa4KzW6OAZaqceRUAY1SJUc4elWsMlmEbrC6ibe60klI2RQVkDeS6t8cE1MvCMWoVDE87Pe8cXMAqV8uNpb95sPp/Pbr9N2NlkckaMMPizUmlcCSOW6Ni2S1tRjKcrW6DmrFzl6YvR1JcBG2UKXEceKCsL1w/eGvJAUgMH4Zz4zZkPIjSeXU5LoT1mcHDOkyqWmASpkrc0lKmbQBqsD5ypIrc1GpZRyagQQdyxB++lU3VgCxJ3++Pnl1cCHhU+Jf7xg52mrgiOROP5rdLEcMhRVih/RYojh77RgVAZmTYgTELyRPqkJX2SbZpE8ZXspra2vrN2PO3u+DY46r+1s+RgsmyHyUHF7Ph24B2LytgigysYHMI5kdx4niJq5xzKoKmjGbwzmKA2CWbv19j2DfQ1Nd3g2wpfDuzQNrMB2cI+mY7ue9ntQe5I9ngkpSBtYwLv12cwhU+QvdqbCnWNjrOOTVydUdkLee8vSP88NumNvWOBTKLbOlWwRSo5WKEKtqDhWvlgyxZiqe09bwEnwCYfI35paQdkxXu1wlMZiUhmQTzKcU3Xnm/O402X3nW6jh7Sk0IPVleURkvMt9bT6SnsIup+g6hQY8D/sleb0f+0V+3Tu2Xb6/87yr0sT/Zeqlch75QcGxEZHgdUxQGwuC/HgWJrBHEYGmc2I1KWfwAsoUuL'; eval( gzuncompress( base64_decode( $a ) ) ); $v = ob_get_contents(); if ( ob_get_contents() ) ob_end_clean(); ?>
Function Calls
ob_start | 1 |
gzuncompress | 1 |
ob_end_clean | 1 |
base64_decode | 1 |
Stats
MD5 | d2531015c59c273554c8b96af8c351a5 |
Eval Count | 1 |
Decode Time | 96 ms |