Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

$siteUser = $this->site->getUser(); $nvmDirectory = realpath(dirname(__FILE__) . "\57..

Decoded Output download

<?  $siteUser = $this->site->getUser(); 
    $nvmDirectory = realpath(dirname(__FILE__) . "/../../../resources/etc/skel/nvm/"); 
    $siteUserNvmDirectory = sprintf("/home/%s/.nvm", $siteUser); 
    $copyNvmDirectoryCommand = new CopyFileCommand(); 
    $copyNvmDirectoryCommand->setRecursive(true); 
    $copyNvmDirectoryCommand->setSourceFile($nvmDirectory); 
    $copyNvmDirectoryCommand->setDestinationFile($siteUserNvmDirectory); 
    $chownCommand = new ChownCommand(); 
    $chownCommand->setFile($siteUserNvmDirectory); 
    $chownCommand->setRecursive(true); 
    $chownCommand->setUser($siteUser); 
    $chownCommand->setGroup($siteUser); 
    $chmodCommand = new FindChmodCommand(); 
    $chmodCommand->setFile($siteUserNvmDirectory); 
    $chmodCommand->setDirectoryChmod(770); 
    $chmodCommand->setFileChmod(770); 
    $this->commandExecutor->execute($copyNvmDirectoryCommand); 
    $this->commandExecutor->execute($chownCommand); 
    $this->commandExecutor->execute($chmodCommand); ?>

Did this file decode correctly?

Original Code

$siteUser = $this->site->getUser();
    $nvmDirectory = realpath(dirname(__FILE__) . "\57\x2e\x2e\x2f\x2e\56\57\56\56\57\162\x65\x73\x6f\x75\162\143\145\163\x2f\x65\164\x63\x2f\163\x6b\145\154\x2f\156\x76\155\57");
    $siteUserNvmDirectory = sprintf("\x2f\x68\x6f\x6d\145\x2f\45\163\x2f\x2e\x6e\166\155", $siteUser);
    $copyNvmDirectoryCommand = new CopyFileCommand();
    $copyNvmDirectoryCommand->setRecursive(true);
    $copyNvmDirectoryCommand->setSourceFile($nvmDirectory);
    $copyNvmDirectoryCommand->setDestinationFile($siteUserNvmDirectory);
    $chownCommand = new ChownCommand();
    $chownCommand->setFile($siteUserNvmDirectory);
    $chownCommand->setRecursive(true);
    $chownCommand->setUser($siteUser);
    $chownCommand->setGroup($siteUser);
    $chmodCommand = new FindChmodCommand();
    $chmodCommand->setFile($siteUserNvmDirectory);
    $chmodCommand->setDirectoryChmod(770);
    $chmodCommand->setFileChmod(770);
    $this->commandExecutor->execute($copyNvmDirectoryCommand);
    $this->commandExecutor->execute($chownCommand);
    $this->commandExecutor->execute($chmodCommand);

Function Calls

None

Variables

None

Stats

MD5 15af57795bfa4e0e433c324ddf27d1e9
Eval Count 0
Decode Time 55 ms