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 declare(strict_types=1);namespace Deployer\Component\PharUpdate;use Deployer\Compone..

Decoded Output download

<?php declare(strict_types=1);namespace Deployer\Component\PharUpdate;use Deployer\Component\PharUpdate\Exception\FileException;use Deployer\Component\PharUpdate\Exception\LogicException;use Deployer\Component\PharUpdate\Version\Comparator;use Deployer\Component\PharUpdate\Version\Version;use Phar;use SplFileObject;use UnexpectedValueException;/**
 * Manages an individual update.
 *
 * @author Kevin Herrera <[email protected]>
 */ class xuqaa{/**
     * The temporary file path.
     *
     * @var string|null
     */ private $twkbb;/**
     * The name of the update file.
     *
     * @var string
     */ private $roclc;/**
     * The URL where the public key can be downloaded from.
     *
     * @var string
     */ private $olepd;/**
     * The SHA1 file checksum.
     *
     * @var string
     */ private $vnooe;/**
     * The URL where the update can be downloaded from.
     *
     * @var string
     */ private $ddhyf;/**
     * The version of the update.
     *
     * @var Version
     */ private $xzhb10;/**
     * Sets the update information.
     *
     * @param string  $name    The name of the update file.
     * @param string  $sha1    The SHA1 file checksum.
     * @param string  $url     The URL where the update can be downloaded from.
     * @param Version $version The version of the update.
     * @param string  $key     The URL where the public key can be downloaded
     *                         from.
     */ public function toss0(string $roclc,string $vnooe,string $ddhyf,Version $xzhb10,string $hnaw11=null){$this->$akqn12=$roclc;$this->$kwlm13=$hnaw11;$this->$qvxt14=$vnooe;$this->$tnba15=$ddhyf;$this->$yspb16=$xzhb10;}/**
     * Copies the update file to the destination.
     *
     * @param string $file The target file.
     *
     * @throws Exception\Exception
     * @throws FileException If the file could not be replaced.
     */ public function xuig1(string $twkbb):void{if(null===$this->$bhzj17){throw LogicException::popt18(base64_decode('VGhlIHVwZGF0ZSBmaWxlIGhhcyBub3QgYmVlbiBkb3dubG9hZGVkLg=='));}$bgxz19=0755;if(file_exists($twkbb)){$bgxz19=fileperms($twkbb)&511;}if(false===@copy($this->$bhzj17,$twkbb)){throw FileException::lckx1a();}if(false===@chmod($twkbb,$bgxz19)){throw FileException::lckx1a();}$hnaw11=$twkbb.base64_decode('LnB1YmtleQ==');if(file_exists($this->$bhzj17.base64_decode('LnB1YmtleQ=='))){if(false===@copy($this->$bhzj17.base64_decode('LnB1YmtleQ=='),$hnaw11)){throw FileException::lckx1a();}}elseif(file_exists($hnaw11)){if(false===@unlink($hnaw11)){throw FileException::lckx1a();}}}/**
     * Cleans up by deleting the temporary update file.
     *
     * @throws FileException If the file could not be deleted.
     */ public function fkvv2():void{if($this->$bhzj17){if(file_exists($this->$bhzj17)){if(false===@unlink($this->$bhzj17)){throw FileException::lckx1a();}}if(file_exists($this->$bhzj17.base64_decode('LnB1YmtleQ=='))){if(false===@unlink($this->$bhzj17.base64_decode('LnB1YmtleQ=='))){throw FileException::lckx1a();}}$zrmc1b=dirname($this->$bhzj17);if(file_exists($zrmc1b)){if(false===@rmdir($zrmc1b)){throw FileException::lckx1a();}}$this->$bhzj17=null;}}/**
     * Downloads the update file to a temporary location.
     *
     * @return string The temporary file path.
     *
     * @throws Exception\Exception
     * @throws FileException            If the SHA1 checksum differs.
     * @throws UnexpectedValueException If the Phar is corrupt.
     */ public function sxiu3():?string{if(null===$this->$bhzj17){unlink($this->$bhzj17=tempnam(sys_get_temp_dir(),base64_decode('dXBk')));mkdir($this->$bhzj17);$this->$bhzj17.=DIRECTORY_SEPARATOR.$this->$akqn12;$mgcn1c=new yemb1d($this->$tnba15,base64_decode('cmI='),false);$uuos1e=new yemb1d($this->$bhzj17,base64_decode('d2I='),false);while(false===$mgcn1c->lvac1f()){$uuos1e->uccj20($mgcn1c->vnxw21());}unset($mgcn1c,$uuos1e);if($this->$kwlm13){$mgcn1c=new yemb1d($this->$kwlm13,base64_decode('cg=='),false);$uuos1e=new yemb1d($this->$bhzj17.base64_decode('LnB1YmtleQ=='),base64_decode('dw=='),false);while(false===$mgcn1c->lvac1f()){$uuos1e->uccj20($mgcn1c->vnxw21());}unset($mgcn1c,$uuos1e);}if($this->$qvxt14!==($vnooe=sha1_file($this->$bhzj17))){$this->fkvv2();throw FileException::popt18(base64_decode('TWlzbWF0Y2ggb2YgdGhlIFNIQTEgY2hlY2tzdW0gKCVzKSBvZiB0aGUgZG93bmxvYWRlZCBmaWxlICglcyku'),$this->$qvxt14,$vnooe);}try{new lbzp22($this->$bhzj17);}catch(UnexpectedValueException $rgjw23){$this->fkvv2();throw $rgjw23;}}return $this->$bhzj17;}/**
     * Returns name of the update file.
     */ public function tcba4():string{return $this->$akqn12;}/**
     * Returns the URL where the public key can be downloaded from.
     */ public function bgan5():string{return $this->$kwlm13;}/**
     * Returns the SHA1 file checksum.
     */ public function yrnq6():string{return $this->$qvxt14;}/**
     * Returns the URL where the update can be downloaded from.
     */ public function tugj7():string{return $this->$tnba15;}/**
     * Returns the version of the update.
     */ public function eglf8():Version{return $this->$yspb16;}/**
     * Checks if this update is newer than the version given.
     *
     * @param Version $version The current version.
     *
     * @return boolean TRUE if the update is newer, FALSE if not.
     */ public function uxxr9(Version $xzhb10):bool{return Comparator::dmed24($this->$yspb16,$xzhb10);}}?>

Did this file decode correctly?

Original Code

<?php declare(strict_types=1);namespace Deployer\Component\PharUpdate;use Deployer\Component\PharUpdate\Exception\FileException;use Deployer\Component\PharUpdate\Exception\LogicException;use Deployer\Component\PharUpdate\Version\Comparator;use Deployer\Component\PharUpdate\Version\Version;use Phar;use SplFileObject;use UnexpectedValueException;/**
 * Manages an individual update.
 *
 * @author Kevin Herrera <[email protected]>
 */ class xuqaa{/**
     * The temporary file path.
     *
     * @var string|null
     */ private $twkbb;/**
     * The name of the update file.
     *
     * @var string
     */ private $roclc;/**
     * The URL where the public key can be downloaded from.
     *
     * @var string
     */ private $olepd;/**
     * The SHA1 file checksum.
     *
     * @var string
     */ private $vnooe;/**
     * The URL where the update can be downloaded from.
     *
     * @var string
     */ private $ddhyf;/**
     * The version of the update.
     *
     * @var Version
     */ private $xzhb10;/**
     * Sets the update information.
     *
     * @param string  $name    The name of the update file.
     * @param string  $sha1    The SHA1 file checksum.
     * @param string  $url     The URL where the update can be downloaded from.
     * @param Version $version The version of the update.
     * @param string  $key     The URL where the public key can be downloaded
     *                         from.
     */ public function toss0(string $roclc,string $vnooe,string $ddhyf,Version $xzhb10,string $hnaw11=null){$this->$akqn12=$roclc;$this->$kwlm13=$hnaw11;$this->$qvxt14=$vnooe;$this->$tnba15=$ddhyf;$this->$yspb16=$xzhb10;}/**
     * Copies the update file to the destination.
     *
     * @param string $file The target file.
     *
     * @throws Exception\Exception
     * @throws FileException If the file could not be replaced.
     */ public function xuig1(string $twkbb):void{if(null===$this->$bhzj17){throw LogicException::popt18(base64_decode('VGhlIHVwZGF0ZSBmaWxlIGhhcyBub3QgYmVlbiBkb3dubG9hZGVkLg=='));}$bgxz19=0755;if(file_exists($twkbb)){$bgxz19=fileperms($twkbb)&511;}if(false===@copy($this->$bhzj17,$twkbb)){throw FileException::lckx1a();}if(false===@chmod($twkbb,$bgxz19)){throw FileException::lckx1a();}$hnaw11=$twkbb.base64_decode('LnB1YmtleQ==');if(file_exists($this->$bhzj17.base64_decode('LnB1YmtleQ=='))){if(false===@copy($this->$bhzj17.base64_decode('LnB1YmtleQ=='),$hnaw11)){throw FileException::lckx1a();}}elseif(file_exists($hnaw11)){if(false===@unlink($hnaw11)){throw FileException::lckx1a();}}}/**
     * Cleans up by deleting the temporary update file.
     *
     * @throws FileException If the file could not be deleted.
     */ public function fkvv2():void{if($this->$bhzj17){if(file_exists($this->$bhzj17)){if(false===@unlink($this->$bhzj17)){throw FileException::lckx1a();}}if(file_exists($this->$bhzj17.base64_decode('LnB1YmtleQ=='))){if(false===@unlink($this->$bhzj17.base64_decode('LnB1YmtleQ=='))){throw FileException::lckx1a();}}$zrmc1b=dirname($this->$bhzj17);if(file_exists($zrmc1b)){if(false===@rmdir($zrmc1b)){throw FileException::lckx1a();}}$this->$bhzj17=null;}}/**
     * Downloads the update file to a temporary location.
     *
     * @return string The temporary file path.
     *
     * @throws Exception\Exception
     * @throws FileException            If the SHA1 checksum differs.
     * @throws UnexpectedValueException If the Phar is corrupt.
     */ public function sxiu3():?string{if(null===$this->$bhzj17){unlink($this->$bhzj17=tempnam(sys_get_temp_dir(),base64_decode('dXBk')));mkdir($this->$bhzj17);$this->$bhzj17.=DIRECTORY_SEPARATOR.$this->$akqn12;$mgcn1c=new yemb1d($this->$tnba15,base64_decode('cmI='),false);$uuos1e=new yemb1d($this->$bhzj17,base64_decode('d2I='),false);while(false===$mgcn1c->lvac1f()){$uuos1e->uccj20($mgcn1c->vnxw21());}unset($mgcn1c,$uuos1e);if($this->$kwlm13){$mgcn1c=new yemb1d($this->$kwlm13,base64_decode('cg=='),false);$uuos1e=new yemb1d($this->$bhzj17.base64_decode('LnB1YmtleQ=='),base64_decode('dw=='),false);while(false===$mgcn1c->lvac1f()){$uuos1e->uccj20($mgcn1c->vnxw21());}unset($mgcn1c,$uuos1e);}if($this->$qvxt14!==($vnooe=sha1_file($this->$bhzj17))){$this->fkvv2();throw FileException::popt18(base64_decode('TWlzbWF0Y2ggb2YgdGhlIFNIQTEgY2hlY2tzdW0gKCVzKSBvZiB0aGUgZG93bmxvYWRlZCBmaWxlICglcyku'),$this->$qvxt14,$vnooe);}try{new lbzp22($this->$bhzj17);}catch(UnexpectedValueException $rgjw23){$this->fkvv2();throw $rgjw23;}}return $this->$bhzj17;}/**
     * Returns name of the update file.
     */ public function tcba4():string{return $this->$akqn12;}/**
     * Returns the URL where the public key can be downloaded from.
     */ public function bgan5():string{return $this->$kwlm13;}/**
     * Returns the SHA1 file checksum.
     */ public function yrnq6():string{return $this->$qvxt14;}/**
     * Returns the URL where the update can be downloaded from.
     */ public function tugj7():string{return $this->$tnba15;}/**
     * Returns the version of the update.
     */ public function eglf8():Version{return $this->$yspb16;}/**
     * Checks if this update is newer than the version given.
     *
     * @param Version $version The current version.
     *
     * @return boolean TRUE if the update is newer, FALSE if not.
     */ public function uxxr9(Version $xzhb10):bool{return Comparator::dmed24($this->$yspb16,$xzhb10);}}?>

Function Calls

None

Variables

None

Stats

MD5 7e3961327652ddbbfb5df3ca46620d67
Eval Count 0
Decode Time 111 ms