Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 5.0.0.0
- * @ Author : DeZender
- * @ Release on : 14.12.2021
- * @ Official site : http://DeZender.Net
- *
- */
- namespace Evolution\Core;
- class Patch
- {
- public $data = null;
- static private $instance = null;
- private $sentValidation = false;
- public function __construct()
- {
- self::$instance = $this;
- }
- static public function getInstance()
- {
- if (!self::$instance) {
- self::$instance = new self();
- }
- return self::$instance;
- }
- private function licenseServer($lc)
- {
- $input = \Evolution\Components\Input::getInstance();
- $client = new \GuzzleHttp\Client();
- $r = $client->request('POST', base64_decode('aHR0cDovL3d3dy5ldm9sdXRpb25zY3JpcHQuY29tL3YyL2NoZWNrbGljZW5zZS5waHA='), [
- 'form_params' => ['license' => $lc, 'domain' => $input->server('HTTP_HOST')]
- ]);
- if ($r->getStatusCode() !== 200) {
- return NULL;
- }
- return (string) $r->getBody();
- }
- private function decodeData($data = NULL)
- {
- if (is_null($data)) {
- return NULL;
- }
- $data = str_replace("\n", '', $data);
- $lc = substr($data, 0, strlen($data) - 64);
- $pk = substr($data, strlen($data) - 32);
- $pk = strrev($pk);
- $msh = substr($data, strlen($data) - 64, 32);
- if ($msh == md5($lc . $pk)) {
- $lc = strrev($lc);
- $lc = substr($lc, 32);
- $lc = base64_decode($lc);
- $lkrs = unserialize($lc);
- }
- if (!isset($lkrs) || !is_array($lkrs)) {
- return NULL;
- }
- return $lkrs;
- }
- public function addParseData($data)
- {
- $this->data = $data;
- }
- public function getData($var)
- {
- if (!is_array($this->data)) {
- return NULL;
- }
- return isset($this->data[$var]) ? $this->data[$var] : NULL;
- }
- public function licenseChecker($license_key)
- {
- if (!($local_key = $this->licenseServer($license_key))) {
- .........................................................................
- .....................................
- ..................
Add Comment
Please, Sign In to add comment