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 install(){if(config(base64_decode('YXBwLnZlcnNpb24='))!==base64_decode('MS..
Decoded Output download
<? 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'));}} ?>
Did this file decode correctly?
Original Code
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'));}}
Function Calls
None |
Stats
MD5 | 6df1a47a6046075924eefc726b83d595 |
Eval Count | 0 |
Decode Time | 59 ms |