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 : 4.1.0.1
- * @ Author : DeZender
- * @ Release on : 29.08.2020
- * @ Official site : http://DeZender.Net
- *
- */
- namespace JetBackup\Core;
- class License
- {
- const LICENSE_LOCK_FILE = JetBackup\Core\JetBackup::TMP_PATH . '/license.lock';
- const LICENSE_CHECK_URL = 'https://check.jetlicense.com';
- const LICENSE_LOCALKEY_DAYS = 259200;
- const LICENSE_LOCALKEY_CHECK_INTERVAL = 172800;
- const LICENSE_LOCALKEY_FAIL_INTERVAL = 3600;
- const LICENSE_NOTIFY_ERROR_INTERVAL = 86400;
- const LICENSE_PRODUCT_ID = '58ac64be19a4643cdf582727';
- const LICENSE_PUBLIC_KEY = '-----BEGIN PUBLIC KEY-----' . "\n" . 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2F105dMYw8kTC54ANpMt' . "\n" . 'WaVKEFEoRd+D0YDRDB/EGgFbEUdkDvub6FfHcDdgfmRgjUOWap0yX2MpOCy/QA/P' . "\n" . 'SrIuSYe4+jv5J+cW2O6WbnhVdlAQTLOiOgiUYMuFNt6+gx4DaitoxD/p39elThfa' . "\n" . 'KsAawrrxBR0mEdn0JeE1k0l/bbhekzUubR9LReOtveXdMoVygrAQ52mQ0saOSmuB' . "\n" . 'Un2oa4kaWeZfCA/fYW8jMEEjmrftcT3XVi7yA5Fk/xQQ3eNSLIAx2gZf8B2g0zqa' . "\n" . '/QSq9+6BDM/6OdG9o+cMvpSoOojx5ApcQxAwHfSiISfibJ/49kmnP7okCRI7pNvE' . "\n" . '3wIDAQAB' . "\n" . '-----END PUBLIC KEY-----';
- private $_localKey;
- public function __construct()
- {
- }
- /**
- * @return string
- * @throws \Exception
- */
- private function _handshake()
- {
- if (file_exists('/sys/class/dmi/id/product_uuid')) {
- $code = Shell::exec('/bin/cat /sys/class/dmi/id/product_uuid', $response);
- if (!$code && isset($response[0])) {
- return md5($response[0]);
- }
- }
- if (file_exists('/var/lib/dbus/machine-id')) {
- $code = Shell::exec('/bin/cat /var/lib/dbus/machine-id', $response);
- if (!$code && isset($response[0])) {
- return md5($response[0]);
- }
- }
- $code = Shell::exec('/sbin/ifconfig -a | /bin/grep -i \'hwaddr\' | /bin/awk \' { print $5 } \' | /usr/bin/head -n1', $response);
- if (!$code && isset($response[0])) {
- return md5($response[0]);
- }
- $code = Shell::exec('/sbin/ip addr | /bin/grep -i \'ether\' | /bin/awk \' { print $2 } \' | /usr/bin/head -n1', $response);
- if (!$code && isset($response[0])) {
- return md5($response[0]);
- }
- $code = Shell::exec('/sbin/ifconfig -a | /bin/grep -i \'ether\' | /bin/awk \' { print $2 } \' | /usr/bin/head -n1', $response);
- if (!$code && isset($response[0])) {
- return md5($response[0]);
- }
- if (file_exists('/etc/machine-id')) {
- $code = Shell::exec('/bin/cat /etc/machine-id', $response);
- if (!$code && isset($response[0])) {
- return md5($response[0]);
- }
- }
- return '';
- }
- /**
- * @param string $error
- * @param bool $force
- */
- static private function _checkFailed($error, $force = false)
- {
- $license = Factory::getConfigLicense();
- if (Factory::getConfigNotification()->getGlobal() && ($force || ($license->getNotifyDate() < (time() - 21600)))) {
- $license->setNotifyDate();
- $license->update();
- $hostname = Utils::getHostname();
- Factory::getConfigNotification()->sendMail('License check FAILED on ' . $hostname, 'There was a failed license check on the server ' . $hostname . '.<br />Error: ' . $error);
- }
- }
- /**
- * @return array
- */
- private function _parseLocalKey()
- {
- $output = ['signed' => '', 'signed_status' => '', 'status' => '', 'description' => ''];
- if (!$this->_localKey) {
- return $output;
- }
- list($signed, $signed_status, $status, $description) = explode('|', $this->_localKey, 4);
- if ($signed) {
- $output['signed'] = $signed;
- }
- if ($signed_status) {
- $output['signed_status'] = $signed_status;
- ...........................................................................
- ..........................................
- .................
Add Comment
Please, Sign In to add comment