Guest User

Untitled

a guest
Mar 22nd, 2022
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 5.0.0.0
  8. * @ Author : DeZender
  9. * @ Release on : 14.12.2021
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. namespace Evolution\Core;
  15.  
  16. class Patch
  17. {
  18. public $data = null;
  19. static private $instance = null;
  20. private $sentValidation = false;
  21.  
  22. public function __construct()
  23. {
  24. self::$instance = $this;
  25. }
  26.  
  27. static public function getInstance()
  28. {
  29. if (!self::$instance) {
  30. self::$instance = new self();
  31. }
  32.  
  33. return self::$instance;
  34. }
  35.  
  36. private function licenseServer($lc)
  37. {
  38. $input = \Evolution\Components\Input::getInstance();
  39. $client = new \GuzzleHttp\Client();
  40. $r = $client->request('POST', base64_decode('aHR0cDovL3d3dy5ldm9sdXRpb25zY3JpcHQuY29tL3YyL2NoZWNrbGljZW5zZS5waHA='), [
  41. 'form_params' => ['license' => $lc, 'domain' => $input->server('HTTP_HOST')]
  42. ]);
  43.  
  44. if ($r->getStatusCode() !== 200) {
  45. return NULL;
  46. }
  47.  
  48. return (string) $r->getBody();
  49. }
  50.  
  51. private function decodeData($data = NULL)
  52. {
  53. if (is_null($data)) {
  54. return NULL;
  55. }
  56.  
  57. $data = str_replace("\n", '', $data);
  58. $lc = substr($data, 0, strlen($data) - 64);
  59. $pk = substr($data, strlen($data) - 32);
  60. $pk = strrev($pk);
  61. $msh = substr($data, strlen($data) - 64, 32);
  62.  
  63. if ($msh == md5($lc . $pk)) {
  64. $lc = strrev($lc);
  65. $lc = substr($lc, 32);
  66. $lc = base64_decode($lc);
  67. $lkrs = unserialize($lc);
  68. }
  69. if (!isset($lkrs) || !is_array($lkrs)) {
  70. return NULL;
  71. }
  72.  
  73. return $lkrs;
  74. }
  75.  
  76. public function addParseData($data)
  77. {
  78. $this->data = $data;
  79. }
  80.  
  81. public function getData($var)
  82. {
  83. if (!is_array($this->data)) {
  84. return NULL;
  85. }
  86.  
  87. return isset($this->data[$var]) ? $this->data[$var] : NULL;
  88. }
  89.  
  90. public function licenseChecker($license_key)
  91. {
  92. if (!($local_key = $this->licenseServer($license_key))) {
  93. .........................................................................
  94. .....................................
  95. ..................
Add Comment
Please, Sign In to add comment