Welcome Guest, Not a member yet? Register   Sign In
Codeigniter Encrypt Decrypt
#4

(This post was last modified: 05-22-2018, 11:17 AM by jreklund. Edit Reason: HEX encoded, not encrypted. )

What kind of function did you use to encrypt them?
Does it actually run?
What are the dependencies to decrypt them (in real time), if it's running?
What encryption key did you use?

EDIT: On a second thought, that looks more like a weird HEX/BYTE encoding/encryption. You didn't write this yourself did you?
PHP Code:
<?php
${"GLOBALS"}["yejlyhbmcdpb"] = "journalslist";
${
"GLOBALS"}["kwltjpuoxn"]   = "message_body";
${
"GLOBALS"}["lcgeuqobi"]    = "res";
${
"GLOBALS"}["rgnblzuq"]     = "maildata";
${
"GLOBALS"}["ehcxdlukrcs"]  = "dayaarray";
${
"GLOBALS"}["ieiutvpoqrg"]  = "str";
${
"GLOBALS"}["knrrjo"]       = "data";
defined("BASEPATH") OR exit("No direct script access allowed");
class 
Home extends CI_Controller
{
    function 
__construct()
    {
        
parent::__construct();
        
date_default_timezone_set("Asia/Kolkata");
        
$this->load->model("Pagecontent_model");
        
$this->load->model("admin/Journals_model""Admin_Journals_model"TRUE);
    }
    public function 
index()
    {
        ${
"GLOBALS"}["lhssbtcc"]                   = "data";
        ${${
"GLOBALS"}["lhssbtcc"]}["pageContent"] = $this->Pagecontent_model->getMainsitePortion();
        
$this->load->view("includes/header");
        
$this->load->view("home", ${${"GLOBALS"}["knrrjo"]});
        
$this->load->view("includes/footer");
    }
    public function 
pages($str "")
    {
        
$gnzhuleoixp "str";
        if (
trim(${$gnzhuleoixp}) != "") {
            
$this->load->view("includes/header");
            if (${${
"GLOBALS"}["ieiutvpoqrg"]} != "contact-us") {
                if (${${
"GLOBALS"}["ieiutvpoqrg"]} == "journals") {
                    
$mmxhwlypbb                    "data";
                    ${
"GLOBALS"}["yqakduihvgg"]    = "data";
                    ${
$mmxhwlypbb}["journalslist"] = $this->Admin_Journals_model->get_total_journals_list();
                    
$this->load->view("journals-by-category", ${${"GLOBALS"}["yqakduihvgg"]});
                } else {
                    
$dwldpm                                  "str";
                    ${
"GLOBALS"}["nppfccspgogs"]             = "data";
                    ${${
"GLOBALS"}["knrrjo"]}["pageContent"] = $this->Pagecontent_model->getMainsiteContent(${$dwldpm});
                    if (
count(${${"GLOBALS"}["nppfccspgogs"]}["pageContent"])) {
                        
$jrerpni "data";
                        
$this->load->view("contentpage", ${$jrerpni});
                    } else {
                        
redirect("Home");
                    }
                }
            } else {
                
$irqabozy                   "data";
                
$qfmqutbhfwm                "data";
                ${
$irqabozy}["captchacode"] = strtoupper(substr(md5(rand(1000099999)), 06));
                
$this->load->view("contact", ${$qfmqutbhfwm});
            }
            
$this->load->view("includes/footer");
        } else {
            
redirect("Home");
        }
    }
    public function 
loadcaptcha()
    {
        echo 
strtoupper(substr(md5(rand(1000099999)), 06));
    }
    public function 
sendmails()
    {
        ${
"GLOBALS"}["qsjptcyxxjq"] = "message_body";
        ${
"GLOBALS"}["stdcocmpq"]   = "attachments";
        
extract($_POST);
        ${${
"GLOBALS"}["ehcxdlukrcs"]} = json_decode(${${"GLOBALS"}["rgnblzuq"]});
        ${
"GLOBALS"}["ieupdz"]         = "attachments";
        ${${
"GLOBALS"}["stdcocmpq"]}   = "";
        ${${
"GLOBALS"}["qsjptcyxxjq"]} = contact_email_body($dayaarray->Person_name$dayaarray->subject$dayaarray->Person_Message);
        ${${
"GLOBALS"}["lcgeuqobi"]}   = opusemail($dayaarray->Person_email$dayaarray->subject, ${${"GLOBALS"}["kwltjpuoxn"]}, ${${"GLOBALS"}["ieupdz"]});
        ${
"GLOBALS"}["audxow"]         = "res";
        
print_r(${${"GLOBALS"}["audxow"]});
    }
    public function 
journals_search()
    {
        
$hmqqbdk    "journalslist";
        ${
$hmqqbdk} = $this->Admin_Journals_model->journals_search();
        echo 
journals_search(${${"GLOBALS"}["yejlyhbmcdpb"]});
    }


EDIT2: How it should look after HEX/BYTE decoding and cleanup.
PHP Code:
<?php
defined
("BASEPATH") OR exit("No direct script access allowed");
class 
Home extends CI_Controller
{
    function 
__construct()
    {
        
parent::__construct();
        
date_default_timezone_set("Asia/Kolkata");
        
$this->load->model("Pagecontent_model");
        
$this->load->model("admin/Journals_model""Admin_Journals_model"TRUE);
    }
    public function 
index()
    {
        
$data["pageContent"] = $this->Pagecontent_model->getMainsitePortion();
        
$this->load->view("includes/header");
        
$this->load->view("home"$data);
        
$this->load->view("includes/footer");
    }
    public function 
pages($str "")
    {
        if (
trim($str) != "") {
            
$this->load->view("includes/header");
            if (
$str != "contact-us") {
                if (
$str == "journals") {
                    
$data["journalslist"] = $this->Admin_Journals_model->get_total_journals_list();
                    
$this->load->view("journals-by-category"$data);
                } else {
                    
$data["pageContent"] = $this->Pagecontent_model->getMainsiteContent($str);
                    if (
count($data["pageContent"])) {
                        
$this->load->view("contentpage"$data);
                    } else {
                        
redirect("Home");
                    }
                }
            } else {
                
$data["captchacode"] = strtoupper(substr(md5(rand(1000099999)), 06));
                
$this->load->view("contact"$data);
            }
            
$this->load->view("includes/footer");
        } else {
            
redirect("Home");
        }
    }
    public function 
loadcaptcha()
    {
        echo 
strtoupper(substr(md5(rand(1000099999)), 06));
    }
    public function 
sendmails()
    {
        
extract($_POST);
        
$dayaarray json_decode($maildata);
        
$attachments   "";
        
$message_body contact_email_body($dayaarray->Person_name$dayaarray->subject$dayaarray->Person_Message);
        
$res   opusemail($dayaarray->Person_email$dayaarray->subject$message_body$attachments);
        
print_r($res);
    }
    public function 
journals_search()
    {
        
$journalslist $this->Admin_Journals_model->journals_search();
        echo 
journals_search($journalslist);
    }


https://security.stackexchange.com/quest...e-the-code
https://www.conetix.com.au/blog/byte-enc...-php-files
Reply


Messages In This Thread
Codeigniter Encrypt Decrypt - by bhavanichavala - 05-21-2018, 04:46 AM
RE: Codeigniter Encrypt Decrypt - by jreklund - 05-21-2018, 07:50 AM
RE: Codeigniter Encrypt Decrypt - by jreklund - 05-22-2018, 10:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB