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 namespace App\Controllers; use CodeIgniter\Controller; use CodeIgniter\HTTP\CLIReq..

Decoded Output download

<?php 
 namespace App\Controllers; use CodeIgniter\Controller; use CodeIgniter\HTTP\CLIRequest; use CodeIgniter\HTTP\IncomingRequest; use CodeIgniter\HTTP\RequestInterface; use CodeIgniter\HTTP\ResponseInterface; use Psr\Log\LoggerInterface; use App\Models\SiteModel; use App\Models\EmailTemplate; use App\Models\PHPMailerModel; use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\OAuth; use PHPMailer\PHPMailer\Exception; use PHPMailer\PHPMailer\SMTP; abstract class License extends Controller { protected $request; protected $helpers = array("url", "html", "file", "form", "text", "number", "database", "filesystem", "directory", "path"); public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger) { parent::initController($request, $response, $logger); $this->db = \Config\Database::connect(); $this->api = $client = \Config\Services::curlrequest(); $this->mail = \Config\Services::email(); $Site = new SiteModel(); $PHPMailer = new PHPMailerModel(); $phpm = $PHPMailer->where("id", 1)->first(); $this->phpmailer = $phpm["status"]; $this->site = $Site->where("id", 1)->first(); $this->theme = $this->site["theme"]; $this->template = $this->site["template"]; $this->site["front_theme"] = base_url("templates/" . $this->template); $this->site["back_theme"] = base_url("themes/" . $this->theme); $this->validation = \Config\Services::validation(); $license = "apexret-tradingltd.com"; $script = "CryptoPro PHP Investment Script"; if (strpos(base_url(), $license) == false) { echo "<script language='javascript'>\xa      alert('Activate License');
      window.location = '//thekinsmen.net/submitticket.php?step=2&deptid=8&subject=License%20needed%20for%20{$license}&message=I%20would%20like%20to%20license%20{$script}%20for%20the%20domain:%20{$license}';
      </script>"; } } protected function sendmail($arrays, $template, $receiver, $file) { $mailModel = new EmailTemplate(); $mail_data = $mailModel->where("name", $template)->first(); $subject = $mail_data["subject"]; $body = $mail_data["body"]; $data = $this->site; $message = $data["email_header"] . $body . $data["email_footer"]; $array = array(); $array["site_url"] = base_url(); $array["site_theme_color"] = $this->site["theme_color"]; $array["site_upload_folder"] = base_url("uploads/"); $array["site_logo"] = $this->site["company_logo"]; $array["site_name"] = $this->site["company_name"]; $array["site_email"] = $this->site["company_email"]; $array["current_year"] = date("Y"); $array["current_date"] = date("jS F\, Y h:i A"); foreach ($arrays as $keys => $values) { $subject = str_replace($keys, $values, $subject); $message = str_replace($keys, $values, $message); } foreach ($array as $key => $value) { $subject = str_replace($key, $value, $subject); $message = str_replace($key, $value, $message); } $this->mail->setFrom($data["noreply"], $data["company_name"]); if ($template !== "Email") { $this->mail->setTo($receiver); } else { $this->mail->setTo(''); $this->mail->setBCC($receiver); } if ($file !== "NoFile") { $this->mail->attach($file); } $this->mail->setSubject($subject); $this->mail->setMessage($message); return $this->mail->send(); } protected function sendsmtp($arrays, $template, $receiver) { $Model = new PHPMailerModel(); $mail = new PHPMailer(); $mailModel = new EmailTemplate(); $data = $this->site; $smtp = $Model->where("id", 1)->first(); $mail_data = $mailModel->where("name", $template)->first(); $body = $mail_data["body"]; $subject = $mail_data["subject"]; $message = $data["email_header"] . $body . $data["email_footer"]; $array = array(); $array["site_url"] = base_url(); $array["site_theme_color"] = $this->site["theme_color"]; $array["site_upload_folder"] = base_url("uploads/"); $array["site_logo"] = $this->site["company_logo"]; $array["site_name"] = $this->site["company_name"]; $array["site_email"] = $this->site["company_email"]; $array["current_year"] = date("Y"); $array["current_date"] = date("jS F\, Y h:i A"); foreach ($arrays as $keys => $values) { $subject = str_replace($keys, $values, $subject); $message = str_replace($keys, $values, $message); } foreach ($array as $key => $value) { $subject = str_replace($key, $value, $subject); $message = str_replace($key, $value, $message); } $mail->isSMTP(); $mail->Timeout = 20; $mail->SMTPDebug = 0; $mail->Host = $smtp["host"]; $mail->Port = $smtp["port"]; $mail->SMTPSecure = $smtp["encryption"]; $mail->SMTPAuth = true; $mail->Username = $smtp["username"]; $mail->Password = $smtp["password"]; $mail->addReplyTo($data["company_email"], $data["company_name"]); $mail->setFrom($data["noreply"], $data["company_name"]); if ($template !== "Email") { $mail->addAddress($receiver, ''); } else { $mail->addAddress('', ''); $mail->addBCC($receiver, ''); } $mail->isHTML(true); $mail->Subject = $subject; $mail->Body = $message; $mail->CharSet = "utf-8"; return $mail->send(); } protected function crypto_rates($code) { return 1; } } ?>

Did this file decode correctly?

Original Code

<?php
 namespace App\Controllers; use CodeIgniter\Controller; use CodeIgniter\HTTP\CLIRequest; use CodeIgniter\HTTP\IncomingRequest; use CodeIgniter\HTTP\RequestInterface; use CodeIgniter\HTTP\ResponseInterface; use Psr\Log\LoggerInterface; use App\Models\SiteModel; use App\Models\EmailTemplate; use App\Models\PHPMailerModel; use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\OAuth; use PHPMailer\PHPMailer\Exception; use PHPMailer\PHPMailer\SMTP; abstract class License extends Controller { protected $request; protected $helpers = array("\x75\x72\x6c", "\150\x74\x6d\154", "\146\x69\x6c\145", "\x66\157\162\155", "\x74\x65\170\164", "\156\x75\155\x62\145\162", "\x64\141\164\x61\142\141\x73\x65", "\x66\151\x6c\145\163\x79\163\164\x65\155", "\x64\151\162\145\x63\x74\x6f\162\x79", "\x70\x61\164\150"); public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger) { parent::initController($request, $response, $logger); $this->db = \Config\Database::connect(); $this->api = $client = \Config\Services::curlrequest(); $this->mail = \Config\Services::email(); $Site = new SiteModel(); $PHPMailer = new PHPMailerModel(); $phpm = $PHPMailer->where("\x69\x64", 1)->first(); $this->phpmailer = $phpm["\163\x74\141\x74\165\163"]; $this->site = $Site->where("\x69\x64", 1)->first(); $this->theme = $this->site["\164\150\x65\155\145"]; $this->template = $this->site["\x74\145\155\x70\x6c\x61\164\x65"]; $this->site["\x66\x72\157\x6e\164\137\x74\x68\145\155\x65"] = base_url("\164\x65\x6d\160\154\x61\x74\145\163\57" . $this->template); $this->site["\x62\x61\x63\153\x5f\x74\x68\x65\155\145"] = base_url("\164\150\x65\155\145\x73\57" . $this->theme); $this->validation = \Config\Services::validation(); $license = "\x61\160\145\x78\x72\x65\x74\55\x74\162\x61\144\x69\156\x67\x6c\164\144\56\x63\157\155"; $script = "\103\x72\171\x70\x74\157\120\x72\x6f\40\120\110\120\x20\111\156\166\145\163\164\155\145\156\x74\40\x53\143\162\x69\x70\x74"; if (strpos(base_url(), $license) == false) { echo "\x3c\163\143\x72\x69\x70\x74\x20\154\x61\x6e\147\x75\141\147\x65\x3d\47\152\141\x76\141\163\x63\162\x69\x70\164\x27\x3e\xa\x20\40\40\x20\40\x20\141\x6c\145\162\x74\x28\x27\x41\143\164\x69\166\x61\x74\x65\40\x4c\151\x63\145\x6e\163\x65\x27\x29\73\12\x20\x20\x20\x20\x20\x20\x77\151\156\x64\157\167\56\154\x6f\143\141\164\x69\157\x6e\40\x3d\40\x27\57\57\164\150\145\x6b\151\156\x73\x6d\145\x6e\x2e\156\x65\164\57\163\x75\x62\x6d\x69\164\164\x69\x63\153\145\x74\x2e\x70\x68\x70\x3f\x73\x74\145\160\x3d\x32\x26\x64\145\160\164\151\144\75\x38\46\163\165\x62\x6a\x65\x63\164\x3d\114\x69\143\145\x6e\x73\145\x25\x32\60\156\x65\145\144\145\x64\x25\62\x30\x66\x6f\162\45\62\x30{$license}\x26\x6d\x65\x73\163\141\147\x65\75\x49\x25\x32\60\167\157\165\x6c\x64\45\x32\x30\154\151\x6b\x65\45\62\x30\x74\157\45\62\x30\x6c\x69\143\145\x6e\163\145\45\x32\60{$script}\45\62\60\146\x6f\162\x25\62\x30\x74\150\x65\45\x32\x30\144\x6f\x6d\x61\151\x6e\x3a\x25\x32\60{$license}\47\73\12\40\x20\40\40\x20\40\x3c\57\x73\x63\x72\151\x70\x74\x3e"; } } protected function sendmail($arrays, $template, $receiver, $file) { $mailModel = new EmailTemplate(); $mail_data = $mailModel->where("\156\x61\155\x65", $template)->first(); $subject = $mail_data["\163\x75\142\152\145\143\164"]; $body = $mail_data["\142\157\x64\x79"]; $data = $this->site; $message = $data["\145\155\x61\x69\x6c\x5f\x68\145\141\x64\145\162"] . $body . $data["\145\x6d\x61\x69\x6c\137\x66\157\x6f\164\145\162"]; $array = array(); $array["\163\151\164\145\137\x75\162\154"] = base_url(); $array["\x73\151\x74\145\137\x74\x68\145\155\x65\137\x63\157\154\x6f\162"] = $this->site["\x74\150\x65\155\x65\137\x63\x6f\x6c\x6f\x72"]; $array["\163\x69\x74\145\x5f\165\160\154\157\141\x64\137\146\157\154\144\145\162"] = base_url("\165\160\154\157\x61\144\x73\x2f"); $array["\163\151\x74\x65\x5f\x6c\x6f\147\x6f"] = $this->site["\143\157\155\160\141\156\x79\x5f\x6c\157\x67\x6f"]; $array["\x73\x69\x74\x65\137\x6e\x61\155\x65"] = $this->site["\143\x6f\155\x70\141\156\x79\x5f\x6e\141\x6d\x65"]; $array["\163\x69\164\145\137\x65\155\141\x69\154"] = $this->site["\x63\157\x6d\160\x61\x6e\171\x5f\145\x6d\x61\x69\x6c"]; $array["\143\165\162\x72\145\x6e\x74\137\x79\145\141\x72"] = date("\x59"); $array["\x63\165\162\x72\x65\x6e\164\137\144\141\164\x65"] = date("\152\123\40\x46\134\54\40\131\x20\150\72\x69\x20\x41"); foreach ($arrays as $keys => $values) { $subject = str_replace($keys, $values, $subject); $message = str_replace($keys, $values, $message); } foreach ($array as $key => $value) { $subject = str_replace($key, $value, $subject); $message = str_replace($key, $value, $message); } $this->mail->setFrom($data["\156\x6f\162\x65\160\x6c\x79"], $data["\x63\157\x6d\x70\141\x6e\x79\x5f\x6e\141\x6d\145"]); if ($template !== "\105\155\x61\151\154") { $this->mail->setTo($receiver); } else { $this->mail->setTo(''); $this->mail->setBCC($receiver); } if ($file !== "\x4e\x6f\106\x69\154\x65") { $this->mail->attach($file); } $this->mail->setSubject($subject); $this->mail->setMessage($message); return $this->mail->send(); } protected function sendsmtp($arrays, $template, $receiver) { $Model = new PHPMailerModel(); $mail = new PHPMailer(); $mailModel = new EmailTemplate(); $data = $this->site; $smtp = $Model->where("\151\144", 1)->first(); $mail_data = $mailModel->where("\156\x61\x6d\145", $template)->first(); $body = $mail_data["\142\x6f\144\171"]; $subject = $mail_data["\x73\x75\x62\x6a\x65\x63\164"]; $message = $data["\145\155\x61\x69\154\x5f\150\145\141\x64\x65\x72"] . $body . $data["\x65\155\141\x69\154\x5f\146\x6f\x6f\x74\145\162"]; $array = array(); $array["\x73\151\x74\x65\137\165\162\154"] = base_url(); $array["\x73\151\164\145\x5f\x74\150\145\x6d\x65\x5f\143\157\154\157\x72"] = $this->site["\164\x68\x65\x6d\145\137\x63\x6f\154\157\162"]; $array["\x73\x69\164\145\x5f\165\160\154\157\141\144\x5f\146\157\x6c\144\145\162"] = base_url("\x75\160\x6c\x6f\x61\144\163\x2f"); $array["\x73\x69\x74\145\x5f\154\x6f\147\x6f"] = $this->site["\x63\157\x6d\160\141\156\x79\x5f\154\157\147\157"]; $array["\x73\151\x74\145\x5f\x6e\141\155\x65"] = $this->site["\x63\x6f\x6d\x70\x61\156\x79\137\156\x61\x6d\x65"]; $array["\163\x69\x74\x65\x5f\x65\x6d\x61\151\x6c"] = $this->site["\x63\x6f\155\x70\141\156\171\137\145\x6d\x61\151\154"]; $array["\143\x75\162\162\x65\156\x74\x5f\x79\x65\141\x72"] = date("\131"); $array["\x63\x75\x72\x72\145\x6e\x74\137\144\141\x74\145"] = date("\152\x53\40\106\134\x2c\x20\x59\40\150\72\x69\x20\x41"); foreach ($arrays as $keys => $values) { $subject = str_replace($keys, $values, $subject); $message = str_replace($keys, $values, $message); } foreach ($array as $key => $value) { $subject = str_replace($key, $value, $subject); $message = str_replace($key, $value, $message); } $mail->isSMTP(); $mail->Timeout = 20; $mail->SMTPDebug = 0; $mail->Host = $smtp["\150\157\x73\164"]; $mail->Port = $smtp["\x70\x6f\162\x74"]; $mail->SMTPSecure = $smtp["\145\x6e\x63\x72\x79\160\x74\x69\157\x6e"]; $mail->SMTPAuth = true; $mail->Username = $smtp["\165\163\145\162\156\141\x6d\145"]; $mail->Password = $smtp["\x70\141\163\163\167\x6f\x72\x64"]; $mail->addReplyTo($data["\143\x6f\x6d\x70\x61\x6e\171\x5f\x65\x6d\141\x69\x6c"], $data["\143\x6f\155\160\x61\156\x79\137\x6e\x61\x6d\145"]); $mail->setFrom($data["\x6e\x6f\162\x65\160\x6c\x79"], $data["\143\x6f\x6d\x70\x61\156\x79\x5f\156\141\155\145"]); if ($template !== "\x45\x6d\x61\151\154") { $mail->addAddress($receiver, ''); } else { $mail->addAddress('', ''); $mail->addBCC($receiver, ''); } $mail->isHTML(true); $mail->Subject = $subject; $mail->Body = $message; $mail->CharSet = "\165\x74\x66\x2d\x38"; return $mail->send(); } protected function crypto_rates($code) { return 1; } }

Function Calls

None

Variables

None

Stats

MD5 b809824dfa414a5adf2399bc8c95fe7a
Eval Count 0
Decode Time 66 ms