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 /* __________________________________________________ | Obfuscated by YAK Pro..
Decoded Output download
<?php
/* __________________________________________________
| Obfuscated by YAK Pro - Php Obfuscator 2.0.14 |
| on 2024-04-04 18:49:21 |
| GitHub: https://github.com/pk-fr/yakpro-po |
|__________________________________________________|
*/
declare (strict_types=1); namespace lDFeG\yLbPN\WB2OI; use lDfeg\YLbpn\wb2Oi\Exception\V4BC_; use ldfEg\yLbPn\wB2OI\Exception\LogicException; use lDfEg\YLbPN\wb2oi\m0emm\dnvyp; use LdfeG\YlbPn\wB2Oi\M0EMM\m0EMm; use Phar; use SplFileObject; use UnexpectedValueException; class zf48M { private $file; private $name; private $yfh7t; private $hSRGf; private $SnSu7; private $DPraD; public function __construct(string $u0mOh, string $VIWwW, string $gZdUP, M0eMM $ekdAx, string $wf1PE = null) { goto L5d_U; dciTz: $this->DPraD = $ekdAx; goto nlzXl; wv2CD: $this->SnSu7 = $gZdUP; goto dciTz; L5d_U: $this->name = $u0mOh; goto LoAQn; ELf1h: $this->hSRGf = $VIWwW; goto wv2CD; LoAQn: $this->yfh7t = $wf1PE; goto ELf1h; nlzXl: } public function AIb2G(string $tRkRF) : void { goto p3eEt; fR3Ir: $LF4XN = 0755; goto qxXiP; cHDlj: throw v4BC_::SB9Fx(); goto wj0j6; v3VX9: $wf1PE = $tRkRF . ".pubkey"; goto sQtVB; bZvsW: kZK1A: goto pLp2T; TlIgx: eOVdA: goto fR3Ir; kN4ud: throw LogicException::create("The update file has not been downloaded."); goto TlIgx; meLVg: if (!(false === @chmod($tRkRF, $LF4XN))) { goto ySU41; } goto FM0aD; m8H3x: throw v4BC_::sB9Fx(); goto iwe03; J_Huc: RLmuW: goto WxP3B; NZGlO: ySU41: goto v3VX9; FM0aD: throw v4Bc_::Sb9FX(); goto NZGlO; kvxGc: tg5B8: goto tU52v; pLp2T: if (!(false === @copy($this->file . ".pubkey", $wf1PE))) { goto Sfr15; } goto m8H3x; wj0j6: YDbSy: goto CJFlD; F4iVN: $LF4XN = fileperms($tRkRF) & 511; goto J_Huc; CJFlD: OY5iZ: goto qgpRV; iwe03: Sfr15: goto yJPBj; sQtVB: if (file_exists($this->file . ".pubkey")) { goto kZK1A; } goto NEE3s; p3eEt: if (!(null === $this->file)) { goto eOVdA; } goto kN4ud; tU52v: if (!(false === @unlink($wf1PE))) { goto YDbSy; } goto cHDlj; lReG1: goto OY5iZ; goto bZvsW; yJPBj: goto OY5iZ; goto kvxGc; NEE3s: if (file_exists($wf1PE)) { goto tg5B8; } goto lReG1; qxXiP: if (!file_exists($tRkRF)) { goto RLmuW; } goto F4iVN; dVC15: HrAlq: goto meLVg; e_1nu: throw v4bC_::Sb9Fx(); goto dVC15; WxP3B: if (!(false === @copy($this->file, $tRkRF))) { goto HrAlq; } goto e_1nu; qgpRV: } public function YV3t4() : void { goto KUccn; oOdg1: throw v4bC_::Sb9Fx(); goto aWe9X; KUccn: if (!$this->file) { goto XMWvL; } goto HYUU8; Q9enY: if (!file_exists($this->file . ".pubkey")) { goto y40eG; } goto r_Am1; spaCb: throw V4BC_::sB9Fx(); goto CX9WX; YVJev: if (!file_exists($UZp4L)) { goto Ipur3; } goto yEGKb; RWrv3: Ipur3: goto B7gpB; UJJpk: aeGCW: goto Q9enY; HYUU8: if (!file_exists($this->file)) { goto aeGCW; } goto pVx4A; aWe9X: jkd71: goto SedAn; yEGKb: if (!(false === @rmdir($UZp4L))) { goto gKhoQ; } goto hCh3b; FEH1x: gKhoQ: goto RWrv3; hCh3b: throw v4bC_::Sb9fx(); goto FEH1x; B7gpB: $this->file = null; goto Fr7PC; r_Am1: if (!(false === @unlink($this->file . ".pubkey"))) { goto jkd71; } goto oOdg1; CX9WX: wcKyx: goto UJJpk; XIrmH: $UZp4L = dirname($this->file); goto YVJev; SedAn: y40eG: goto XIrmH; Fr7PC: XMWvL: goto GrqO1; pVx4A: if (!(false === @unlink($this->file))) { goto wcKyx; } goto spaCb; GrqO1: } public function getFile() : ?string { goto xJBji; VcNMI: YcP7e: goto fA8JH; BIRaU: $SQ2Ts = new SplFileObject($this->file, "wb", false); goto VcNMI; rHoMA: if (!$this->yfh7t) { goto q0TME; } goto sx0VP; YsrB8: $SQ2Ts->fwrite($Ssgan->fgets()); goto VlPGQ; tCgGk: try { new Phar($this->file); } catch (UnexpectedValueException $jrpLf) { $this->yV3t4(); throw $jrpLf; } goto kmVBn; SBcPA: Viqf4: goto PQ0vD; xJBji: if (!(null === $this->file)) { goto Aw5gp; } goto tz1jm; j7kjA: $this->yV3t4(); goto QzUsx; kWjxQ: return $this->file; goto GQPBk; b9bys: unset($Ssgan, $SQ2Ts); goto rHoMA; wLFhR: $this->file .= DIRECTORY_SEPARATOR . $this->name; goto MVv7o; aKhBD: goto YcP7e; goto JzKUM; xgij_: mkdir($this->file); goto wLFhR; MVv7o: $Ssgan = new SplFileObject($this->SnSu7, "rb", false); goto BIRaU; fA8JH: if (!(false === $Ssgan->eof())) { goto DhUjf; } goto ADxh_; sx0VP: $Ssgan = new SplFileObject($this->yfh7t, "r", false); goto vL7FX; tz1jm: unlink($this->file = tempnam(sys_get_temp_dir(), "upd")); goto xgij_; YYmxi: unset($Ssgan, $SQ2Ts); goto ZuhSJ; JzKUM: DhUjf: goto b9bys; W25RS: Echs7: goto tCgGk; gsXOT: P962v: goto YYmxi; ADxh_: $SQ2Ts->fwrite($Ssgan->fgets()); goto aKhBD; ZuhSJ: q0TME: goto etiJJ; PQ0vD: if (!(false === $Ssgan->eof())) { goto P962v; } goto YsrB8; QzUsx: throw V4bC_::create("Mismatch of the SHA1 checksum (%s) of the downloaded file (%s).", $this->hSRGf, $VIWwW); goto W25RS; etiJJ: if (!($this->hSRGf !== ($VIWwW = sha1_file($this->file)))) { goto Echs7; } goto j7kjA; vL7FX: $SQ2Ts = new SplFileObject($this->file . ".pubkey", "w", false); goto SBcPA; kmVBn: Aw5gp: goto kWjxQ; VlPGQ: goto Viqf4; goto gsXOT; GQPBk: } public function getName() : string { return $this->name; } public function yCuY0() : string { return $this->yfh7t; } public function AtApQ() : string { return $this->hSRGf; } public function getUrl() : string { return $this->SnSu7; } public function getVersion() : m0EMM { return $this->DPraD; } public function T_xyt(M0eMm $ekdAx) : bool { return DnVyp::fVoFr($this->DPraD, $ekdAx); } } ?>
Did this file decode correctly?
Original Code
<?php
/* __________________________________________________
| Obfuscated by YAK Pro - Php Obfuscator 2.0.14 |
| on 2024-04-04 18:49:21 |
| GitHub: https://github.com/pk-fr/yakpro-po |
|__________________________________________________|
*/
declare (strict_types=1); namespace lDFeG\yLbPN\WB2OI; use lDfeg\YLbpn\wb2Oi\Exception\V4BC_; use ldfEg\yLbPn\wB2OI\Exception\LogicException; use lDfEg\YLbPN\wb2oi\m0emm\dnvyp; use LdfeG\YlbPn\wB2Oi\M0EMM\m0EMm; use Phar; use SplFileObject; use UnexpectedValueException; class zf48M { private $file; private $name; private $yfh7t; private $hSRGf; private $SnSu7; private $DPraD; public function __construct(string $u0mOh, string $VIWwW, string $gZdUP, M0eMM $ekdAx, string $wf1PE = null) { goto L5d_U; dciTz: $this->DPraD = $ekdAx; goto nlzXl; wv2CD: $this->SnSu7 = $gZdUP; goto dciTz; L5d_U: $this->name = $u0mOh; goto LoAQn; ELf1h: $this->hSRGf = $VIWwW; goto wv2CD; LoAQn: $this->yfh7t = $wf1PE; goto ELf1h; nlzXl: } public function AIb2G(string $tRkRF) : void { goto p3eEt; fR3Ir: $LF4XN = 0755; goto qxXiP; cHDlj: throw v4BC_::SB9Fx(); goto wj0j6; v3VX9: $wf1PE = $tRkRF . "\x2e\160\x75\142\x6b\x65\x79"; goto sQtVB; bZvsW: kZK1A: goto pLp2T; TlIgx: eOVdA: goto fR3Ir; kN4ud: throw LogicException::create("\124\150\x65\x20\165\160\x64\141\x74\x65\x20\146\151\x6c\145\40\150\x61\163\x20\x6e\157\x74\40\142\145\x65\156\40\144\x6f\167\156\x6c\157\x61\144\145\x64\56"); goto TlIgx; meLVg: if (!(false === @chmod($tRkRF, $LF4XN))) { goto ySU41; } goto FM0aD; m8H3x: throw v4BC_::sB9Fx(); goto iwe03; J_Huc: RLmuW: goto WxP3B; NZGlO: ySU41: goto v3VX9; FM0aD: throw v4Bc_::Sb9FX(); goto NZGlO; kvxGc: tg5B8: goto tU52v; pLp2T: if (!(false === @copy($this->file . "\56\x70\x75\x62\x6b\145\171", $wf1PE))) { goto Sfr15; } goto m8H3x; wj0j6: YDbSy: goto CJFlD; F4iVN: $LF4XN = fileperms($tRkRF) & 511; goto J_Huc; CJFlD: OY5iZ: goto qgpRV; iwe03: Sfr15: goto yJPBj; sQtVB: if (file_exists($this->file . "\x2e\x70\x75\142\153\145\171")) { goto kZK1A; } goto NEE3s; p3eEt: if (!(null === $this->file)) { goto eOVdA; } goto kN4ud; tU52v: if (!(false === @unlink($wf1PE))) { goto YDbSy; } goto cHDlj; lReG1: goto OY5iZ; goto bZvsW; yJPBj: goto OY5iZ; goto kvxGc; NEE3s: if (file_exists($wf1PE)) { goto tg5B8; } goto lReG1; qxXiP: if (!file_exists($tRkRF)) { goto RLmuW; } goto F4iVN; dVC15: HrAlq: goto meLVg; e_1nu: throw v4bC_::Sb9Fx(); goto dVC15; WxP3B: if (!(false === @copy($this->file, $tRkRF))) { goto HrAlq; } goto e_1nu; qgpRV: } public function YV3t4() : void { goto KUccn; oOdg1: throw v4bC_::Sb9Fx(); goto aWe9X; KUccn: if (!$this->file) { goto XMWvL; } goto HYUU8; Q9enY: if (!file_exists($this->file . "\56\x70\165\142\153\x65\171")) { goto y40eG; } goto r_Am1; spaCb: throw V4BC_::sB9Fx(); goto CX9WX; YVJev: if (!file_exists($UZp4L)) { goto Ipur3; } goto yEGKb; RWrv3: Ipur3: goto B7gpB; UJJpk: aeGCW: goto Q9enY; HYUU8: if (!file_exists($this->file)) { goto aeGCW; } goto pVx4A; aWe9X: jkd71: goto SedAn; yEGKb: if (!(false === @rmdir($UZp4L))) { goto gKhoQ; } goto hCh3b; FEH1x: gKhoQ: goto RWrv3; hCh3b: throw v4bC_::Sb9fx(); goto FEH1x; B7gpB: $this->file = null; goto Fr7PC; r_Am1: if (!(false === @unlink($this->file . "\56\x70\165\x62\153\x65\171"))) { goto jkd71; } goto oOdg1; CX9WX: wcKyx: goto UJJpk; XIrmH: $UZp4L = dirname($this->file); goto YVJev; SedAn: y40eG: goto XIrmH; Fr7PC: XMWvL: goto GrqO1; pVx4A: if (!(false === @unlink($this->file))) { goto wcKyx; } goto spaCb; GrqO1: } public function getFile() : ?string { goto xJBji; VcNMI: YcP7e: goto fA8JH; BIRaU: $SQ2Ts = new SplFileObject($this->file, "\167\142", false); goto VcNMI; rHoMA: if (!$this->yfh7t) { goto q0TME; } goto sx0VP; YsrB8: $SQ2Ts->fwrite($Ssgan->fgets()); goto VlPGQ; tCgGk: try { new Phar($this->file); } catch (UnexpectedValueException $jrpLf) { $this->yV3t4(); throw $jrpLf; } goto kmVBn; SBcPA: Viqf4: goto PQ0vD; xJBji: if (!(null === $this->file)) { goto Aw5gp; } goto tz1jm; j7kjA: $this->yV3t4(); goto QzUsx; kWjxQ: return $this->file; goto GQPBk; b9bys: unset($Ssgan, $SQ2Ts); goto rHoMA; wLFhR: $this->file .= DIRECTORY_SEPARATOR . $this->name; goto MVv7o; aKhBD: goto YcP7e; goto JzKUM; xgij_: mkdir($this->file); goto wLFhR; MVv7o: $Ssgan = new SplFileObject($this->SnSu7, "\162\x62", false); goto BIRaU; fA8JH: if (!(false === $Ssgan->eof())) { goto DhUjf; } goto ADxh_; sx0VP: $Ssgan = new SplFileObject($this->yfh7t, "\162", false); goto vL7FX; tz1jm: unlink($this->file = tempnam(sys_get_temp_dir(), "\165\160\144")); goto xgij_; YYmxi: unset($Ssgan, $SQ2Ts); goto ZuhSJ; JzKUM: DhUjf: goto b9bys; W25RS: Echs7: goto tCgGk; gsXOT: P962v: goto YYmxi; ADxh_: $SQ2Ts->fwrite($Ssgan->fgets()); goto aKhBD; ZuhSJ: q0TME: goto etiJJ; PQ0vD: if (!(false === $Ssgan->eof())) { goto P962v; } goto YsrB8; QzUsx: throw V4bC_::create("\115\x69\163\155\141\164\143\x68\40\157\146\40\164\x68\145\x20\x53\x48\x41\x31\x20\143\x68\145\x63\153\x73\165\155\x20\x28\x25\x73\x29\40\x6f\x66\x20\164\150\145\x20\x64\157\x77\x6e\x6c\157\x61\x64\145\144\x20\146\151\x6c\x65\x20\50\x25\163\51\x2e", $this->hSRGf, $VIWwW); goto W25RS; etiJJ: if (!($this->hSRGf !== ($VIWwW = sha1_file($this->file)))) { goto Echs7; } goto j7kjA; vL7FX: $SQ2Ts = new SplFileObject($this->file . "\x2e\160\x75\x62\x6b\x65\171", "\x77", false); goto SBcPA; kmVBn: Aw5gp: goto kWjxQ; VlPGQ: goto Viqf4; goto gsXOT; GQPBk: } public function getName() : string { return $this->name; } public function yCuY0() : string { return $this->yfh7t; } public function AtApQ() : string { return $this->hSRGf; } public function getUrl() : string { return $this->SnSu7; } public function getVersion() : m0EMM { return $this->DPraD; } public function T_xyt(M0eMm $ekdAx) : bool { return DnVyp::fVoFr($this->DPraD, $ekdAx); } }
Function Calls
None |
Stats
MD5 | ab94a2825480e4633207998bc0ac3fdc |
Eval Count | 0 |
Decode Time | 91 ms |