Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php namespace Pterodactyl\Console\Commands; use Illuminate\Console\Command; use S..
Decoded Output download
<?php
namespace Pterodactyl\Console\Commands;
use Illuminate\Console\Command;
use Symfony\Component\Console\Formatter\OutputFormatterStyle;
use Illuminate\Support\Facades\File;
use Illuminate\Support\Facades\Http;
class Arix extends Command
{
protected $signature = 'arix {action?}';
protected $description = 'All commands for Arix Theme for Pterodactyl.';
public function handle()
{
$action = $this->argument('action');
$title = new OutputFormatterStyle('#fff', null, ['bold']);
$this->output->getFormatter()->setStyle('title', $title);
$b = new OutputFormatterStyle(null, null, ['bold']);
$this->output->getFormatter()->setStyle('b', $b);
if ($action === null) {
$this->line("
<title>
Thank you for purchasing Arix</title>
> php artisan arix (this window)
> php artisan arix install
> php artisan arix uninstall
");
} elseif ($action === 'install') {
$this->install();
} elseif ($action === 'uninstall') {
$this->uninstall();
} else {
$this->error("Invalid action. Supported actions: install, uninstall");
}
}
public function install(){if(config(base64_decode('YXBwLnZlcnNpb24='))!==base64_decode('MS4xMS41')){return $this->error(base64_decode('Q2FuXCd0IHByb2NlZWQgd2l0aCB0aGUgaW5zdGFsbGF0aW9uLCB0aGUgbGF0ZXN0IHZlcnNpb24gb2YgUHRlcm9kYWN0eWwgaXMgcmVxdWlyZWQsIHdoaWxlIHlvdSBoYXZlIA==').config(base64_decode('YXBwLnZlcnNpb24=')));}$confirmation=$this->confirm(base64_decode('QXJlIGFsbCB0aGUgcmVxdWlyZWQgZGVwZW5kZW5jaWVzIGluc3RhbGxlZCBmcm9tIHRoZSByZWFkbWUgZmlsZT8='),base64_decode('eWVz'));if($confirmation){$seed="AR24a2a9af949ca4543d16d265bc197f4b";$endpoint=base64_decode('aHR0cHM6Ly9hcGkuYXJpeC5nZy9yZXNvdXJjZS9hcml4LXB0ZXJvZGFjdHlsL3ZlcmlmeQ==');$respond=base64_decode('c3VjY2Vzcw==');$response=Http::asForm()->post($endpoint,[base64_decode('bGljZW5zZQ==')=>$seed,]);$responseData=$response->json();if($responseData[$respond]){$versions=File::directories(base64_decode('Li9hcml4'));if(empty($versions)){$this->info(base64_decode('Tm8gdmVyc2lvbnMgZm91bmQgaW4gL2FyaXggZGlyZWN0b3J5Lg=='));return;}$version=basename($this->choice(base64_decode('U2VsZWN0IGEgdmVyc2lvbjo='),$versions));$this->info("You selected version: $version");exec(base64_decode('cnN5bmMgLWEgYXJpeC8=').$version.base64_decode('LyAuLw=='));$this->info(base64_decode('UHJvY2VlZGluZyB3aXRoIHRoZSBpbnN0YWxsYXRpb24uLi4='));$this->info(base64_decode('TWlncmF0aW5nIGRhdGFiYXNlLi4u'));$this->command(base64_decode('cGhwIGFydGlzYW4gbWlncmF0ZSAtLWZvcmNl'));$directoryPath=app_path(base64_decode('SHR0cC9Db250cm9sbGVycy9BZG1pbi9Bcml4'));File::makeDirectory($directoryPath,0755,true,true);$this->aa(base64_decode('QXJpeENvbnRyb2xsZXIucGhw'),$version,$seed,$directoryPath);$this->aa(base64_decode('QXJpeEFkdmFuY2VkQ29udHJvbGxlci5waHA='),$version,$seed,$directoryPath);$this->aa(base64_decode('QXJpeEFubm91bmNlbWVudENvbnRyb2xsZXIucGhw'),$version,$seed,$directoryPath);$this->aa(base64_decode('QXJpeENvbG9yc0NvbnRyb2xsZXIucGhw'),$version,$seed,$directoryPath);$this->aa(base64_decode('QXJpeENvbXBvbmVudHNDb250cm9sbGVyLnBocA=='),$version,$seed,$directoryPath);$this->aa(base64_decode('QXJpeExheW91dENvbnRyb2xsZXIucGhw'),$version,$seed,$directoryPath);$this->aa(base64_decode('QXJpeE1haWxDb250cm9sbGVyLnBocA=='),$version,$seed,$directoryPath);$this->aa(base64_decode('QXJpeE1ldGFDb250cm9sbGVyLnBocA=='),$version,$seed,$directoryPath);$this->aa(base64_decode('QXJpeFN0eWxpbmdDb250cm9sbGVyLnBocA=='),$version,$seed,$directoryPath);$this->info(base64_decode('SW5zdGFsbGluZyByZXF1aXJlZCBwYWNrYWdlcy4uLg=='));$this->command(base64_decode('eWFybiBhZGQgQHR5cGVzL21kNSBtZDUgcmVhY3QtaWNvbnMgQHR5cGVzL2JiY29kZS10by1yZWFjdCBiYmNvZGUtdG8tcmVhY3QgaTE4bmV4dC1icm93c2VyLWxhbmd1YWdlZGV0ZWN0b3I='));$this->info(base64_decode('DQogICAgICAgICAgICAgICAgICAgIEJ1aWxkaW5nIHBhbmVsIGFzc2V0cw0KICAgICAgICAgICAgICAgICEhIFRoaXMgY2FuIHRha2UgYSBmZXcgbWludXRlcyAhIQ0KICAgICAgICAgICAgICAgIA=='));$nodeVersion=shell_exec(base64_decode('bm9kZSAtdg=='));$nodeVersion=(int)ltrim($nodeVersion,base64_decode('dg=='));if($nodeVersion>=17){$this->info(base64_decode('Tm9kZS5qcyB2ZXJzaW9uIGlzIHY=').$nodeVersion.base64_decode('ICg+PSAxNyk='));$this->command(base64_decode('ZXhwb3J0IE5PREVfT1BUSU9OUz0tLW9wZW5zc2wtbGVnYWN5LXByb3ZpZGVy'));}else{$this->info(base64_decode('Tm9kZS5qcyB2ZXJzaW9uIGlzIHY=').$nodeVersion.base64_decode('ICg8IDE3KQ=='));}$this->command(base64_decode('eWFybiBidWlsZDpwcm9kdWN0aW9u'));$this->info(base64_decode('T3B0aW1pemUgYXBwbGljYXRpb24uLi4='));$this->command(base64_decode('cGhwIGFydGlzYW4gb3B0aW1pemU6Y2xlYXI='));$this->command(base64_decode('cGhwIGFydGlzYW4gb3B0aW1pemU='));$this->line(base64_decode('DQogICAgICAgICAgICAgICAgKj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PSoNCg0KICAgICAgICAgICAgICAgIFRoZSB0aGVtZSBpcyBpbnN0YWxsZWQgc3VjY2VzZnVsbHkhDQogICAgICAgICAgICAgICAgDQogICAgICAgICAgICAgICAgKj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PSoNCiAgICAgICAgICAgICAgICA='));}else{$this->error(base64_decode('DQoNCiAgICBGYXRhbDogQ2FsbCB0byB1bmRlZmluZWQgbWV0aG9kIENsYXNzTmFtZTo6YXJpeE1ldGhvZCgpIGluIGFyaXgucGhwIG9uIGxpbmUgODMNCiAgICA='));}}}private function aa($filename,$version,$seed,$directoryPath){$url=base64_decode('aHR0cHM6Ly9kb3dubG9hZHMuYXJpeC5nZy8=').$version.base64_decode('Lw==').$filename.base64_decode('P3NlZWQ9').$seed;$response=Http::get($url);if($response->successful()){$filePath=$directoryPath.base64_decode('Lw==').$filename;File::put($filePath,$response->body());}else{$this->error(base64_decode('RmFpbCwgcGxlYXNlIGNvbnRhY3QgV2VpamVycy5vbmUu'));}}
private function uninstall()
{
$this->line("Uninstalling...");
$this->command('php artisan down');
$this->command('curl -L https://github.com/pterodactyl/panel/releases/latest/download/panel.tar.gz | tar -xzv');
$this->command('chmod -R 755 storage/* bootstrap/cache');
$this->command('composer install --no-dev --optimize-autoloader');
$this->command('php artisan view:clear');
$this->command('php artisan config:clear');
$this->command('php artisan config:clear');
$this->command('php artisan migrate --seed --force');
$this->command('chown -R www-data:www-data ' . base_path() . '/*');
$this->command('chown -R nginx:nginx ' . base_path() . '/*');
$this->command('chown -R apache:apache ' . base_path() . '/*');
$this->command('php artisan queue:restart');
$this->command('php artisan up');
}
private function command($cmd)
{
return exec($cmd);
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Pterodactyl\Console\Commands;
use Illuminate\Console\Command;
use Symfony\Component\Console\Formatter\OutputFormatterStyle;
use Illuminate\Support\Facades\File;
use Illuminate\Support\Facades\Http;
class Arix extends Command
{
protected $signature = 'arix {action?}';
protected $description = 'All commands for Arix Theme for Pterodactyl.';
public function handle()
{
$action = $this->argument('action');
$title = new OutputFormatterStyle('#fff', null, ['bold']);
$this->output->getFormatter()->setStyle('title', $title);
$b = new OutputFormatterStyle(null, null, ['bold']);
$this->output->getFormatter()->setStyle('b', $b);
if ($action === null) {
$this->line("
<title>
Thank you for purchasing Arix</title>
> php artisan arix (this window)
> php artisan arix install
> php artisan arix uninstall
");
} elseif ($action === 'install') {
$this->install();
} elseif ($action === 'uninstall') {
$this->uninstall();
} else {
$this->error("Invalid action. Supported actions: install, uninstall");
}
}
public function install(){if(config(base64_decode('YXBwLnZlcnNpb24='))!==base64_decode('MS4xMS41')){return $this->error(base64_decode('Q2FuXCd0IHByb2NlZWQgd2l0aCB0aGUgaW5zdGFsbGF0aW9uLCB0aGUgbGF0ZXN0IHZlcnNpb24gb2YgUHRlcm9kYWN0eWwgaXMgcmVxdWlyZWQsIHdoaWxlIHlvdSBoYXZlIA==').config(base64_decode('YXBwLnZlcnNpb24=')));}$confirmation=$this->confirm(base64_decode('QXJlIGFsbCB0aGUgcmVxdWlyZWQgZGVwZW5kZW5jaWVzIGluc3RhbGxlZCBmcm9tIHRoZSByZWFkbWUgZmlsZT8='),base64_decode('eWVz'));if($confirmation){$seed="AR24a2a9af949ca4543d16d265bc197f4b";$endpoint=base64_decode('aHR0cHM6Ly9hcGkuYXJpeC5nZy9yZXNvdXJjZS9hcml4LXB0ZXJvZGFjdHlsL3ZlcmlmeQ==');$respond=base64_decode('c3VjY2Vzcw==');$response=Http::asForm()->post($endpoint,[base64_decode('bGljZW5zZQ==')=>$seed,]);$responseData=$response->json();if($responseData[$respond]){$versions=File::directories(base64_decode('Li9hcml4'));if(empty($versions)){$this->info(base64_decode('Tm8gdmVyc2lvbnMgZm91bmQgaW4gL2FyaXggZGlyZWN0b3J5Lg=='));return;}$version=basename($this->choice(base64_decode('U2VsZWN0IGEgdmVyc2lvbjo='),$versions));$this->info("You selected version: $version");exec(base64_decode('cnN5bmMgLWEgYXJpeC8=').$version.base64_decode('LyAuLw=='));$this->info(base64_decode('UHJvY2VlZGluZyB3aXRoIHRoZSBpbnN0YWxsYXRpb24uLi4='));$this->info(base64_decode('TWlncmF0aW5nIGRhdGFiYXNlLi4u'));$this->command(base64_decode('cGhwIGFydGlzYW4gbWlncmF0ZSAtLWZvcmNl'));$directoryPath=app_path(base64_decode('SHR0cC9Db250cm9sbGVycy9BZG1pbi9Bcml4'));File::makeDirectory($directoryPath,0755,true,true);$this->aa(base64_decode('QXJpeENvbnRyb2xsZXIucGhw'),$version,$seed,$directoryPath);$this->aa(base64_decode('QXJpeEFkdmFuY2VkQ29udHJvbGxlci5waHA='),$version,$seed,$directoryPath);$this->aa(base64_decode('QXJpeEFubm91bmNlbWVudENvbnRyb2xsZXIucGhw'),$version,$seed,$directoryPath);$this->aa(base64_decode('QXJpeENvbG9yc0NvbnRyb2xsZXIucGhw'),$version,$seed,$directoryPath);$this->aa(base64_decode('QXJpeENvbXBvbmVudHNDb250cm9sbGVyLnBocA=='),$version,$seed,$directoryPath);$this->aa(base64_decode('QXJpeExheW91dENvbnRyb2xsZXIucGhw'),$version,$seed,$directoryPath);$this->aa(base64_decode('QXJpeE1haWxDb250cm9sbGVyLnBocA=='),$version,$seed,$directoryPath);$this->aa(base64_decode('QXJpeE1ldGFDb250cm9sbGVyLnBocA=='),$version,$seed,$directoryPath);$this->aa(base64_decode('QXJpeFN0eWxpbmdDb250cm9sbGVyLnBocA=='),$version,$seed,$directoryPath);$this->info(base64_decode('SW5zdGFsbGluZyByZXF1aXJlZCBwYWNrYWdlcy4uLg=='));$this->command(base64_decode('eWFybiBhZGQgQHR5cGVzL21kNSBtZDUgcmVhY3QtaWNvbnMgQHR5cGVzL2JiY29kZS10by1yZWFjdCBiYmNvZGUtdG8tcmVhY3QgaTE4bmV4dC1icm93c2VyLWxhbmd1YWdlZGV0ZWN0b3I='));$this->info(base64_decode('DQogICAgICAgICAgICAgICAgICAgIEJ1aWxkaW5nIHBhbmVsIGFzc2V0cw0KICAgICAgICAgICAgICAgICEhIFRoaXMgY2FuIHRha2UgYSBmZXcgbWludXRlcyAhIQ0KICAgICAgICAgICAgICAgIA=='));$nodeVersion=shell_exec(base64_decode('bm9kZSAtdg=='));$nodeVersion=(int)ltrim($nodeVersion,base64_decode('dg=='));if($nodeVersion>=17){$this->info(base64_decode('Tm9kZS5qcyB2ZXJzaW9uIGlzIHY=').$nodeVersion.base64_decode('ICg+PSAxNyk='));$this->command(base64_decode('ZXhwb3J0IE5PREVfT1BUSU9OUz0tLW9wZW5zc2wtbGVnYWN5LXByb3ZpZGVy'));}else{$this->info(base64_decode('Tm9kZS5qcyB2ZXJzaW9uIGlzIHY=').$nodeVersion.base64_decode('ICg8IDE3KQ=='));}$this->command(base64_decode('eWFybiBidWlsZDpwcm9kdWN0aW9u'));$this->info(base64_decode('T3B0aW1pemUgYXBwbGljYXRpb24uLi4='));$this->command(base64_decode('cGhwIGFydGlzYW4gb3B0aW1pemU6Y2xlYXI='));$this->command(base64_decode('cGhwIGFydGlzYW4gb3B0aW1pemU='));$this->line(base64_decode('DQogICAgICAgICAgICAgICAgKj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PSoNCg0KICAgICAgICAgICAgICAgIFRoZSB0aGVtZSBpcyBpbnN0YWxsZWQgc3VjY2VzZnVsbHkhDQogICAgICAgICAgICAgICAgDQogICAgICAgICAgICAgICAgKj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PSoNCiAgICAgICAgICAgICAgICA='));}else{$this->error(base64_decode('DQoNCiAgICBGYXRhbDogQ2FsbCB0byB1bmRlZmluZWQgbWV0aG9kIENsYXNzTmFtZTo6YXJpeE1ldGhvZCgpIGluIGFyaXgucGhwIG9uIGxpbmUgODMNCiAgICA='));}}}private function aa($filename,$version,$seed,$directoryPath){$url=base64_decode('aHR0cHM6Ly9kb3dubG9hZHMuYXJpeC5nZy8=').$version.base64_decode('Lw==').$filename.base64_decode('P3NlZWQ9').$seed;$response=Http::get($url);if($response->successful()){$filePath=$directoryPath.base64_decode('Lw==').$filename;File::put($filePath,$response->body());}else{$this->error(base64_decode('RmFpbCwgcGxlYXNlIGNvbnRhY3QgV2VpamVycy5vbmUu'));}}
private function uninstall()
{
$this->line("Uninstalling...");
$this->command('php artisan down');
$this->command('curl -L https://github.com/pterodactyl/panel/releases/latest/download/panel.tar.gz | tar -xzv');
$this->command('chmod -R 755 storage/* bootstrap/cache');
$this->command('composer install --no-dev --optimize-autoloader');
$this->command('php artisan view:clear');
$this->command('php artisan config:clear');
$this->command('php artisan config:clear');
$this->command('php artisan migrate --seed --force');
$this->command('chown -R www-data:www-data ' . base_path() . '/*');
$this->command('chown -R nginx:nginx ' . base_path() . '/*');
$this->command('chown -R apache:apache ' . base_path() . '/*');
$this->command('php artisan queue:restart');
$this->command('php artisan up');
}
private function command($cmd)
{
return exec($cmd);
}
}
Function Calls
None |
Stats
MD5 | 5e62800784149f2adc375b4cf727eb36 |
Eval Count | 0 |
Decode Time | 122 ms |