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 App\Site\Creator; use App\Site\Creator as SiteCreator; use App\Site\Ngin..

Decoded Output download

<?php 
 namespace App\Site\Creator; use App\Site\Creator as SiteCreator; use App\Site\Nginx\Vhost\NodejsTemplate; use App\System\Command\CopyFileCommand; use App\System\Command\WriteFileCommand; use App\System\Command\ChownCommand; use App\System\Command\FindChmodCommand; use App\System\Command\NvmInstallNodejsCommand; class NodejsSite extends SiteCreator { public function createNvmDirectory() : void { goto bb121; e5cb1: $copyNvmDirectoryCommand = new CopyFileCommand(); goto Db71e; Ac979: $chownCommand->setGroup($siteUser); goto B286a; bde9f: $chownCommand->setUser($siteUser); goto Ac979; Db71e: $copyNvmDirectoryCommand->setRecursive(true); goto f02f5; f02f5: $copyNvmDirectoryCommand->setSourceFile($nvmDirectory); goto A88d4; bb121: $siteUser = $this->site->getUser(); goto b2b7c; A88d4: $copyNvmDirectoryCommand->setDestinationFile($siteUserNvmDirectory); goto B491c; B286a: $chmodCommand = new FindChmodCommand(); goto f60c5; B491c: $chownCommand = new ChownCommand(); goto dee67; A9193: $this->commandExecutor->execute($copyNvmDirectoryCommand); goto d1953; fe2d8: $chmodCommand->setFileChmod(770); goto A9193; dee67: $chownCommand->setFile($siteUserNvmDirectory); goto bc01e; be9d2: $siteUserNvmDirectory = sprintf("/home/%s/.nvm", $siteUser); goto e5cb1; bc01e: $chownCommand->setRecursive(true); goto bde9f; d1953: $this->commandExecutor->execute($chownCommand); goto a5ea6; a5ea6: $this->commandExecutor->execute($chmodCommand); goto Ed472; f60c5: $chmodCommand->setFile($siteUserNvmDirectory); goto C5911; C5911: $chmodCommand->setDirectoryChmod(770); goto fe2d8; b2b7c: $nvmDirectory = realpath(dirname(__FILE__) . "/../../../resources/etc/skel/nvm/"); goto be9d2; Ed472: } public function installNodejs() { goto d3d5d; d3d5d: $siteUser = $this->site->getUser(); goto B2e62; A76d0: $nodejsVersion = $nodejsSettings->getNodejsVersion(); goto c8b80; De815: e26fa: goto cef54; E8679: $this->commandExecutor->execute($installNodejsCommand, 180); goto De815; e8726: if (!("dev" != $_ENV["APP_ENV"])) { goto e26fa; } goto E8679; c8b80: $installNodejsCommand = new NvmInstallNodejsCommand(); goto f011d; f011d: $installNodejsCommand->setRunAsUser($siteUser); goto b7dd4; B2e62: $nodejsSettings = $this->site->getNodejsSettings(); goto A76d0; b7dd4: $installNodejsCommand->setNodejsVersion($nodejsVersion); goto e8726; cef54: } } 
 ?>

Did this file decode correctly?

Original Code

<?php
 namespace App\Site\Creator; use App\Site\Creator as SiteCreator; use App\Site\Nginx\Vhost\NodejsTemplate; use App\System\Command\CopyFileCommand; use App\System\Command\WriteFileCommand; use App\System\Command\ChownCommand; use App\System\Command\FindChmodCommand; use App\System\Command\NvmInstallNodejsCommand; class NodejsSite extends SiteCreator { public function createNvmDirectory() : void { goto bb121; e5cb1: $copyNvmDirectoryCommand = new CopyFileCommand(); goto Db71e; Ac979: $chownCommand->setGroup($siteUser); goto B286a; bde9f: $chownCommand->setUser($siteUser); goto Ac979; Db71e: $copyNvmDirectoryCommand->setRecursive(true); goto f02f5; f02f5: $copyNvmDirectoryCommand->setSourceFile($nvmDirectory); goto A88d4; bb121: $siteUser = $this->site->getUser(); goto b2b7c; A88d4: $copyNvmDirectoryCommand->setDestinationFile($siteUserNvmDirectory); goto B491c; B286a: $chmodCommand = new FindChmodCommand(); goto f60c5; B491c: $chownCommand = new ChownCommand(); goto dee67; A9193: $this->commandExecutor->execute($copyNvmDirectoryCommand); goto d1953; fe2d8: $chmodCommand->setFileChmod(770); goto A9193; dee67: $chownCommand->setFile($siteUserNvmDirectory); goto bc01e; be9d2: $siteUserNvmDirectory = sprintf("\x2f\150\x6f\x6d\x65\x2f\45\163\x2f\56\x6e\x76\155", $siteUser); goto e5cb1; bc01e: $chownCommand->setRecursive(true); goto bde9f; d1953: $this->commandExecutor->execute($chownCommand); goto a5ea6; a5ea6: $this->commandExecutor->execute($chmodCommand); goto Ed472; f60c5: $chmodCommand->setFile($siteUserNvmDirectory); goto C5911; C5911: $chmodCommand->setDirectoryChmod(770); goto fe2d8; b2b7c: $nvmDirectory = realpath(dirname(__FILE__) . "\x2f\x2e\56\57\x2e\56\x2f\x2e\x2e\57\162\145\163\157\x75\162\143\145\x73\57\x65\x74\143\57\x73\153\145\x6c\x2f\156\x76\155\x2f"); goto be9d2; Ed472: } public function installNodejs() { goto d3d5d; d3d5d: $siteUser = $this->site->getUser(); goto B2e62; A76d0: $nodejsVersion = $nodejsSettings->getNodejsVersion(); goto c8b80; De815: e26fa: goto cef54; E8679: $this->commandExecutor->execute($installNodejsCommand, 180); goto De815; e8726: if (!("\144\x65\x76" != $_ENV["\x41\120\120\137\105\116\x56"])) { goto e26fa; } goto E8679; c8b80: $installNodejsCommand = new NvmInstallNodejsCommand(); goto f011d; f011d: $installNodejsCommand->setRunAsUser($siteUser); goto b7dd4; B2e62: $nodejsSettings = $this->site->getNodejsSettings(); goto A76d0; b7dd4: $installNodejsCommand->setNodejsVersion($nodejsVersion); goto e8726; cef54: } }

Function Calls

None

Variables

None

Stats

MD5 f35e0bab76a910392a11de0533c43f41
Eval Count 0
Decode Time 51 ms