Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 3.5.0.0
- * @ Author : DeZender
- * @ Release on : 22.06.2018
- * @ Official site : http://DeZender.Net
- *
- */
- class AlekseyNewstore
- {
- public $aleksey_20 = false;
- public $aleksey_40 = false;
- public $aleksey_34 = '';
- public $activation_key_expires = null;
- public $secret_key = 'Y58BnYSeAR8r4FMBaYIButK4';
- public $secret_key_dec = 'Y58BnYSeAR8r4FMBaYIButK4';
- public $aleksey_6 = 'http://validator.waterfilter.in.ua/api.php';
- public $remote_port = 80;
- public $remote_timeout = 20;
- public $local_ua = 'PHP code protect';
- public $aleksey_18 = false;
- public $use_expires = false;
- public $local_key_storage = 'filesystem';
- public $aleksey_5 = './';
- public $aleksey_24 = 'newstore.php';
- public $local_key_transport_order = 'scf';
- public $local_key_delay_period = 1;
- public $local_key_last = null;
- public $release_date = '2016-11-18';
- public $user_name = '';
- public $status_messages = array('status_1' => '<span style="color:green;">Лицензия Активна. Спасибо! / License activity. Thank you!</span>', 'status_2' => 'Срок закончился. / The term ended.', 'status_3' => 'Ожидает повторной активации. / Pending re-activation.', 'status_4' => 'License suspended.', 'localhost' => 'Активна на компе / Is active on a computer', 'pending' => 'Ожидает активации. / Awaiting activation', 'download_access_expired' => 'Неверный ключ / Invalid key', 'missing_activation_key' => 'Укажите ключ. / Enter key.', 'could_not_obtain_local_key' => 'Невозможно получить ключ. / Unable to get the key.', 'maximum_delay_period_expired' => 'Ключ истек. / The key has expired.', 'local_key_tampering' => 'Ключ не действителен. / The key is not valid.', 'local_key_invalid_for_location' => 'Неверный ключ / Invalid key', 'missing_license_file' => 'Создайте файл и папки / Create files and folders:<br />', 'license_file_not_writable' => 'Сделайте права для записи 777 / Make the right to record 777<br />', 'invalid_local_key_storage' => 'не могу удалить я ключ, попросите автора модуля(шаблона) / I can not remove the key, ask the author of the module (template)', 'could_not_save_local_key' => 'ключ на могу записать, проверьте права на файл', 'activation_key_string_mismatch' => 'Неверный ключ / Invalid key');
- private $trigger_delay_period = null;
- public function __construct()
- {
- }
- public function aleksey_38()
- {
- if ($this->aleksey_18 && $this->aleksey_39() && $this->isWindows() && !file_exists((string) $this->aleksey_5 . $this->aleksey_24)) {
- $this->aleksey_20 = true;
- return $this->aleksey_40 = $this->status_messages['localhost'];
- }
- if (!$this->aleksey_34) {
- return $this->aleksey_40 = $this->status_messages['missing_activation_key'];
- }
- switch ($this->local_key_storage) {
- case 'filesystem':
- $local_key = $this->readLocalKey();
- break;
- default:
- return $this->aleksey_40 = $this->status_messages['missing_activation_key'];
- }
- $this->trigger_delay_period = $this->status_messages['could_not_obtain_local_key'];
- if ($this->aleksey_40 == $this->trigger_delay_period && $this->local_key_delay_period) {
- $delay = $this->processDelayPeriod($this->local_key_last);
- if ($delay['write'] && $this->local_key_storage == 'filesystem') {
- $this->writeLocalKey($delay['local_key'], (string) $this->aleksey_5 . $this->aleksey_24);
- }
- if ($delay['errors']) {
- return $this->aleksey_40 = $delay['errors'];
- }
- $this->aleksey_40 = false;
- return $this;
- }
- if ($this->aleksey_40) {
- return $this->aleksey_40;
- }
- return $this->validateLocalKey($local_key);
- }
- private function calcMaxDelay($local_key_expires, $delay)
- {
- return (int) $local_key_expires + (int) $delay * 86400;
- }
- private function processDelayPeriod($local_key)
- {
- $cipher = 'AES-256-CBC';
- $iv = substr(hash('sha256', $this->secret_key_dec), 0, 16);
- $local_key = openssl_decrypt(base64_decode($local_key), $cipher, $this->secret_key_dec, 0, $iv);
- $local_key_src = $this->decodeLocalKey($local_key);
- $parts = $this->splitLocalKey($local_key_src);
- $key_data = unserialize($parts[0]);
- $local_key_expires = (int) $key_data['local_key_expires'];
- unset($parts, $key_data);
- $write_new_key = false;
- $parts = explode("\n\n", $local_key);
- $local_key = $parts[0];
- foreach ($local_key_delay_period = explode(',', $this->local_key_delay_period) as $key => $delay) {
- if (!$key) {
- $local_key .= "\n";
- }
- if (time() < $this->calcMaxDelay($local_key_expires, $delay)) {
- continue;
- }
- $local_key .= "\n" . $delay;
- $write_new_key = true;
- }
- if ($this->calcMaxDelay($local_key_expires, array_pop($local_key_delay_period)) < time()) {
- return array('write' => false, 'local_key' => '', 'errors' => $this->status_messages['maximum_delay_period_expired']);
- }
- return array('write' => $write_new_key, 'local_key' => $local_key, 'errors' => false);
- }
- private function inDelayPeriod($local_key, $local_key_expires)
- {
- $delay = $this->splitLocalKey($local_key, "\n\n");
- if (!isset($delay[1])) {
- return -1;
- }
- return (int) ($this->calcMaxDelay($local_key_expires, array_pop(explode("\n", $delay[1]))) - time());
- }
- private function decodeLocalKey($local_key)
- {
- return base64_decode(str_replace("\n", '', urldecode($local_key)));
- }
- private function splitLocalKey($local_key, $token = '{protect}')
- {
- return explode($token, $local_key);
- }
- private function validateAccess($key, $valid_accesses)
- {
- return in_array($key, (array) $valid_accesses);
- }
- private function wildcardIp($key)
- {
- $octets = explode('.', $key);
- array_pop($octets);
- $ip_range[] = implode('.', $octets) . '.*';
- array_pop($octets);
- $ip_range[] = implode('.', $octets) . '.*';
- array_pop($octets);
- $ip_range[] = implode('.', $octets) . '.*';
- return $ip_range;
- }
- private function wildcardServerHostname($key)
- {
- $hostname = explode('.', $key);
- .................................................................
- ...................................
- ...............
Advertisement
Add Comment
Please, Sign In to add comment