Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
public function installOrUpdate($isUpdate = false) { if ($isUpdate) { ..
Decoded Output download
<? public function installOrUpdate($isUpdate = false)
{
if ($isUpdate) {
$this->info(base64_decode('DQogICAgVGhpcyBjb21tYW5kIGlzIG5vdCByZWNvbW1lbmRlZCB0byB1c2UuIA0KICAgIFRoaXMgY29tbWFuZCBza2lwcyBmcmVxdWVudGx5IHVzZWQgZmlsZXMgYnkgYWRkb25zIGR1cmluZyB0aGVtZSB1cGRhdGluZyB0byBhdm9pZCBsb3NpbmcgeW91ciBhZGRvbiBjdXN0b21pemF0aW9ucy4NCiAgICBJZiB5b3Ugc3RpbGwgZXhwZXJpZW5jZSBhbiBlcnJvciBhZnRlciB1cGRhdGluZyBwbGVhc2UgY29udGFjdCB1cy4='));
}
$confirmation = $this->confirm(base64_decode('QXJlIGFsbCB0aGUgcmVxdWlyZWQgZGVwZW5kZW5jaWVzIGluc3RhbGxlZCBmcm9tIHRoZSByZWFkbWUgZmlsZT8='), base64_decode('eWVz'));
if (!$confirmation) {
return;
}
$seed = 'ARdd81ad01de21c11b3a9f42e29c818c8d';
$endpoint = "https://api.arix.gg/resource/arix-pterodactyl/verify";
$respond = base64_decode('c3VjY2Vzcw==');
$response = Http::asForm()->post($endpoint, ["license" => $seed,]);
$responseData = $response->json();
if (!$responseData[$respond]) {
return $this->error(base64_decode('RmF0YWw6IENhbGwgdG8gdW5kZWZpbmVkIG1ldGhvZCBDbGFzc05hbWU6OmFyaXhNZXRob2QoKSBpbiBQdGVyb2RhY3R5bC5waHAgb24gbGluZSA4Mw=='));
}
$versions = File::directories(base64_decode('Li9hcml4'));
if (empty($versions)) {
$this->info(base64_decode('Tm8gdmVyc2lvbnMgZm91bmQgaW4gL2FyaXggZGlyZWN0b3J5Lg=='));
return;
}
$version = basename($this->choice("Select a version:", $versions));
$this->info("Installing Arix Theme $version...");
$excludeOption = $isUpdate ? "--exclude=\'routes.ts\' --exclude=\'getServer.ts\' --exclude=\'admin.blade.php\' --exclude=\'admin.php\' --exclude=\'ServerTransformer.php\'" : '';
exec("rsync -a $excludeOption arix/{$version}/ ./");
$directoryPath = app_path(base64_decode('Http/Controllers/Admin/Arix'));
File::makeDirectory($directoryPath, 0755, true, true);
$filesOne = [base64_decode('QXJpeENvbnRyb2xsZXI='), base64_decode('QXJpeEFkdmFuY2VkQ29udHJvbGxlcg=='), base64_decode('QXJpeEFubm91bmNlbWVudENvbnRyb2xsZXI='), base64_decode('QXJpeENvbG9yc0NvbnRyb2xsZXI='),];
$this->info(base64_decode('UHJvY2VlZGluZyB3aXRoIHRoZSBpbnN0YWxsYXRpb24uLi4='));
$filesTwo = [base64_decode('QXJpeENvbXBvbmVudHNDb250cm9sbGVy'), base64_decode('QXJpeExheW91dENvbnRyb2xsZXI='), base64_decode('QXJpeE1haWxDb250cm9sbGVy'), base64_decode('QXJpeE1ldGFDb250cm9sbGVy'), base64_decode('QXJpeFN0eWxpbmdDb250cm9sbGVy'),];
$this->info(base64_decode('TWlncmF0aW5nIGRhdGFiYXNlLi4u'));
$this->command("php artisan migrate --force");
$this->info(base64_decode('SW5zdGFsbGluZyByZXF1aXJlZCBwYWNrYWdlcy4uLg=='));
$this->info(base64_decode('VGhpcyBjYW4gdGFrZSBhIG1pbnV0ZS4uLg=='));
$this->command("yarn add @types/md5 md5 react-icons @types/bbcode-to-react bbcode-to-react [email protected]");
foreach ($filesOne as $file) {
$this->aa($file, $version, $seed, $directoryPath);
sleep(1);
}
foreach ($filesTwo as $file) {
$this->aa($file, $version, $seed, $directoryPath);
sleep(1);
}
$this->info(base64_decode('QnVpbGRpbmcgcGFuZWwgYXNzZXRzLi4u'));
$this->info(base64_decode('VGhpcyBjYW4gdGFrZSBhIG1pbnV0ZS4uLg=='));
$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='));
putenv(base64_decode('ZXhwb3J0IE5PREVfT1BUSU9OUz0tLW9wZW5zc2wtbGVnYWN5LXByb3ZpZGVy'));
} else {
$this->info(base64_decode('Tm9kZS5qcyB2ZXJzaW9uIGlzIHY=') . $nodeVersion . base64_decode('ICg8IDE3KQ=='));
}
$this->command("yarn build:production");
$this->info(base64_decode('U2V0IHBlcm1pc3Npb25zLi4u'));
$this->command("chown -R www-data:www-data " . base_path() . base64_decode('Lyo='));
$this->command("chown -R nginx:nginx " . base_path() . base64_decode('Lyo='));
$this->command(base64_decode('Y2hvd24gLVIgYXBhY2hlOmFwYWNoZSA=') . base_path() . base64_decode('Lyo='));
$this->info(base64_decode('T3B0aW1pemUgYXBwbGljYXRpb24uLi4='));
$this->command(base64_decode('cGhwIGFydGlzYW4gb3B0aW1pemU6Y2xlYXI='));
$this->command(base64_decode('cGhwIGFydGlzYW4gb3B0aW1pemU='));
$message = $isUpdate ? base64_decode('4pSCICAgIOKVreKUgOKVtCAgVGhlbWUgdXBkYXRlZCAgIOKVtuKUgOKVriAgIOKUgg==') : base64_decode('4pSCICAgIOKVreKUgOKVtCBUaGVtZSBpbnN0YWxsZWQgIOKVtuKUgOKVriAgIOKUgg==');
$this->line("
$message
successfully
");
} ?>
Did this file decode correctly?
Original Code
public function installOrUpdate($isUpdate = false)
{
if ($isUpdate) {
$this->info(base64_decode('DQogICAgVGhpcyBjb21tYW5kIGlzIG5vdCByZWNvbW1lbmRlZCB0byB1c2UuIA0KICAgIFRoaXMgY29tbWFuZCBza2lwcyBmcmVxdWVudGx5IHVzZWQgZmlsZXMgYnkgYWRkb25zIGR1cmluZyB0aGVtZSB1cGRhdGluZyB0byBhdm9pZCBsb3NpbmcgeW91ciBhZGRvbiBjdXN0b21pemF0aW9ucy4NCiAgICBJZiB5b3Ugc3RpbGwgZXhwZXJpZW5jZSBhbiBlcnJvciBhZnRlciB1cGRhdGluZyBwbGVhc2UgY29udGFjdCB1cy4='));
}
$confirmation = $this->confirm(base64_decode('QXJlIGFsbCB0aGUgcmVxdWlyZWQgZGVwZW5kZW5jaWVzIGluc3RhbGxlZCBmcm9tIHRoZSByZWFkbWUgZmlsZT8='), base64_decode('eWVz'));
if (!$confirmation) {
return;
}
$seed = 'ARdd81ad01de21c11b3a9f42e29c818c8d';
$endpoint = "https://api.arix.gg/resource/arix-pterodactyl/verify";
$respond = base64_decode('c3VjY2Vzcw==');
$response = Http::asForm()->post($endpoint, ["license" => $seed,]);
$responseData = $response->json();
if (!$responseData[$respond]) {
return $this->error(base64_decode('RmF0YWw6IENhbGwgdG8gdW5kZWZpbmVkIG1ldGhvZCBDbGFzc05hbWU6OmFyaXhNZXRob2QoKSBpbiBQdGVyb2RhY3R5bC5waHAgb24gbGluZSA4Mw=='));
}
$versions = File::directories(base64_decode('Li9hcml4'));
if (empty($versions)) {
$this->info(base64_decode('Tm8gdmVyc2lvbnMgZm91bmQgaW4gL2FyaXggZGlyZWN0b3J5Lg=='));
return;
}
$version = basename($this->choice("Select a version:", $versions));
$this->info("Installing Arix Theme $version...");
$excludeOption = $isUpdate ? "--exclude=\'routes.ts\' --exclude=\'getServer.ts\' --exclude=\'admin.blade.php\' --exclude=\'admin.php\' --exclude=\'ServerTransformer.php\'" : '';
exec("rsync -a $excludeOption arix/{$version}/ ./");
$directoryPath = app_path(base64_decode('Http/Controllers/Admin/Arix'));
File::makeDirectory($directoryPath, 0755, true, true);
$filesOne = [base64_decode('QXJpeENvbnRyb2xsZXI='), base64_decode('QXJpeEFkdmFuY2VkQ29udHJvbGxlcg=='), base64_decode('QXJpeEFubm91bmNlbWVudENvbnRyb2xsZXI='), base64_decode('QXJpeENvbG9yc0NvbnRyb2xsZXI='),];
$this->info(base64_decode('UHJvY2VlZGluZyB3aXRoIHRoZSBpbnN0YWxsYXRpb24uLi4='));
$filesTwo = [base64_decode('QXJpeENvbXBvbmVudHNDb250cm9sbGVy'), base64_decode('QXJpeExheW91dENvbnRyb2xsZXI='), base64_decode('QXJpeE1haWxDb250cm9sbGVy'), base64_decode('QXJpeE1ldGFDb250cm9sbGVy'), base64_decode('QXJpeFN0eWxpbmdDb250cm9sbGVy'),];
$this->info(base64_decode('TWlncmF0aW5nIGRhdGFiYXNlLi4u'));
$this->command("php artisan migrate --force");
$this->info(base64_decode('SW5zdGFsbGluZyByZXF1aXJlZCBwYWNrYWdlcy4uLg=='));
$this->info(base64_decode('VGhpcyBjYW4gdGFrZSBhIG1pbnV0ZS4uLg=='));
$this->command("yarn add @types/md5 md5 react-icons @types/bbcode-to-react bbcode-to-react [email protected]");
foreach ($filesOne as $file) {
$this->aa($file, $version, $seed, $directoryPath);
sleep(1);
}
foreach ($filesTwo as $file) {
$this->aa($file, $version, $seed, $directoryPath);
sleep(1);
}
$this->info(base64_decode('QnVpbGRpbmcgcGFuZWwgYXNzZXRzLi4u'));
$this->info(base64_decode('VGhpcyBjYW4gdGFrZSBhIG1pbnV0ZS4uLg=='));
$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='));
putenv(base64_decode('ZXhwb3J0IE5PREVfT1BUSU9OUz0tLW9wZW5zc2wtbGVnYWN5LXByb3ZpZGVy'));
} else {
$this->info(base64_decode('Tm9kZS5qcyB2ZXJzaW9uIGlzIHY=') . $nodeVersion . base64_decode('ICg8IDE3KQ=='));
}
$this->command("yarn build:production");
$this->info(base64_decode('U2V0IHBlcm1pc3Npb25zLi4u'));
$this->command("chown -R www-data:www-data " . base_path() . base64_decode('Lyo='));
$this->command("chown -R nginx:nginx " . base_path() . base64_decode('Lyo='));
$this->command(base64_decode('Y2hvd24gLVIgYXBhY2hlOmFwYWNoZSA=') . base_path() . base64_decode('Lyo='));
$this->info(base64_decode('T3B0aW1pemUgYXBwbGljYXRpb24uLi4='));
$this->command(base64_decode('cGhwIGFydGlzYW4gb3B0aW1pemU6Y2xlYXI='));
$this->command(base64_decode('cGhwIGFydGlzYW4gb3B0aW1pemU='));
$message = $isUpdate ? base64_decode('4pSCICAgIOKVreKUgOKVtCAgVGhlbWUgdXBkYXRlZCAgIOKVtuKUgOKVriAgIOKUgg==') : base64_decode('4pSCICAgIOKVreKUgOKVtCBUaGVtZSBpbnN0YWxsZWQgIOKVtuKUgOKVriAgIOKUgg==');
$this->line("
$message
successfully
");
}
Function Calls
None |
Stats
MD5 | 911be5ae7a8a399c0c189ebbb71dcd51 |
Eval Count | 0 |
Decode Time | 79 ms |