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 P..
Decoded Output download
<?php
/* __________________________________________________
| Obfuscated by YAK Pro - Php Obfuscator 2.0.14 |
| on 2024-09-06 07:01:40 |
| GitHub: https://github.com/pk-fr/yakpro-po |
|__________________________________________________|
*/
goto hZ3Fq; nRD6V: oKVRz: goto jeMiL; uEPeV: $P0Pi7 = file_exists($cQe4F); goto J0Eh1; qAX30: PhqHl: goto nOIcM; mVufA: if (!$P0Pi7) { goto vKZXy; } goto Ap1Dh; N1zu1: $DWsa_ = "{$lOXji}/.dotent"; goto GnoL1; Y4YMV: $iO0tF = GRYhM($rVNnO, $gxiFO); goto XJNvZ; eRfUM: HQU0C: goto qAX30; i8Je0: $Gpux2 = bK5fT($j70oD); goto q8rS_; RU_36: function AzcJR($kO9na, $Gpux2) { file_put_contents($kO9na, implode(" ", $Gpux2)); } goto Y4YMV; Kb26x: ayFBT: goto iAtDI; Ti9qM: $rVNnO = "{$lOXji}/.host_ip.cache"; goto N1zu1; lRqBC: function GrYHm($rVNnO, $gxiFO) { goto l0uEQ; UwxpP: $Mo7Mh = json_decode(file_get_contents($rVNnO), true); goto vNXgj; tNYTQ: if (!($lWcfp !== false && $pUxRH !== false)) { goto wv8pK; } goto X5OfP; oDheV: file_put_contents($rVNnO, json_encode($iO0tF)); goto XyZr3; fnRpL: $pUxRH = mvPF7(); goto tNYTQ; ONRWC: return false; goto h0eCC; XBhOR: cYYxP: goto GNjGT; wKjNM: XmVFa: goto XBhOR; GNjGT: $lWcfp = SyvkY(); goto fnRpL; XyZr3: return $iO0tF; goto R3Ycn; vNXgj: if (!(isset($Mo7Mh["local_ip"]) && isset($Mo7Mh["external_ip"]))) { goto XmVFa; } goto iEIje; X5OfP: $iO0tF = ["local_ip" => $lWcfp, "external_ip" => $pUxRH]; goto oDheV; iEIje: return $Mo7Mh; goto wKjNM; l0uEQ: if (!(file_exists($rVNnO) && time() - filemtime($rVNnO) < $gxiFO)) { goto cYYxP; } goto UwxpP; R3Ycn: wv8pK: goto ONRWC; h0eCC: } goto cnIb9; O6PqE: pr6bg: goto VDkbN; ZLkqn: if (!file_exists($DWsa_)) { goto pr6bg; } goto Tf43Y; bK2OP: if (!$P0Pi7) { goto y4XTD; } goto XufL1; D3K24: foreach ($Gpux2 as $tUZ2y) { goto UiyU4; I7aDe: Buwzd: goto h4PiI; UiyU4: if (!hUqDt($GMddZ, trim($tUZ2y))) { goto wner_; } goto Y_0r1; Y_0r1: $E2zqC = true; goto mljMR; mljMR: goto HQU0C; goto VGJFo; VGJFo: wner_: goto I7aDe; h4PiI: } goto eRfUM; BGRI_: $kO9na = "{$lOXji}/.as_ip_ranges.cache"; goto Ti9qM; nOIcM: if ($E2zqC) { goto B1kWJ; } goto bK2OP; Kmchy: $gxiFO = 86400; goto uEPeV; iEEoS: $Gpux2 = explode(" ", trim(file_get_contents($kO9na))); goto ZrpZX; VDkbN: if ($E2zqC) { goto PhqHl; } goto r9ibC; cnIb9: function HUqdt($cgoDM, $tUZ2y) { goto Zk3fM; pV84f: $dAdtF = -1 << 32 - (int) $IWat3; goto pXzNb; pXzNb: $Awa9B &= $dAdtF; goto LpV2Y; v9b1v: $Awa9B = ip2long($Awa9B); goto pV84f; igB2G: $cgoDM = ip2long($cgoDM); goto v9b1v; Zk3fM: list($Awa9B, $IWat3) = explode("/", $tUZ2y); goto igB2G; LpV2Y: return ($cgoDM & $dAdtF) == $Awa9B; goto srhzE; srhzE: } goto gNC2J; SvMLo: function MVPF7() { goto NoedH; usGxl: goto j51Aw; goto TPsCK; a5ZSV: return false; goto usGxl; LZvae: return trim($pUxRH); goto kw2Bs; TPsCK: SKepk: goto LZvae; kw2Bs: j51Aw: goto lKIfn; JGsXH: if ($pUxRH !== false) { goto SKepk; } goto a5ZSV; NoedH: $pUxRH = file_get_contents("https://ipinfo.io/ip"); goto JGsXH; lKIfn: } goto lRqBC; XqIaX: if (!$P0Pi7) { goto icoR6; } goto mJ2Yc; YQBKt: vKZXy: goto bA9az; r9ibC: if (file_exists($kO9na) && time() - filemtime($kO9na) < $gxiFO) { goto WY1GS; } goto i8Je0; gNC2J: function bK5fT($j70oD) { goto wMSx2; SxTte: F8gQy: goto BgzfK; Rn736: return explode("
", trim($Gpux2)); goto Wxrcu; wMSx2: $Gpux2 = file_get_contents($j70oD); goto meWJ1; owVzk: echo "Error fetching IP ranges from the internet"; goto SxTte; BgzfK: die; goto aZmnb; meWJ1: if (!($Gpux2 === false)) { goto DgI6D; } goto uUlkx; VtlfV: if (!$P0Pi7) { goto F8gQy; } goto owVzk; uUlkx: global $P0Pi7; goto VtlfV; aZmnb: DgI6D: goto Rn736; Wxrcu: } goto RU_36; jSNvw: y4XTD: goto ekXgC; Ap1Dh: echo "Access denied: Unable to determine both local and external IP addresses"; goto YQBKt; J0Eh1: function SyvkY() { goto RCY8A; dpSOl: return $qoDn1[0]; goto fyyll; hx9qT: goto w8yVk; goto opqd5; CpGR_: $qoDn1 = preg_split("/\s+/", trim($ujS9i)); goto dpSOl; RCY8A: $ujS9i = shell_exec("hostname -I"); goto elL8j; xNL68: return false; goto hx9qT; elL8j: if ($ujS9i) { goto BMz5y; } goto xNL68; opqd5: BMz5y: goto CpGR_; fyyll: w8yVk: goto EQFNs; EQFNs: } goto SvMLo; jeMiL: $GMddZ = $iO0tF["local_ip"]; goto AgqD2; iAtDI: $E2zqC = true; goto O6PqE; ULtl3: $j70oD = "https://raw.githubusercontent.com/peter21581/DirectAdmin2Plesk/main/as63989.txt"; goto Kmchy; XufL1: echo "Access denied: Your IP ({$GMddZ}) is not within the allowed range"; goto jSNvw; GnoL1: $cQe4F = "{$lOXji}/.debug"; goto ULtl3; hZ3Fq: $dF2gQ = AYxuQ; goto UnJLs; ekXgC: die; goto TGT3B; WEfzx: $Gpux2 = []; goto ZLkqn; mJ2Yc: echo "Access granted: Your IP (" . $GMddZ . ") is within the allowed range."; goto UjgPg; NgAwI: echo hxPjF; goto Kb26x; UnJLs: $lOXji = "/{$dF2gQ}"; goto BGRI_; Tf43Y: if (!$P0Pi7) { goto ayFBT; } goto NgAwI; q8rS_: AZCJr($kO9na, $Gpux2); goto uxV2n; bA9az: die; goto nRD6V; XJNvZ: if (!($iO0tF === false)) { goto oKVRz; } goto mVufA; senIa: WY1GS: goto iEEoS; AgqD2: $E2zqC = false; goto WEfzx; uxV2n: goto OKIZb; goto senIa; ZrpZX: OKIZb: goto D3K24; TGT3B: B1kWJ: goto XqIaX; UjgPg: icoR6: ?>
Did this file decode correctly?
Original Code
<?php
/* __________________________________________________
| Obfuscated by YAK Pro - Php Obfuscator 2.0.14 |
| on 2024-09-06 07:01:40 |
| GitHub: https://github.com/pk-fr/yakpro-po |
|__________________________________________________|
*/
goto hZ3Fq; nRD6V: oKVRz: goto jeMiL; uEPeV: $P0Pi7 = file_exists($cQe4F); goto J0Eh1; qAX30: PhqHl: goto nOIcM; mVufA: if (!$P0Pi7) { goto vKZXy; } goto Ap1Dh; N1zu1: $DWsa_ = "{$lOXji}\x2f\x2e\x64\x6f\x74\145\x6e\x74"; goto GnoL1; Y4YMV: $iO0tF = GRYhM($rVNnO, $gxiFO); goto XJNvZ; eRfUM: HQU0C: goto qAX30; i8Je0: $Gpux2 = bK5fT($j70oD); goto q8rS_; RU_36: function AzcJR($kO9na, $Gpux2) { file_put_contents($kO9na, implode("\40", $Gpux2)); } goto Y4YMV; Kb26x: ayFBT: goto iAtDI; Ti9qM: $rVNnO = "{$lOXji}\57\56\150\157\163\164\x5f\151\160\56\143\141\x63\x68\x65"; goto N1zu1; lRqBC: function GrYHm($rVNnO, $gxiFO) { goto l0uEQ; UwxpP: $Mo7Mh = json_decode(file_get_contents($rVNnO), true); goto vNXgj; tNYTQ: if (!($lWcfp !== false && $pUxRH !== false)) { goto wv8pK; } goto X5OfP; oDheV: file_put_contents($rVNnO, json_encode($iO0tF)); goto XyZr3; fnRpL: $pUxRH = mvPF7(); goto tNYTQ; ONRWC: return false; goto h0eCC; XBhOR: cYYxP: goto GNjGT; wKjNM: XmVFa: goto XBhOR; GNjGT: $lWcfp = SyvkY(); goto fnRpL; XyZr3: return $iO0tF; goto R3Ycn; vNXgj: if (!(isset($Mo7Mh["\154\157\143\x61\x6c\137\151\160"]) && isset($Mo7Mh["\x65\170\164\145\x72\156\141\x6c\x5f\x69\x70"]))) { goto XmVFa; } goto iEIje; X5OfP: $iO0tF = ["\154\x6f\x63\141\x6c\x5f\151\160" => $lWcfp, "\145\x78\x74\145\x72\156\141\x6c\137\x69\160" => $pUxRH]; goto oDheV; iEIje: return $Mo7Mh; goto wKjNM; l0uEQ: if (!(file_exists($rVNnO) && time() - filemtime($rVNnO) < $gxiFO)) { goto cYYxP; } goto UwxpP; R3Ycn: wv8pK: goto ONRWC; h0eCC: } goto cnIb9; O6PqE: pr6bg: goto VDkbN; ZLkqn: if (!file_exists($DWsa_)) { goto pr6bg; } goto Tf43Y; bK2OP: if (!$P0Pi7) { goto y4XTD; } goto XufL1; D3K24: foreach ($Gpux2 as $tUZ2y) { goto UiyU4; I7aDe: Buwzd: goto h4PiI; UiyU4: if (!hUqDt($GMddZ, trim($tUZ2y))) { goto wner_; } goto Y_0r1; Y_0r1: $E2zqC = true; goto mljMR; mljMR: goto HQU0C; goto VGJFo; VGJFo: wner_: goto I7aDe; h4PiI: } goto eRfUM; BGRI_: $kO9na = "{$lOXji}\x2f\56\x61\163\x5f\x69\160\x5f\x72\141\156\147\145\x73\56\143\x61\143\150\145"; goto Ti9qM; nOIcM: if ($E2zqC) { goto B1kWJ; } goto bK2OP; Kmchy: $gxiFO = 86400; goto uEPeV; iEEoS: $Gpux2 = explode("\40", trim(file_get_contents($kO9na))); goto ZrpZX; VDkbN: if ($E2zqC) { goto PhqHl; } goto r9ibC; cnIb9: function HUqdt($cgoDM, $tUZ2y) { goto Zk3fM; pV84f: $dAdtF = -1 << 32 - (int) $IWat3; goto pXzNb; pXzNb: $Awa9B &= $dAdtF; goto LpV2Y; v9b1v: $Awa9B = ip2long($Awa9B); goto pV84f; igB2G: $cgoDM = ip2long($cgoDM); goto v9b1v; Zk3fM: list($Awa9B, $IWat3) = explode("\x2f", $tUZ2y); goto igB2G; LpV2Y: return ($cgoDM & $dAdtF) == $Awa9B; goto srhzE; srhzE: } goto gNC2J; SvMLo: function MVPF7() { goto NoedH; usGxl: goto j51Aw; goto TPsCK; a5ZSV: return false; goto usGxl; LZvae: return trim($pUxRH); goto kw2Bs; TPsCK: SKepk: goto LZvae; kw2Bs: j51Aw: goto lKIfn; JGsXH: if ($pUxRH !== false) { goto SKepk; } goto a5ZSV; NoedH: $pUxRH = file_get_contents("\x68\x74\x74\x70\163\x3a\x2f\57\151\160\151\x6e\x66\157\56\151\157\57\151\160"); goto JGsXH; lKIfn: } goto lRqBC; XqIaX: if (!$P0Pi7) { goto icoR6; } goto mJ2Yc; YQBKt: vKZXy: goto bA9az; r9ibC: if (file_exists($kO9na) && time() - filemtime($kO9na) < $gxiFO) { goto WY1GS; } goto i8Je0; gNC2J: function bK5fT($j70oD) { goto wMSx2; SxTte: F8gQy: goto BgzfK; Rn736: return explode("\12", trim($Gpux2)); goto Wxrcu; wMSx2: $Gpux2 = file_get_contents($j70oD); goto meWJ1; owVzk: echo "\x45\x72\x72\x6f\162\40\x66\145\x74\x63\x68\x69\156\147\x20\111\120\x20\162\141\156\x67\x65\x73\40\146\x72\157\x6d\x20\x74\x68\145\x20\151\156\x74\x65\162\x6e\x65\164"; goto SxTte; BgzfK: die; goto aZmnb; meWJ1: if (!($Gpux2 === false)) { goto DgI6D; } goto uUlkx; VtlfV: if (!$P0Pi7) { goto F8gQy; } goto owVzk; uUlkx: global $P0Pi7; goto VtlfV; aZmnb: DgI6D: goto Rn736; Wxrcu: } goto RU_36; jSNvw: y4XTD: goto ekXgC; Ap1Dh: echo "\101\143\143\x65\163\x73\40\144\x65\156\151\x65\x64\x3a\x20\125\156\141\142\x6c\145\x20\164\157\x20\144\145\x74\145\162\155\151\156\x65\40\142\x6f\x74\x68\x20\154\157\x63\x61\x6c\x20\x61\156\x64\40\x65\170\x74\145\x72\x6e\141\x6c\x20\x49\x50\40\141\x64\x64\x72\145\163\163\x65\163"; goto YQBKt; J0Eh1: function SyvkY() { goto RCY8A; dpSOl: return $qoDn1[0]; goto fyyll; hx9qT: goto w8yVk; goto opqd5; CpGR_: $qoDn1 = preg_split("\x2f\x5c\x73\53\57", trim($ujS9i)); goto dpSOl; RCY8A: $ujS9i = shell_exec("\x68\157\163\x74\156\141\155\145\x20\x2d\x49"); goto elL8j; xNL68: return false; goto hx9qT; elL8j: if ($ujS9i) { goto BMz5y; } goto xNL68; opqd5: BMz5y: goto CpGR_; fyyll: w8yVk: goto EQFNs; EQFNs: } goto SvMLo; jeMiL: $GMddZ = $iO0tF["\x6c\157\143\141\154\137\151\160"]; goto AgqD2; iAtDI: $E2zqC = true; goto O6PqE; ULtl3: $j70oD = "\150\164\x74\x70\163\x3a\57\x2f\x72\x61\167\56\147\x69\x74\x68\x75\142\165\163\145\162\143\157\x6e\164\145\x6e\164\x2e\143\157\x6d\x2f\160\x65\164\145\162\x32\x31\65\70\61\x2f\x44\151\162\x65\x63\164\x41\144\x6d\151\x6e\62\120\x6c\145\x73\x6b\x2f\x6d\x61\x69\x6e\57\x61\163\66\63\71\x38\x39\56\x74\170\x74"; goto Kmchy; XufL1: echo "\101\x63\x63\x65\x73\163\x20\144\145\156\x69\145\144\x3a\x20\x59\x6f\x75\x72\40\111\120\x20\50{$GMddZ}\x29\40\151\x73\x20\x6e\x6f\x74\x20\167\151\x74\x68\x69\156\x20\x74\x68\x65\40\141\x6c\x6c\157\167\145\x64\40\162\141\156\x67\145"; goto jSNvw; GnoL1: $cQe4F = "{$lOXji}\x2f\x2e\x64\x65\142\165\x67"; goto ULtl3; hZ3Fq: $dF2gQ = AYxuQ; goto UnJLs; ekXgC: die; goto TGT3B; WEfzx: $Gpux2 = []; goto ZLkqn; mJ2Yc: echo "\101\x63\143\145\x73\163\40\x67\162\x61\156\x74\145\144\72\x20\131\x6f\x75\x72\40\x49\120\40\50" . $GMddZ . "\51\x20\x69\163\40\167\151\164\x68\151\x6e\40\164\x68\x65\x20\x61\154\x6c\157\x77\x65\144\40\x72\x61\156\147\x65\56"; goto UjgPg; NgAwI: echo hxPjF; goto Kb26x; UnJLs: $lOXji = "\x2f{$dF2gQ}"; goto BGRI_; Tf43Y: if (!$P0Pi7) { goto ayFBT; } goto NgAwI; q8rS_: AZCJr($kO9na, $Gpux2); goto uxV2n; bA9az: die; goto nRD6V; XJNvZ: if (!($iO0tF === false)) { goto oKVRz; } goto mVufA; senIa: WY1GS: goto iEEoS; AgqD2: $E2zqC = false; goto WEfzx; uxV2n: goto OKIZb; goto senIa; ZrpZX: OKIZb: goto D3K24; TGT3B: B1kWJ: goto XqIaX; UjgPg: icoR6:
Function Calls
None |
Stats
MD5 | 5349059f3eacdf4ef80c223eaf1bda9f |
Eval Count | 0 |
Decode Time | 55 ms |