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:47:13              |
    |    GitHub: https://github.com/pk-fr/yakpro-po    |
    |__________________________________________________|
*/
 declare (strict_types=1); namespace C9qE6\b3FD1; use c9QE6\WVui_\yZSnv; use C9qE6\WVUi_\duMEb; use c9QE6\peOHf\Dpral; use c9qe6\PpQqw; use my2Sr\vOhGV; use my2sR\NWBtc; use my2sr\T1AzW; class Zp5YJ extends dpRAL { protected Client $GfprF; protected array $JPj0A = ["index" => "my_index", "type" => "doc_type"]; public function qJWfP() : void { goto XGJ26; XGJ26: if (class_exists("Elastica\Client")) { goto LDr5F; } goto wI_ps; NFtNS: LDr5F: goto OR5OO; OR5OO: $this->GfprF = $this->FQUUq("Elastica\Client")->YCL4T(["addDocuments"])->FZC5y()->UQgRp(); goto NQJIV; wI_ps: $this->JXqWh("ruflin/elastica not installed"); goto NFtNS; NQJIV: } public function wWrB0() : void { parent::wWRb0(); unset($this->GfprF); } public function udSq6() { goto KVsAB; oapyq: $AJR01 = new TFrQK($this->GfprF, $this->JPj0A); goto K1L62; gGNPk: $MtXb1 = [$qtwsR->format($L7GEr)]; goto OoMpF; BxwFl: $qtwsR = new yZSNV($this->JPj0A["index"], $this->JPj0A["type"]); goto gGNPk; KVsAB: $L7GEr = $this->t3nCS(pPqQw::TqC2J, "log", context: ["foo" => 7, "bar", "class" => new \stdClass()], datetime: new \DateTimeImmutable("@0")); goto BxwFl; gYDst: $AJR01->rv7Yo([$L7GEr]); goto GKAqU; OoMpF: $this->GfprF->bDflt($this->hDnev())->wF0vF("addDocuments")->ukkD0($MtXb1); goto oapyq; K1L62: $AJR01->GvuJ5($L7GEr); goto gYDst; GKAqU: } public function rnAXk() { goto N5fLJ; E1pwM: $qtwsR = new YZSnv("index_new", "type_new"); goto nvQ72; N5fLJ: $AJR01 = new TFRqK($this->GfprF); goto E1pwM; e17sx: $this->DrRKy("Monolog\Formatter\ElasticaFormatter", $AJR01->HqwhK()); goto f7goG; nvQ72: $AJR01->s1HOf($qtwsR); goto e17sx; n6FpT: $this->Jl7Rd("type_new", $AJR01->hqwHK()->getType()); goto hsHIU; f7goG: $this->jL7Rd("index_new", $AJR01->HQWHk()->bKcRa()); goto n6FpT; hsHIU: } public function U9Oac() { goto aCsxi; aCsxi: $AJR01 = new TFRqk($this->GfprF); goto YpS6u; t0Zmo: $this->qiqEl(\InvalidArgumentException::class); goto cVDZu; cVDZu: $this->yCL_s("ElasticaHandler is only compatible with ElasticaFormatter"); goto kX_Ze; YpS6u: $qtwsR = new dUmeb(); goto t0Zmo; kX_Ze: $AJR01->S1hOF($qtwsR); goto iyYjl; iyYjl: } public function m5Bg9() { goto xiUSp; xiUSp: $MtXb1 = ["index" => $this->JPj0A["index"], "type" => $this->JPj0A["type"], "ignore_error" => false]; goto sW04C; sW04C: $AJR01 = new tFrqk($this->GfprF, $this->JPj0A); goto f6YX4; f6YX4: $this->jL7rD($MtXb1, $AJR01->Hfm3O()); goto RvWgZ; RvWgZ: } public function B9zu6($vdvCC, $GREfZ) { goto Bo4Go; bEpIp: $this->Ycl_s($GREfZ[1]); goto EyVv3; SXjHM: $AJR01 = new tfrQk($Q1WRJ, $BJIwL); goto ZSXYg; uetVb: I5Ssz: goto r4Vnq; MpZEr: $Q1WRJ = new VOHgV($fwBPC); goto Dp3Pt; JuswO: $this->j8m9Z($AJR01->GVUj5($this->t3ncs())); goto qruoD; EyVv3: $AJR01->gVUJ5($this->T3nCs()); goto uetVb; qruoD: goto I5Ssz; goto B_9Qv; VAcWy: $this->QIqEl($GREfZ[0]); goto bEpIp; Bo4Go: $fwBPC = ["host" => "127.0.0.1", "port" => 1]; goto MpZEr; B_9Qv: wHURS: goto VAcWy; ZSXYg: if ($GREfZ) { goto wHURS; } goto JuswO; Dp3Pt: $BJIwL = ["ignore_error" => $vdvCC]; goto SXjHM; r4Vnq: } public static function bCVZD() : array { return [[false, ["RuntimeException", "Error sending messages to Elasticsearch"]], [true, false]]; } public function rSS8k() { goto jHDJ6; iGB5z: $MtXb1 = (array) $L7GEr; goto VPXtn; VPXtn: $MtXb1["datetime"] = $L7GEr["datetime"]->format(\DateTime::ISO8601); goto d1z1E; lIyE4: try { $AJR01->rV7Yo([$L7GEr]); } catch (\RuntimeException $a_yat) { $this->jXQWh("Cannot connect to Elastic Search server on localhost"); } goto vAo3B; D99uh: $qm5EG = $this->A506C($Q1WRJ, $this->JPj0A["index"], null, $lZUqy); goto jV2Z7; vAo3B: $lZUqy = $this->rOlLB($Q1WRJ->L6wAV()); goto VK6Qa; jV2Z7: $this->jL7rD($MtXb1, $qm5EG); goto Iq4D8; d1z1E: $MtXb1["context"] = ["class" => "[object] (stdClass: {})", "foo" => 7, 0 => "bar"]; goto DlE67; Iq4D8: $Q1WRJ->sUKO3("/{$this->JPj0A["index"]}", Nwbtc::fSn6l); goto gt7MM; C6udp: $AJR01 = new tfRQk($Q1WRJ, $this->JPj0A); goto lIyE4; n7YKj: $Q1WRJ = new vOhGV($fwBPC); goto C6udp; jHDJ6: $L7GEr = $this->T3nCs(PpqqW::TqC2J, "log", context: ["foo" => 7, "bar", "class" => new \stdClass()], datetime: new \DateTimeImmutable("@0")); goto iGB5z; VK6Qa: $this->Y293t($lZUqy, "No elastic document id received"); goto D99uh; DlE67: $fwBPC = ["url" => "http://elastic:[email protected]:9200"]; goto n7YKj; gt7MM: } protected function ROlLb(t1AZW $hDUK3) : ?string { goto BP1ze; IlQPL: if (empty($kCjzG["items"][0]["index"]["_id"])) { goto Vxrt3; } goto Kw1Ya; Kw1Ya: return $kCjzG["items"][0]["index"]["_id"]; goto gHvOw; AJQax: return null; goto trAnQ; gHvOw: Vxrt3: goto KREKA; KREKA: var_dump("Unexpected response: ", $kCjzG); goto AJQax; BP1ze: $kCjzG = $hDUK3->Dip0o(); goto IlQPL; trAnQ: } protected function A506c(VOhgV $Q1WRJ, string $sYEqn, $O_6Dd, string $lZUqy) : array { goto XC9ms; MvZHE: $fEfkb = "/{$sYEqn}/{$O_6Dd}/{$lZUqy}"; goto t9r5U; GrF9U: uarbf: goto B0Sdj; gwUEL: if (empty($kCjzG["_source"])) { goto uarbf; } goto cHig1; t9r5U: goto rjfD4; goto yMzOF; cHig1: return $kCjzG["_source"]; goto GrF9U; B0Sdj: return []; goto nPwa8; vL9cs: rjfD4: goto AtLY5; yMzOF: ymtFr: goto ESwny; ESwny: $fEfkb = "/{$sYEqn}/_doc/{$lZUqy}"; goto vL9cs; sDr0D: $kCjzG = $G0yOp->DiP0O(); goto gwUEL; AtLY5: $G0yOp = $Q1WRJ->SUKo3($fEfkb, NWbTC::HrU4S); goto sDr0D; XC9ms: if ($O_6Dd === null) { goto ymtFr; } goto MvZHE; nPwa8: } } ?>

Did this file decode correctly?

Original Code

<?php
/*   __________________________________________________
    |  Obfuscated by YAK Pro - Php Obfuscator  2.0.14  |
    |              on 2024-04-04 18:47:13              |
    |    GitHub: https://github.com/pk-fr/yakpro-po    |
    |__________________________________________________|
*/
 declare (strict_types=1); namespace C9qE6\b3FD1; use c9QE6\WVui_\yZSnv; use C9qE6\WVUi_\duMEb; use c9QE6\peOHf\Dpral; use c9qe6\PpQqw; use my2Sr\vOhGV; use my2sR\NWBtc; use my2sr\T1AzW; class Zp5YJ extends dpRAL { protected Client $GfprF; protected array $JPj0A = ["\151\x6e\x64\x65\x78" => "\155\x79\x5f\151\156\144\x65\x78", "\164\x79\x70\x65" => "\x64\x6f\143\137\x74\171\x70\145"]; public function qJWfP() : void { goto XGJ26; XGJ26: if (class_exists("\x45\154\x61\163\x74\151\143\141\x5c\103\x6c\151\145\156\164")) { goto LDr5F; } goto wI_ps; NFtNS: LDr5F: goto OR5OO; OR5OO: $this->GfprF = $this->FQUUq("\x45\154\x61\x73\164\151\143\x61\x5c\103\x6c\x69\145\156\x74")->YCL4T(["\141\144\x64\x44\x6f\x63\x75\x6d\x65\156\164\x73"])->FZC5y()->UQgRp(); goto NQJIV; wI_ps: $this->JXqWh("\162\165\x66\x6c\151\156\57\x65\x6c\141\163\x74\x69\143\x61\40\156\157\164\40\x69\156\163\x74\141\154\154\x65\144"); goto NFtNS; NQJIV: } public function wWrB0() : void { parent::wWRb0(); unset($this->GfprF); } public function udSq6() { goto KVsAB; oapyq: $AJR01 = new TFrQK($this->GfprF, $this->JPj0A); goto K1L62; gGNPk: $MtXb1 = [$qtwsR->format($L7GEr)]; goto OoMpF; BxwFl: $qtwsR = new yZSNV($this->JPj0A["\151\x6e\144\x65\x78"], $this->JPj0A["\164\171\x70\x65"]); goto gGNPk; KVsAB: $L7GEr = $this->t3nCS(pPqQw::TqC2J, "\x6c\157\x67", context: ["\x66\157\157" => 7, "\x62\x61\x72", "\143\x6c\141\163\163" => new \stdClass()], datetime: new \DateTimeImmutable("\100\x30")); goto BxwFl; gYDst: $AJR01->rv7Yo([$L7GEr]); goto GKAqU; OoMpF: $this->GfprF->bDflt($this->hDnev())->wF0vF("\141\x64\144\104\157\x63\165\155\145\x6e\164\x73")->ukkD0($MtXb1); goto oapyq; K1L62: $AJR01->GvuJ5($L7GEr); goto gYDst; GKAqU: } public function rnAXk() { goto N5fLJ; E1pwM: $qtwsR = new YZSnv("\x69\156\144\x65\170\x5f\156\145\167", "\x74\171\x70\145\x5f\156\145\x77"); goto nvQ72; N5fLJ: $AJR01 = new TFRqK($this->GfprF); goto E1pwM; e17sx: $this->DrRKy("\115\x6f\156\157\154\x6f\147\x5c\x46\x6f\162\155\x61\x74\164\x65\162\134\105\154\x61\163\x74\x69\143\x61\x46\157\x72\x6d\141\164\164\x65\x72", $AJR01->HqwhK()); goto f7goG; nvQ72: $AJR01->s1HOf($qtwsR); goto e17sx; n6FpT: $this->Jl7Rd("\x74\x79\160\x65\137\156\145\x77", $AJR01->hqwHK()->getType()); goto hsHIU; f7goG: $this->jL7Rd("\x69\x6e\144\145\x78\137\x6e\x65\x77", $AJR01->HQWHk()->bKcRa()); goto n6FpT; hsHIU: } public function U9Oac() { goto aCsxi; aCsxi: $AJR01 = new TFRqk($this->GfprF); goto YpS6u; t0Zmo: $this->qiqEl(\InvalidArgumentException::class); goto cVDZu; cVDZu: $this->yCL_s("\x45\154\x61\163\164\151\x63\141\110\x61\156\x64\x6c\145\162\40\151\x73\40\x6f\156\x6c\171\x20\143\x6f\x6d\x70\x61\x74\x69\142\154\x65\x20\167\151\164\x68\40\x45\154\141\x73\x74\151\x63\x61\x46\x6f\x72\155\141\x74\164\x65\162"); goto kX_Ze; YpS6u: $qtwsR = new dUmeb(); goto t0Zmo; kX_Ze: $AJR01->S1hOF($qtwsR); goto iyYjl; iyYjl: } public function m5Bg9() { goto xiUSp; xiUSp: $MtXb1 = ["\151\156\x64\x65\170" => $this->JPj0A["\151\x6e\x64\x65\x78"], "\x74\x79\160\145" => $this->JPj0A["\164\171\x70\x65"], "\151\x67\x6e\x6f\162\145\137\145\x72\162\x6f\162" => false]; goto sW04C; sW04C: $AJR01 = new tFrqk($this->GfprF, $this->JPj0A); goto f6YX4; f6YX4: $this->jL7rD($MtXb1, $AJR01->Hfm3O()); goto RvWgZ; RvWgZ: } public function B9zu6($vdvCC, $GREfZ) { goto Bo4Go; bEpIp: $this->Ycl_s($GREfZ[1]); goto EyVv3; SXjHM: $AJR01 = new tfrQk($Q1WRJ, $BJIwL); goto ZSXYg; uetVb: I5Ssz: goto r4Vnq; MpZEr: $Q1WRJ = new VOHgV($fwBPC); goto Dp3Pt; JuswO: $this->j8m9Z($AJR01->GVUj5($this->t3ncs())); goto qruoD; EyVv3: $AJR01->gVUJ5($this->T3nCs()); goto uetVb; qruoD: goto I5Ssz; goto B_9Qv; VAcWy: $this->QIqEl($GREfZ[0]); goto bEpIp; Bo4Go: $fwBPC = ["\x68\157\x73\x74" => "\61\x32\67\56\x30\56\x30\56\61", "\160\x6f\x72\x74" => 1]; goto MpZEr; B_9Qv: wHURS: goto VAcWy; ZSXYg: if ($GREfZ) { goto wHURS; } goto JuswO; Dp3Pt: $BJIwL = ["\x69\x67\x6e\157\162\145\137\145\x72\x72\157\162" => $vdvCC]; goto SXjHM; r4Vnq: } public static function bCVZD() : array { return [[false, ["\x52\x75\x6e\x74\151\x6d\x65\x45\x78\143\145\x70\x74\x69\x6f\156", "\x45\162\162\157\162\40\x73\x65\156\x64\151\x6e\x67\x20\x6d\145\x73\163\x61\x67\x65\x73\40\164\157\x20\x45\154\x61\163\164\151\x63\x73\x65\x61\162\x63\150"]], [true, false]]; } public function rSS8k() { goto jHDJ6; iGB5z: $MtXb1 = (array) $L7GEr; goto VPXtn; VPXtn: $MtXb1["\x64\141\164\145\x74\151\x6d\145"] = $L7GEr["\x64\x61\164\145\164\x69\155\145"]->format(\DateTime::ISO8601); goto d1z1E; lIyE4: try { $AJR01->rV7Yo([$L7GEr]); } catch (\RuntimeException $a_yat) { $this->jXQWh("\x43\141\156\x6e\157\164\x20\143\x6f\156\x6e\145\x63\164\x20\x74\x6f\40\105\154\141\x73\x74\x69\143\x20\x53\x65\141\x72\143\x68\x20\x73\145\x72\166\x65\162\40\157\156\40\154\x6f\143\141\154\150\157\x73\164"); } goto vAo3B; D99uh: $qm5EG = $this->A506C($Q1WRJ, $this->JPj0A["\151\156\144\x65\170"], null, $lZUqy); goto jV2Z7; vAo3B: $lZUqy = $this->rOlLB($Q1WRJ->L6wAV()); goto VK6Qa; jV2Z7: $this->jL7rD($MtXb1, $qm5EG); goto Iq4D8; d1z1E: $MtXb1["\x63\x6f\156\x74\145\x78\x74"] = ["\143\x6c\141\163\x73" => "\x5b\157\142\x6a\x65\x63\164\135\x20\50\163\x74\x64\103\x6c\141\x73\163\72\40\173\175\x29", "\146\157\157" => 7, 0 => "\x62\x61\x72"]; goto DlE67; Iq4D8: $Q1WRJ->sUKO3("\57{$this->JPj0A["\x69\156\144\145\170"]}", Nwbtc::fSn6l); goto gt7MM; C6udp: $AJR01 = new tfRQk($Q1WRJ, $this->JPj0A); goto lIyE4; n7YKj: $Q1WRJ = new vOhGV($fwBPC); goto C6udp; jHDJ6: $L7GEr = $this->T3nCs(PpqqW::TqC2J, "\154\157\147", context: ["\x66\157\x6f" => 7, "\x62\141\162", "\143\x6c\x61\163\163" => new \stdClass()], datetime: new \DateTimeImmutable("\100\60")); goto iGB5z; VK6Qa: $this->Y293t($lZUqy, "\116\157\40\145\x6c\141\x73\x74\151\143\x20\144\x6f\x63\165\155\x65\x6e\164\x20\x69\x64\x20\x72\x65\143\145\x69\166\x65\144"); goto D99uh; DlE67: $fwBPC = ["\x75\162\x6c" => "\x68\x74\164\160\72\x2f\x2f\145\x6c\141\x73\164\151\x63\72\x63\x68\x61\x6e\x67\145\x6d\x65\x40\x31\x32\67\x2e\60\x2e\60\56\61\x3a\71\x32\x30\60"]; goto n7YKj; gt7MM: } protected function ROlLb(t1AZW $hDUK3) : ?string { goto BP1ze; IlQPL: if (empty($kCjzG["\151\164\145\155\x73"][0]["\151\156\x64\145\170"]["\x5f\151\x64"])) { goto Vxrt3; } goto Kw1Ya; Kw1Ya: return $kCjzG["\x69\x74\145\x6d\163"][0]["\x69\x6e\144\x65\170"]["\137\151\x64"]; goto gHvOw; AJQax: return null; goto trAnQ; gHvOw: Vxrt3: goto KREKA; KREKA: var_dump("\x55\156\145\x78\160\x65\x63\x74\x65\x64\40\162\145\163\160\157\x6e\163\x65\x3a\40", $kCjzG); goto AJQax; BP1ze: $kCjzG = $hDUK3->Dip0o(); goto IlQPL; trAnQ: } protected function A506c(VOhgV $Q1WRJ, string $sYEqn, $O_6Dd, string $lZUqy) : array { goto XC9ms; MvZHE: $fEfkb = "\57{$sYEqn}\57{$O_6Dd}\x2f{$lZUqy}"; goto t9r5U; GrF9U: uarbf: goto B0Sdj; gwUEL: if (empty($kCjzG["\x5f\163\x6f\x75\162\x63\x65"])) { goto uarbf; } goto cHig1; t9r5U: goto rjfD4; goto yMzOF; cHig1: return $kCjzG["\x5f\163\157\x75\x72\x63\145"]; goto GrF9U; B0Sdj: return []; goto nPwa8; vL9cs: rjfD4: goto AtLY5; yMzOF: ymtFr: goto ESwny; ESwny: $fEfkb = "\57{$sYEqn}\57\x5f\x64\x6f\x63\57{$lZUqy}"; goto vL9cs; sDr0D: $kCjzG = $G0yOp->DiP0O(); goto gwUEL; AtLY5: $G0yOp = $Q1WRJ->SUKo3($fEfkb, NWbTC::HrU4S); goto sDr0D; XC9ms: if ($O_6Dd === null) { goto ymtFr; } goto MvZHE; nPwa8: } }

Function Calls

None

Variables

None

Stats

MD5 99fd0aa1b41fc429495248a2a0c9aff5
Eval Count 0
Decode Time 95 ms