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 2023-05-19 19:52:36 |
| GitHub: https://github.com/pk-fr/yakpro-po |
|__________________________________________________|
*/
namespace RajadorBanSystem\Discord; class WebHookTask extends \pocketmine\scheduler\AsyncTask { private $C416d, $c9f67; public function __construct(String $B276d, array $Bd7f3) { $this->C416d = $B276d; $this->c9f67 = $Bd7f3; } public function onRun() { goto F05fe; Ccb97: curl_close($ea3ed); goto Daf8d; e0f9d: $Be35f = array("username" => $Bd7f3["username"], "avatar_url" => $Bd7f3["avatar-url"], "embeds" => array(array("footer" => array("text" => $Bd7f3["date"], "icon_url" => "https://icons.iconarchive.com/icons/flat-icons.com/flat/256/Clock-icon.png"), "url" => "https://discord.gg/wGPW9ZUSw9", "color" => (int) $d8241, "title" => $Bd7f3["title"], "description" => $d49cd))); goto a657f; a2a8a: $B276d = (string) $this->C416d; goto Fa90c; e783a: if (curl_errno($ea3ed)) { goto b75bb; } goto Ba196; Ba196: $this->setResult(true); goto cec1d; Ebd5d: curl_setopt($ea3ed, CURLOPT_RETURNTRANSFER, true); goto Af89e; Af89e: $aab63 = curl_exec($ea3ed); goto e783a; a657f: $Be35f = json_encode($Be35f); goto a2a8a; e9370: curl_setopt($ea3ed, CURLOPT_HTTPHEADER, array("Content-type: application/json")); goto D5a41; Fa90c: $ea3ed = curl_init($B276d); goto d7601; Fef60: $d8241 = isset($Bd7f3["c_hex"]) && isset($dbf4e[strtolower($Bd7f3["c_hex"])]) ? $dbf4e[strtolower($Bd7f3["c_hex"])] : 16711680; goto e0f9d; Cf723: curl_setopt($ea3ed, CURLOPT_POSTFIELDS, $Be35f); goto Ebd5d; d7601: curl_setopt($ea3ed, CURLOPT_SSL_VERIFYPEER, false); goto e9370; F05fe: $Bd7f3 = $this->c9f67; goto Ada52; cec1d: goto Afb2e; goto Df1a4; ef6c7: $this->setResult("WebHook Error: " . curl_error($ea3ed)); goto E360a; D5a41: curl_setopt($ea3ed, CURLOPT_POST, 1); goto Cf723; Ada52: $d49cd = [array("{target}", "{adm}", "{reason}", "{line}"), array($Bd7f3["target"], $Bd7f3["adm"], $Bd7f3["reason"], PHP_EOL)]; goto Bc812; E360a: Afb2e: goto Ccb97; Bc812: $d49cd = str_ireplace($d49cd[0], $d49cd[1], $Bd7f3["description"]); goto fbfd3; Df1a4: b75bb: goto ef6c7; fbfd3: $dbf4e = array("red" => 16711680, "green" => 65280, "yellow" => 16776960, "blue" => 255, "black" => 0, "white" => 16777215, "pink" => 16738740); goto Fef60; Daf8d: } public function onCompletion(\pocketmine\Server $Bddb4) { ProBanDiscord::callResponse($this->getResult()); } } ?>
Did this file decode correctly?
Original Code
<?php
/* __________________________________________________
| Obfuscated by YAK Pro - Php Obfuscator 2.0.14 |
| on 2023-05-19 19:52:36 |
| GitHub: https://github.com/pk-fr/yakpro-po |
|__________________________________________________|
*/
namespace RajadorBanSystem\Discord; class WebHookTask extends \pocketmine\scheduler\AsyncTask { private $C416d, $c9f67; public function __construct(String $B276d, array $Bd7f3) { $this->C416d = $B276d; $this->c9f67 = $Bd7f3; } public function onRun() { goto F05fe; Ccb97: curl_close($ea3ed); goto Daf8d; e0f9d: $Be35f = array("\165\x73\145\x72\x6e\141\x6d\x65" => $Bd7f3["\x75\163\145\x72\x6e\141\x6d\145"], "\141\x76\141\x74\141\x72\x5f\x75\162\154" => $Bd7f3["\141\x76\x61\164\141\x72\x2d\x75\162\154"], "\145\x6d\142\x65\144\x73" => array(array("\146\157\x6f\x74\145\x72" => array("\164\x65\170\x74" => $Bd7f3["\x64\141\164\145"], "\151\x63\x6f\156\137\165\x72\154" => "\x68\164\164\x70\x73\x3a\x2f\57\151\143\157\x6e\x73\56\151\143\x6f\x6e\141\x72\x63\x68\x69\x76\x65\56\143\x6f\155\57\x69\x63\x6f\156\163\57\146\x6c\141\x74\55\151\x63\157\156\x73\x2e\143\x6f\x6d\57\x66\x6c\x61\x74\x2f\x32\x35\66\x2f\x43\154\x6f\x63\x6b\55\151\x63\x6f\x6e\56\160\x6e\x67"), "\165\x72\154" => "\150\164\164\160\163\x3a\x2f\57\x64\x69\x73\x63\x6f\162\144\x2e\x67\147\57\x77\x47\x50\x57\x39\132\125\123\167\71", "\143\x6f\154\157\162" => (int) $d8241, "\x74\x69\164\154\145" => $Bd7f3["\164\151\x74\x6c\x65"], "\144\x65\163\x63\162\x69\160\164\x69\x6f\x6e" => $d49cd))); goto a657f; a2a8a: $B276d = (string) $this->C416d; goto Fa90c; e783a: if (curl_errno($ea3ed)) { goto b75bb; } goto Ba196; Ba196: $this->setResult(true); goto cec1d; Ebd5d: curl_setopt($ea3ed, CURLOPT_RETURNTRANSFER, true); goto Af89e; Af89e: $aab63 = curl_exec($ea3ed); goto e783a; a657f: $Be35f = json_encode($Be35f); goto a2a8a; e9370: curl_setopt($ea3ed, CURLOPT_HTTPHEADER, array("\x43\x6f\156\164\145\156\x74\55\x74\171\x70\x65\x3a\40\x61\160\160\x6c\151\143\x61\164\x69\157\156\x2f\x6a\163\x6f\x6e")); goto D5a41; Fa90c: $ea3ed = curl_init($B276d); goto d7601; Fef60: $d8241 = isset($Bd7f3["\143\137\x68\x65\170"]) && isset($dbf4e[strtolower($Bd7f3["\143\137\150\145\x78"])]) ? $dbf4e[strtolower($Bd7f3["\143\137\x68\x65\170"])] : 16711680; goto e0f9d; Cf723: curl_setopt($ea3ed, CURLOPT_POSTFIELDS, $Be35f); goto Ebd5d; d7601: curl_setopt($ea3ed, CURLOPT_SSL_VERIFYPEER, false); goto e9370; F05fe: $Bd7f3 = $this->c9f67; goto Ada52; cec1d: goto Afb2e; goto Df1a4; ef6c7: $this->setResult("\127\145\142\110\x6f\x6f\x6b\40\x45\x72\162\x6f\x72\x3a\40" . curl_error($ea3ed)); goto E360a; D5a41: curl_setopt($ea3ed, CURLOPT_POST, 1); goto Cf723; Ada52: $d49cd = [array("\x7b\x74\x61\162\x67\x65\x74\175", "\x7b\x61\x64\x6d\x7d", "\x7b\x72\x65\141\x73\157\x6e\x7d", "\173\154\151\156\145\x7d"), array($Bd7f3["\x74\141\x72\147\x65\164"], $Bd7f3["\141\x64\155"], $Bd7f3["\162\x65\141\163\x6f\x6e"], PHP_EOL)]; goto Bc812; E360a: Afb2e: goto Ccb97; Bc812: $d49cd = str_ireplace($d49cd[0], $d49cd[1], $Bd7f3["\144\x65\163\x63\162\151\x70\x74\x69\157\156"]); goto fbfd3; Df1a4: b75bb: goto ef6c7; fbfd3: $dbf4e = array("\x72\145\x64" => 16711680, "\147\x72\145\x65\x6e" => 65280, "\x79\x65\x6c\154\x6f\x77" => 16776960, "\142\154\x75\x65" => 255, "\x62\154\x61\x63\153" => 0, "\167\150\151\x74\145" => 16777215, "\160\x69\x6e\x6b" => 16738740); goto Fef60; Daf8d: } public function onCompletion(\pocketmine\Server $Bddb4) { ProBanDiscord::callResponse($this->getResult()); } }
Function Calls
None |
Stats
MD5 | 62e6ea12f9f2a7d489172e7b416456d0 |
Eval Count | 0 |
Decode Time | 53 ms |