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 require_once "soforp_model.php"; class NeoSeoModel extends SoforpModel { pri..
Decoded Output download
<?php
require_once "soforp_model.php";
class NeoSeoModel extends SoforpModel
{
private $cipher = NULL;
private $private_key = NULL;
protected $_module_code = "OLD_Version";
protected $access_levels = ["install" => 0, "uninstall" => 0, "installTables" => 0, "initParams" => 0];
private $license = NULL;
protected $options_levels = NULL;
public function __construct($registry)
{
parent::__construct($registry);
$this->cipher = "AES-128-CBC";
}
private function _obfuscated_FF8AB3AE93979EBB90BE8296B3AE9DA48AA699A3849491_()
{
if (defined("HTTPS_CATALOG")) {
$this->db->query("UPDATE " . DB_PREFIX . "setting SET value=0 WHERE `key` like '%" . $this->_module_code . "_status%'");
}
$this->config->set($this->_moduleSysName() . "_status", 0);
$this->log->write("Disable module " . $this->_module_code . " for " . $_SERVER["HTTP_HOST"]);
}
protected function setAccessLevels($data)
{
$this->access_levels = array_merge($this->access_levels, $data);
}
protected function isAccesible($name)
{
if (in_array($name, ["setOptionsLevels", "addAccessLevels", "__construct", "install", "upgrade", "installTables", "uninstall"])) {
return true;
}
if (array_key_exists($name, $this->access_levels) && $this->access_levels[$name] <= $this->getWorkMode()) {
return true;
}
return false;
}
private function _obfuscated_FF9FA39D89C086ADACB6A49FB1AF9AA0A4A094A7BCA8A1_()
{
if (isset($this->session) && $this->session !== NULL) {
$this->session->data["error_warning"] = "";
}
if ($this->_module_code == "OLD_Version" && !file_exists(DIR_APPLICATION . "model/tool/" . $this->_module_code . "_info.php")) {
$this->license = ["mode" => 2, "period" => 0, "date" => "1980-01-01"];
} else {
$this->load->model("tool/" . $this->_module_code . "_info");
$this->private_key = $this->{"model_tool_" . $this->_module_code . "_info"}->getKey();
$_obfuscated_0D14273523082327381D1428211322182311345B3E3632_ = $this->config->get($this->_module_code . "_module_key");
$_obfuscated_0D14273523082327381D1428211322182311345B3E3632_ = base64_decode($_obfuscated_0D14273523082327381D1428211322182311345B3E3632_);
$this->language->load($this->_route . "/" . $this->_moduleSysName());
if ($_obfuscated_0D14273523082327381D1428211322182311345B3E3632_ == "" || strlen($_obfuscated_0D14273523082327381D1428211322182311345B3E3632_) < _obfuscated_0D3102061B33215B1E2C0D0E051A2629123B2C0E2C1001_($this->cipher)) {
$this->license = ["mode" => 0, "period" => 0, "date" => "1980-01-01"];
$this->session->data["error_warning"] = $this->language->get("text_license_error_key");
$this->_obfuscated_FF8AB3AE93979EBB90BE8296B3AE9DA48AA699A3849491_();
return false;
}
$_obfuscated_0D3B0B2221170434112D1606242C0D121F350926344001_ = substr($_obfuscated_0D14273523082327381D1428211322182311345B3E3632_, 0, 32);
$_obfuscated_0D161F0C042D3836080B080D37275B1E0517120F081922_ = substr($_obfuscated_0D14273523082327381D1428211322182311345B3E3632_, 32);
$_obfuscated_0D252A1F29361113043B22045B0A292409291603192D32_ = _obfuscated_0D3C272E1D0F130F3140392F131D3440192F24093F0A01_($_obfuscated_0D161F0C042D3836080B080D37275B1E0517120F081922_, $this->cipher, $this->private_key, $_obfuscated_0D0D1F04160A165B240D052F273F3122092D2613012511_ = OPENSSL_RAW_DATA, "");
$_obfuscated_0D2E0105140E321B5B273F10372839341A3F280C0E3F32_ = hash_hmac("sha256", $_obfuscated_0D161F0C042D3836080B080D37275B1E0517120F081922_, $this->private_key, $_obfuscated_0D0928220B102E5C085B2D1B5B0F08070D5C251C051722_ = true);
$this->private_key = "InAvAliblePrivateKey";
if (_obfuscated_0D162D331D383B120A19341D2521221137352512322132_($_obfuscated_0D3B0B2221170434112D1606242C0D121F350926344001_, $_obfuscated_0D2E0105140E321B5B273F10372839341A3F280C0E3F32_)) {
if ($_obfuscated_0D020C32302B3417011C2E330C0A0C1D103C30102D1E32_ = json_decode($_obfuscated_0D252A1F29361113043B22045B0A292409291603192D32_, true)) {
if (!isset($_obfuscated_0D020C32302B3417011C2E330C0A0C1D103C30102D1E32_["domain"]) || !isset($_obfuscated_0D020C32302B3417011C2E330C0A0C1D103C30102D1E32_["date"]) || !isset($_obfuscated_0D020C32302B3417011C2E330C0A0C1D103C30102D1E32_["period"]) || !isset($_obfuscated_0D020C32302B3417011C2E330C0A0C1D103C30102D1E32_["mode"])) {
$this->license = ["mode" => 0, "period" => 0, "date" => "1980-01-01"];
$this->license["error"] = $this->language->get("text_license_error_key");
$this->_obfuscated_FF8AB3AE93979EBB90BE8296B3AE9DA48AA699A3849491_();
return false;
}
if (strpos($_SERVER["HTTP_HOST"], $_obfuscated_0D020C32302B3417011C2E330C0A0C1D103C30102D1E32_["domain"]) !== false || isset($_SERVER["argv"]) && isset($_SERVER["argv"][0])) {
if (0 < $_obfuscated_0D020C32302B3417011C2E330C0A0C1D103C30102D1E32_["period"]) {
if (!($_obfuscated_0D29023136233837212A1E181A0B1D0A30093D07020711_ = DateTime::createFromFormat("Y-m-d", $_obfuscated_0D020C32302B3417011C2E330C0A0C1D103C30102D1E32_["date"]))) {
$this->license = ["mode" => 0, "period" => 0, "date" => "1980-01-01"];
$this->license["error"] = $this->language->get("text_license_error_key");
$this->_obfuscated_FF8AB3AE93979EBB90BE8296B3AE9DA48AA699A3849491_();
return false;
}
if (new DateTime() <= $_obfuscated_0D29023136233837212A1E181A0B1D0A30093D07020711_->add(new DateInterval("P" . $_obfuscated_0D020C32302B3417011C2E330C0A0C1D103C30102D1E32_["period"] . "D"))) {
$this->license = $_obfuscated_0D020C32302B3417011C2E330C0A0C1D103C30102D1E32_;
return true;
}
$this->license = ["mode" => 0, "period" => 0, "date" => "1980-01-01"];
$this->_obfuscated_FF8AB3AE93979EBB90BE8296B3AE9DA48AA699A3849491_();
$this->license["error"] = $this->language->get("text_license_end_period");
} else {
$this->license = ["mode" => 0, "period" => 0, "date" => "1980-01-01"];
$this->_obfuscated_FF8AB3AE93979EBB90BE8296B3AE9DA48AA699A3849491_();
$this->license["error"] = $this->language->get("text_license_end_period");
}
} else {
$this->license = ["mode" => 0, "period" => 0, "date" => "1980-01-01"];
$this->_obfuscated_FF8AB3AE93979EBB90BE8296B3AE9DA48AA699A3849491_();
$this->license["error"] = $this->language->get("text_license_error_domain");
}
} else {
$this->license = ["mode" => 0, "period" => 0, "date" => "1980-01-01"];
$this->_obfuscated_FF8AB3AE93979EBB90BE8296B3AE9DA48AA699A3849491_();
$this->license["error"] = $this->language->get("text_license_error_key");
}
} else {
$this->license = ["mode" => 0, "period" => 0, "date" => "1980-01-01"];
$this->_obfuscated_FF8AB3AE93979EBB90BE8296B3AE9DA48AA699A3849491_();
$this->license["error"] = $this->language->get("text_license_error_key");
}
$this->session->data["error_warning"] = $this->license["error"];
$this->_obfuscated_FF8AB3AE93979EBB90BE8296B3AE9DA48AA699A3849491_();
return false;
}
}
public function getWorkMode()
{
if (!$this->license) {
$this->_obfuscated_FF9FA39D89C086ADACB6A49FB1AF9AA0A4A094A7BCA8A1_();
}
return $this->license["mode"];
}
public function getValidTo()
{
$this->language->load($this->_route . "/" . $this->_moduleSysName());
if (!$this->license) {
$this->_obfuscated_FF9FA39D89C086ADACB6A49FB1AF9AA0A4A094A7BCA8A1_();
}
if (0 < $this->license["mode"]) {
if (99999 <= $this->license["period"]) {
return $this->language->get("text_license_lifetime");
}
$est_date = new DateTime($this->license["date"]);
return $est_date->add(new DateInterval("P" . $this->license["period"] . "D"))->format("d.m.Y");
}
return false;
}
public function getEstDays()
{
$this->language->load($this->_route . "/" . $this->_moduleSysName());
if (!$this->license) {
$this->_obfuscated_FF9FA39D89C086ADACB6A49FB1AF9AA0A4A094A7BCA8A1_();
}
if (0 < $this->license["mode"]) {
if (99999 <= $this->license["period"]) {
return $this->language->get("text_license_lifetime");
}
$est_date = DateTime::createFromFormat("Y-m-d", $this->license["date"]);
$est_date->add(new DateInterval("P" . $this->license["period"] . "D"));
return date_diff($est_date, new DateTime())->days;
}
$this->_obfuscated_FF8AB3AE93979EBB90BE8296B3AE9DA48AA699A3849491_();
return 0;
}
public function getOptionsLevels()
{
return $this->options_levels;
}
public function getLicenseError()
{
if (isset($this->license["error"]) && $this->license["error"] != "") {
return $this->license["error"];
}
return "";
}
public function addSettingData($code = "", $key = "", $value = "", $store_id = 0)
{
$this->db->query("DELETE FROM `" . DB_PREFIX . "setting` WHERE `code` = '" . $this->db->escape($code) . "' AND `key` = '" . $this->db->escape($key) . "'");
$sql = "INSERT INTO `" . DB_PREFIX . "setting` (`setting_id`, `store_id`, `code`, `key`, `value`, `serialized`) VALUES (NULL, '" . (int) $store_id . "',
'" . $this->db->escape($code) . "',
'" . $this->db->escape($key) . "',
'" . $this->db->escape($value) . "',
'0'
)";
$this->db->query($sql);
}
}
?>
Did this file decode correctly?
Original Code
<?php
require_once "soforp_model.php";
class NeoSeoModel extends SoforpModel
{
private $cipher = NULL;
private $private_key = NULL;
protected $_module_code = "OLD_Version";
protected $access_levels = ["install" => 0, "uninstall" => 0, "installTables" => 0, "initParams" => 0];
private $license = NULL;
protected $options_levels = NULL;
public function __construct($registry)
{
parent::__construct($registry);
$this->cipher = "AES-128-CBC";
}
private function _obfuscated_FF8AB3AE93979EBB90BE8296B3AE9DA48AA699A3849491_()
{
if (defined("HTTPS_CATALOG")) {
$this->db->query("UPDATE " . DB_PREFIX . "setting SET value=0 WHERE `key` like '%" . $this->_module_code . "_status%'");
}
$this->config->set($this->_moduleSysName() . "_status", 0);
$this->log->write("Disable module " . $this->_module_code . " for " . $_SERVER["HTTP_HOST"]);
}
protected function setAccessLevels($data)
{
$this->access_levels = array_merge($this->access_levels, $data);
}
protected function isAccesible($name)
{
if (in_array($name, ["setOptionsLevels", "addAccessLevels", "__construct", "install", "upgrade", "installTables", "uninstall"])) {
return true;
}
if (array_key_exists($name, $this->access_levels) && $this->access_levels[$name] <= $this->getWorkMode()) {
return true;
}
return false;
}
private function _obfuscated_FF9FA39D89C086ADACB6A49FB1AF9AA0A4A094A7BCA8A1_()
{
if (isset($this->session) && $this->session !== NULL) {
$this->session->data["error_warning"] = "";
}
if ($this->_module_code == "OLD_Version" && !file_exists(DIR_APPLICATION . "model/tool/" . $this->_module_code . "_info.php")) {
$this->license = ["mode" => 2, "period" => 0, "date" => "1980-01-01"];
} else {
$this->load->model("tool/" . $this->_module_code . "_info");
$this->private_key = $this->{"model_tool_" . $this->_module_code . "_info"}->getKey();
$_obfuscated_0D14273523082327381D1428211322182311345B3E3632_ = $this->config->get($this->_module_code . "_module_key");
$_obfuscated_0D14273523082327381D1428211322182311345B3E3632_ = base64_decode($_obfuscated_0D14273523082327381D1428211322182311345B3E3632_);
$this->language->load($this->_route . "/" . $this->_moduleSysName());
if ($_obfuscated_0D14273523082327381D1428211322182311345B3E3632_ == "" || strlen($_obfuscated_0D14273523082327381D1428211322182311345B3E3632_) < _obfuscated_0D3102061B33215B1E2C0D0E051A2629123B2C0E2C1001_($this->cipher)) {
$this->license = ["mode" => 0, "period" => 0, "date" => "1980-01-01"];
$this->session->data["error_warning"] = $this->language->get("text_license_error_key");
$this->_obfuscated_FF8AB3AE93979EBB90BE8296B3AE9DA48AA699A3849491_();
return false;
}
$_obfuscated_0D3B0B2221170434112D1606242C0D121F350926344001_ = substr($_obfuscated_0D14273523082327381D1428211322182311345B3E3632_, 0, 32);
$_obfuscated_0D161F0C042D3836080B080D37275B1E0517120F081922_ = substr($_obfuscated_0D14273523082327381D1428211322182311345B3E3632_, 32);
$_obfuscated_0D252A1F29361113043B22045B0A292409291603192D32_ = _obfuscated_0D3C272E1D0F130F3140392F131D3440192F24093F0A01_($_obfuscated_0D161F0C042D3836080B080D37275B1E0517120F081922_, $this->cipher, $this->private_key, $_obfuscated_0D0D1F04160A165B240D052F273F3122092D2613012511_ = OPENSSL_RAW_DATA, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0");
$_obfuscated_0D2E0105140E321B5B273F10372839341A3F280C0E3F32_ = hash_hmac("sha256", $_obfuscated_0D161F0C042D3836080B080D37275B1E0517120F081922_, $this->private_key, $_obfuscated_0D0928220B102E5C085B2D1B5B0F08070D5C251C051722_ = true);
$this->private_key = "InAvAliblePrivateKey";
if (_obfuscated_0D162D331D383B120A19341D2521221137352512322132_($_obfuscated_0D3B0B2221170434112D1606242C0D121F350926344001_, $_obfuscated_0D2E0105140E321B5B273F10372839341A3F280C0E3F32_)) {
if ($_obfuscated_0D020C32302B3417011C2E330C0A0C1D103C30102D1E32_ = json_decode($_obfuscated_0D252A1F29361113043B22045B0A292409291603192D32_, true)) {
if (!isset($_obfuscated_0D020C32302B3417011C2E330C0A0C1D103C30102D1E32_["domain"]) || !isset($_obfuscated_0D020C32302B3417011C2E330C0A0C1D103C30102D1E32_["date"]) || !isset($_obfuscated_0D020C32302B3417011C2E330C0A0C1D103C30102D1E32_["period"]) || !isset($_obfuscated_0D020C32302B3417011C2E330C0A0C1D103C30102D1E32_["mode"])) {
$this->license = ["mode" => 0, "period" => 0, "date" => "1980-01-01"];
$this->license["error"] = $this->language->get("text_license_error_key");
$this->_obfuscated_FF8AB3AE93979EBB90BE8296B3AE9DA48AA699A3849491_();
return false;
}
if (strpos($_SERVER["HTTP_HOST"], $_obfuscated_0D020C32302B3417011C2E330C0A0C1D103C30102D1E32_["domain"]) !== false || isset($_SERVER["argv"]) && isset($_SERVER["argv"][0])) {
if (0 < $_obfuscated_0D020C32302B3417011C2E330C0A0C1D103C30102D1E32_["period"]) {
if (!($_obfuscated_0D29023136233837212A1E181A0B1D0A30093D07020711_ = DateTime::createFromFormat("Y-m-d", $_obfuscated_0D020C32302B3417011C2E330C0A0C1D103C30102D1E32_["date"]))) {
$this->license = ["mode" => 0, "period" => 0, "date" => "1980-01-01"];
$this->license["error"] = $this->language->get("text_license_error_key");
$this->_obfuscated_FF8AB3AE93979EBB90BE8296B3AE9DA48AA699A3849491_();
return false;
}
if (new DateTime() <= $_obfuscated_0D29023136233837212A1E181A0B1D0A30093D07020711_->add(new DateInterval("P" . $_obfuscated_0D020C32302B3417011C2E330C0A0C1D103C30102D1E32_["period"] . "D"))) {
$this->license = $_obfuscated_0D020C32302B3417011C2E330C0A0C1D103C30102D1E32_;
return true;
}
$this->license = ["mode" => 0, "period" => 0, "date" => "1980-01-01"];
$this->_obfuscated_FF8AB3AE93979EBB90BE8296B3AE9DA48AA699A3849491_();
$this->license["error"] = $this->language->get("text_license_end_period");
} else {
$this->license = ["mode" => 0, "period" => 0, "date" => "1980-01-01"];
$this->_obfuscated_FF8AB3AE93979EBB90BE8296B3AE9DA48AA699A3849491_();
$this->license["error"] = $this->language->get("text_license_end_period");
}
} else {
$this->license = ["mode" => 0, "period" => 0, "date" => "1980-01-01"];
$this->_obfuscated_FF8AB3AE93979EBB90BE8296B3AE9DA48AA699A3849491_();
$this->license["error"] = $this->language->get("text_license_error_domain");
}
} else {
$this->license = ["mode" => 0, "period" => 0, "date" => "1980-01-01"];
$this->_obfuscated_FF8AB3AE93979EBB90BE8296B3AE9DA48AA699A3849491_();
$this->license["error"] = $this->language->get("text_license_error_key");
}
} else {
$this->license = ["mode" => 0, "period" => 0, "date" => "1980-01-01"];
$this->_obfuscated_FF8AB3AE93979EBB90BE8296B3AE9DA48AA699A3849491_();
$this->license["error"] = $this->language->get("text_license_error_key");
}
$this->session->data["error_warning"] = $this->license["error"];
$this->_obfuscated_FF8AB3AE93979EBB90BE8296B3AE9DA48AA699A3849491_();
return false;
}
}
public function getWorkMode()
{
if (!$this->license) {
$this->_obfuscated_FF9FA39D89C086ADACB6A49FB1AF9AA0A4A094A7BCA8A1_();
}
return $this->license["mode"];
}
public function getValidTo()
{
$this->language->load($this->_route . "/" . $this->_moduleSysName());
if (!$this->license) {
$this->_obfuscated_FF9FA39D89C086ADACB6A49FB1AF9AA0A4A094A7BCA8A1_();
}
if (0 < $this->license["mode"]) {
if (99999 <= $this->license["period"]) {
return $this->language->get("text_license_lifetime");
}
$est_date = new DateTime($this->license["date"]);
return $est_date->add(new DateInterval("P" . $this->license["period"] . "D"))->format("d.m.Y");
}
return false;
}
public function getEstDays()
{
$this->language->load($this->_route . "/" . $this->_moduleSysName());
if (!$this->license) {
$this->_obfuscated_FF9FA39D89C086ADACB6A49FB1AF9AA0A4A094A7BCA8A1_();
}
if (0 < $this->license["mode"]) {
if (99999 <= $this->license["period"]) {
return $this->language->get("text_license_lifetime");
}
$est_date = DateTime::createFromFormat("Y-m-d", $this->license["date"]);
$est_date->add(new DateInterval("P" . $this->license["period"] . "D"));
return date_diff($est_date, new DateTime())->days;
}
$this->_obfuscated_FF8AB3AE93979EBB90BE8296B3AE9DA48AA699A3849491_();
return 0;
}
public function getOptionsLevels()
{
return $this->options_levels;
}
public function getLicenseError()
{
if (isset($this->license["error"]) && $this->license["error"] != "") {
return $this->license["error"];
}
return "";
}
public function addSettingData($code = "", $key = "", $value = "", $store_id = 0)
{
$this->db->query("DELETE FROM `" . DB_PREFIX . "setting` WHERE `code` = '" . $this->db->escape($code) . "' AND `key` = '" . $this->db->escape($key) . "'");
$sql = "INSERT INTO `" . DB_PREFIX . "setting` (`setting_id`, `store_id`, `code`, `key`, `value`, `serialized`) VALUES (NULL, '" . (int) $store_id . "',\n\t\t\t '" . $this->db->escape($code) . "',\n\t\t\t '" . $this->db->escape($key) . "',\n\t\t\t '" . $this->db->escape($value) . "',\n\t\t\t '0'\n\t\t\t)";
$this->db->query($sql);
}
}
?>
Function Calls
None |
Stats
MD5 | b6d30ac252265420a91d1a57d2438030 |
Eval Count | 0 |
Decode Time | 92 ms |