Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2022
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for SourceGuardian Encoder)
  6. *
  7. * @ Version : 4.1.0.1
  8. * @ Author : DeZender
  9. * @ Release on : 29.08.2020
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. namespace JetBackup\Core\License;
  15.  
  16. class License
  17. {
  18. static private function _handshake()
  19. {
  20. if (file_exists('/sys/class/dmi/id/product_uuid')) {
  21. $code = \JetBackup\Core\IO\Shell::exec('/bin/cat /sys/class/dmi/id/product_uuid', $response);
  22. if (!$code && isset($response[0])) {
  23. return md5($response[0]);
  24. }
  25. }
  26.  
  27. if (file_exists('/var/lib/dbus/machine-id')) {
  28. $code = \JetBackup\Core\IO\Shell::exec('/bin/cat /var/lib/dbus/machine-id', $response);
  29. if (!$code && isset($response[0])) {
  30. return md5($response[0]);
  31. }
  32. }
  33.  
  34. $code = \JetBackup\Core\IO\Shell::exec('/sbin/ifconfig -a | /bin/grep -i "hwaddr" | /bin/awk " { print $5 } " | /usr/bin/head -n1', $response);
  35. if (!$code && isset($response[0])) {
  36. return md5($response[0]);
  37. }
  38.  
  39. $code = \JetBackup\Core\IO\Shell::exec('/sbin/ip addr | /bin/grep -i \'ether\' | /bin/awk " { print $2 } " | /usr/bin/head -n1', $response);
  40. if (!$code && isset($response[0])) {
  41. return md5($response[0]);
  42. }
  43.  
  44. $code = \JetBackup\Core\IO\Shell::exec('/sbin/ifconfig -a | /bin/grep -i \'ether\' | /bin/awk " { print $2 } " | /usr/bin/head -n1', $response);
  45. if (!$code && isset($response[0])) {
  46. return md5($response[0]);
  47. }
  48.  
  49. if (file_exists('/etc/machine-id')) {
  50. $code = \JetBackup\Core\IO\Shell::exec('/bin/cat /etc/machine-id', $response);
  51. if (!$code && isset($response[0])) {
  52. return md5($response[0]);
  53. }
  54. }
  55.  
  56. return '';
  57. }
  58.  
  59. static private function _addAlert($error, $force = false)
  60. {
  61. $license = \JetBackup\Core\Factory::getSettingsLicense();
  62. if ($force || $license->getNotifyDate()) {
  63. if (!$force && ((time() - 21600) < $license->getNotifyDate())) {
  64. return NULL;
  65. .........................................................................
  66. ..........................................
  67. ...............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement