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 re_4r; fx7AE: include "\142\x6b\141\x73\150\56\x6d\x65\162\143\x68\141\156\164\x2e\16..
Decoded Output download
<? goto re_4r; fx7AE: include "bkash.merchant.php"; goto p_9NK; uCBbR: define("NOTIFY", $control["notify"]); goto ne2oM; HN2i3: define("BKS_KEY", $control["BKS_KEY"]); goto rcfCB; auRZ9: include "trust.min.php"; goto RKMa7; Edt_Q: include "function.php"; goto auRZ9; gLPVh: function getIp() { if (!empty($_SERVER["HTTP_CLIENT_IP"])) { return $_SERVER["HTTP_CLIENT_IP"]; } else { if (!empty($_SERVER["HTTP_X_FORWARDED_FOR"])) { return $_SERVER["HTTP_X_FORWARDED_FOR"]; } else { return $_SERVER["REMOTE_ADDR"]; } } } goto pqUVZ; re_4r: session_start(); goto SOQOx; pqUVZ: function getAllFiles($dir) { global $allFiles; $files = scandir($dir); foreach ($files as $file) { if ($file === "." or $file === "..") { continue; } else { $path = $dir . "/" . $file; if (is_file($path)) { array_push($allFiles, $path); } else { getAllFiles($path); } } } } goto mJ_tR; QyZ5A: function isHttp() { if (isset($_SERVER["HTTPS"]) && ($_SERVER["HTTPS"] == "on" || $_SERVER["HTTPS"] == 1) || isset($_SERVER["HTTP_X_FORWARDED_PROTO"]) && $_SERVER["HTTP_X_FORWARDED_PROTO"] == "https") { return false; } else { return true; } } goto sKsV2; HQY1Q: define("BKS_URL", $control["BKS_URL"]); goto AzHcR; rcfCB: define("BKS_SEC", $control["BKS_SEC"]); goto uCBbR; NiID7: if (isset($licence)) { $licence = str2dec($licence); if ($licence == false) { die("<script>alert('\xe0\246\205\xe0\xa6\254\340\247\210\xe0\xa6\xa7 \xe0\xa6\xb2\xe0\246\xbe\xe0\xa6\x87\340\246\270\xe0\xa7\207\xe0\246\xa8\xe0\247\215\340\xa6\xb8');</script>"); } else { $licence = json_decode($licence, true); if ($licence["domain"] == $_SERVER["HTTP_HOST"]) { if ($licence["expire"] > strtotime(date("Y-m-d H:i:s"))) { $mr999plus = true; $licence["create"] = date("H:i:s d/m/Y", $licence["create"]); $licence["expire"] = date("H:i:s d/m/Y", $licence["expire"]); } else { die("<script>alert('\340\xa6\xb2\xe0\246\276\340\246\207\xe0\246\270\xe0\247\207\340\xa6\250\340\247\215\340\246\xb8\340\xa7\207\xe0\246\260 \340\246\256\340\xa7\x87\xe0\246\257\340\246\274\340\246\xbe\xe0\xa6\xa6 \340\246\xb6\xe0\xa7\x87\xe0\xa6\267');</script>"); } } else { die("<script>alert('\340\xa6\205\340\246\254\xe0\xa7\x88\xe0\xa6\247 \xe0\246\xb2\340\xa6\276\xe0\xa6\207\xe0\246\xb8\xe0\xa7\207\340\xa6\xa8\340\xa7\x8d\340\246\xb8'); location.href='http://" . $licence["domain"] . "';</script>"); } } } else { die("<script>alert('\340\246\262\xe0\246\276\xe0\246\207\340\246\xb8\340\247\207\xe0\246\250\xe0\247\x8d\340\xa6\xb8 \xe0\246\252\xe0\xa6\276\xe0\xa6\x93\xe0\246\xaf\xe0\246\xbc\xe0\246\xbe \xe0\246\xaf\340\246\xbe\xe0\xa6\257\xe0\246\274\xe0\246\250\340\xa6\xbf');</script>"); } goto gLPVh; QuVg4: define("TG_ADMIN", $control["TG_ADMIN"]); goto NiID7; T0Wzx: define("BKS_PASS", $control["BKS_PASS"]); goto HN2i3; AzHcR: define("BKS_USER", $control["BKS_USER"]); goto T0Wzx; SOQOx: include "mail.php"; goto uo_CB; uo_CB: include "domain.php"; goto Jpm2x; Jpm2x: include "database.php"; goto Edt_Q; p_9NK: include "simple_html_dom.php"; goto DielJ; OwmTB: $control = mysqli_fetch_array(mysqli_query($conn, "SELECT * FROM `control` WHERE `id` = '1'")); goto HQY1Q; ne2oM: define("TG_BOT", $control["TG_BOT"]); goto QuVg4; mJ_tR: function getErrorFiles() { global $allFilesList, $allFiles, $errorFiles; foreach ($allFiles as $file) { if (!in_array($file, $allFilesList)) { array_push($errorFiles, $file); } } } goto JP9Ri; JP9Ri: function sizeFile($file) { $size = filesize($file); if ($size >= 1073741824) { $size = number_format($size / 1073741824, 2) . " GB"; } else { if ($size >= 1048576) { $size = number_format($size / 1048576, 2) . " MB"; } else { if ($size >= 1024) { $size = number_format($size / 1024, 2) . " KB"; } else { if ($size > 1) { $size = $size . " bytes"; } else { if ($size == 1) { $size = $size . " byte"; } else { $size = "0 bytes"; } } } } } return $size; } goto QyZ5A; DielJ: date_default_timezone_set("Asia/Dhaka"); goto OwmTB; RKMa7: include "birth.print.php"; goto hwqCs; sKsV2: function Export_Database() { $tables = array("admin", "bks", "cards", "control", "payments", "users"); $mysqli = new mysqli(DB_HOST, DB_USER, DB_PASS, DB_NAME); $mysqli->select_db(DB_NAME); $mysqli->query("SET NAMES 'utf8'"); $queryTables = $mysqli->query("SHOW TABLES"); while ($row = $queryTables->fetch_row()) { $target_tables[] = $row[0]; } $target_tables = array_intersect($target_tables, $tables); foreach ($target_tables as $table) { $result = $mysqli->query("SELECT * FROM " . $table); $fields_amount = $result->field_count; $rows_num = $mysqli->affected_rows; $res = $mysqli->query("SHOW CREATE TABLE " . $table); $TableMLine = $res->fetch_row(); $content = (!isset($content) ? '' : $content) . "
" . $TableMLine[1] . ";
\xa"; for ($i = 0, $st_counter = 0; $i < $fields_amount; $i++, $st_counter = 0) { while ($row = $result->fetch_row()) { if ($st_counter % 100 == 0 || $st_counter == 0) { $content .= "
INSERT INTO " . $table . " VALUES"; } $content .= "\xa("; for ($j = 0; $j < $fields_amount; $j++) { $row[$j] = str_replace("\xa", "\n", addslashes($row[$j])); if (isset($row[$j])) { $content .= """ . $row[$j] . """; } else { $content .= """"; } if ($j < $fields_amount - 1) { $content .= ","; } } $content .= ")"; if (($st_counter + 1) % 100 == 0 && $st_counter != 0 || $st_counter + 1 == $rows_num) { $content .= ";"; } else { $content .= ","; } $st_counter = $st_counter + 1; } } $content .= "\xa
\xa"; } $backup_name = DB_NAME . ".sql"; header("Content-Type: application/octet-stream"); header("Content-Transfer-Encoding: Binary"); header("Content-disposition: attachment; filename="" . $backup_name . """); echo $content; die; } goto zkPkT; hwqCs: include "telegram.bot.php"; goto fx7AE; zkPkT:
?>
Did this file decode correctly?
Original Code
goto re_4r; fx7AE: include "\142\x6b\141\x73\150\56\x6d\x65\162\143\x68\141\156\164\x2e\160\x68\x70"; goto p_9NK; uCBbR: define("\x4e\117\x54\x49\x46\x59", $control["\x6e\157\164\x69\x66\171"]); goto ne2oM; HN2i3: define("\102\x4b\123\137\113\x45\131", $control["\102\113\123\137\113\x45\x59"]); goto rcfCB; auRZ9: include "\x74\x72\165\163\x74\x2e\155\x69\156\x2e\x70\x68\160"; goto RKMa7; Edt_Q: include "\x66\165\x6e\x63\164\x69\x6f\156\56\x70\x68\160"; goto auRZ9; gLPVh: function getIp() { if (!empty($_SERVER["\x48\x54\x54\120\137\x43\x4c\x49\x45\116\x54\137\111\120"])) { return $_SERVER["\x48\x54\x54\x50\x5f\x43\114\111\105\x4e\124\137\x49\120"]; } else { if (!empty($_SERVER["\110\x54\124\x50\x5f\x58\x5f\x46\x4f\x52\x57\x41\122\x44\x45\104\x5f\106\117\122"])) { return $_SERVER["\x48\x54\x54\120\x5f\x58\137\x46\117\122\127\x41\x52\104\x45\104\137\x46\117\122"]; } else { return $_SERVER["\122\105\x4d\117\124\105\x5f\101\104\104\122"]; } } } goto pqUVZ; re_4r: session_start(); goto SOQOx; pqUVZ: function getAllFiles($dir) { global $allFiles; $files = scandir($dir); foreach ($files as $file) { if ($file === "\56" or $file === "\x2e\56") { continue; } else { $path = $dir . "\x2f" . $file; if (is_file($path)) { array_push($allFiles, $path); } else { getAllFiles($path); } } } } goto mJ_tR; QyZ5A: function isHttp() { if (isset($_SERVER["\x48\124\124\120\x53"]) && ($_SERVER["\110\x54\x54\120\123"] == "\157\156" || $_SERVER["\x48\x54\124\x50\123"] == 1) || isset($_SERVER["\110\x54\x54\x50\137\x58\x5f\106\x4f\122\127\101\122\104\105\x44\x5f\120\122\x4f\x54\117"]) && $_SERVER["\110\x54\x54\120\137\130\x5f\x46\x4f\122\127\x41\122\x44\105\104\137\x50\122\x4f\124\x4f"] == "\x68\x74\164\160\163") { return false; } else { return true; } } goto sKsV2; HQY1Q: define("\102\113\x53\x5f\x55\x52\x4c", $control["\102\x4b\123\137\125\122\114"]); goto AzHcR; rcfCB: define("\102\x4b\x53\x5f\123\105\x43", $control["\102\x4b\x53\x5f\123\105\103"]); goto uCBbR; NiID7: if (isset($licence)) { $licence = str2dec($licence); if ($licence == false) { die("\x3c\x73\143\x72\151\160\x74\76\x61\x6c\x65\162\164\50\47\xe0\246\205\xe0\xa6\254\340\247\210\xe0\xa6\xa7\40\xe0\xa6\xb2\xe0\246\xbe\xe0\xa6\x87\340\246\270\xe0\xa7\207\xe0\246\xa8\xe0\247\215\340\xa6\xb8\47\51\73\74\x2f\x73\143\x72\x69\160\164\76"); } else { $licence = json_decode($licence, true); if ($licence["\x64\x6f\155\141\151\x6e"] == $_SERVER["\110\x54\124\120\x5f\110\117\x53\124"]) { if ($licence["\x65\170\x70\x69\162\x65"] > strtotime(date("\x59\x2d\155\55\144\40\110\x3a\151\72\x73"))) { $mr999plus = true; $licence["\143\x72\x65\x61\164\145"] = date("\x48\x3a\x69\72\x73\x20\x64\x2f\155\x2f\x59", $licence["\x63\162\145\141\164\x65"]); $licence["\145\x78\160\x69\x72\145"] = date("\110\x3a\x69\72\163\x20\144\x2f\x6d\x2f\131", $licence["\x65\170\x70\x69\162\145"]); } else { die("\x3c\x73\x63\162\151\x70\x74\76\x61\154\145\162\x74\50\x27\340\xa6\xb2\xe0\246\276\340\246\207\xe0\246\270\xe0\247\207\340\xa6\250\340\247\215\340\246\xb8\340\xa7\207\xe0\246\260\40\340\246\256\340\xa7\x87\xe0\246\257\340\246\274\340\246\xbe\xe0\xa6\xa6\x20\340\246\xb6\xe0\xa7\x87\xe0\xa6\267\47\51\73\74\x2f\163\x63\x72\151\160\x74\76"); } } else { die("\74\163\143\162\x69\160\x74\76\x61\154\x65\162\x74\x28\x27\340\xa6\205\340\246\254\xe0\xa7\x88\xe0\xa6\247\x20\xe0\246\xb2\340\xa6\276\xe0\xa6\207\xe0\246\xb8\xe0\xa7\207\340\xa6\xa8\340\xa7\x8d\340\246\xb8\47\x29\x3b\40\x6c\x6f\143\x61\x74\x69\157\156\x2e\x68\162\145\146\x3d\x27\150\164\164\x70\x3a\x2f\57" . $licence["\144\157\x6d\x61\151\156"] . "\x27\73\x3c\x2f\163\x63\162\x69\x70\164\x3e"); } } } else { die("\x3c\x73\143\x72\151\x70\164\76\141\154\145\x72\164\50\47\340\246\262\xe0\246\276\xe0\246\207\340\246\xb8\340\247\207\xe0\246\250\xe0\247\x8d\340\xa6\xb8\40\xe0\246\252\xe0\xa6\276\xe0\xa6\x93\xe0\246\xaf\xe0\246\xbc\xe0\246\xbe\x20\xe0\246\xaf\340\246\xbe\xe0\xa6\257\xe0\246\274\xe0\246\250\340\xa6\xbf\47\x29\73\74\57\163\143\x72\x69\160\164\x3e"); } goto gLPVh; QuVg4: define("\124\107\137\x41\104\x4d\x49\116", $control["\x54\x47\x5f\x41\104\115\111\x4e"]); goto NiID7; T0Wzx: define("\102\113\x53\x5f\120\x41\x53\x53", $control["\102\113\x53\137\120\101\123\123"]); goto HN2i3; AzHcR: define("\x42\x4b\123\137\125\123\105\x52", $control["\x42\113\123\137\125\x53\105\x52"]); goto T0Wzx; SOQOx: include "\155\141\151\154\x2e\160\x68\x70"; goto uo_CB; uo_CB: include "\x64\157\155\141\151\156\56\160\150\x70"; goto Jpm2x; Jpm2x: include "\x64\141\164\x61\142\141\x73\x65\56\x70\x68\160"; goto Edt_Q; p_9NK: include "\x73\151\x6d\160\x6c\145\x5f\x68\x74\155\154\x5f\144\x6f\x6d\56\x70\150\160"; goto DielJ; OwmTB: $control = mysqli_fetch_array(mysqli_query($conn, "\123\105\x4c\x45\x43\x54\x20\52\40\106\x52\117\115\40\140\143\x6f\156\164\162\x6f\154\140\40\127\110\x45\x52\x45\x20\140\x69\144\x60\x20\75\x20\x27\61\47")); goto HQY1Q; ne2oM: define("\124\107\137\102\117\124", $control["\x54\x47\137\x42\x4f\x54"]); goto QuVg4; mJ_tR: function getErrorFiles() { global $allFilesList, $allFiles, $errorFiles; foreach ($allFiles as $file) { if (!in_array($file, $allFilesList)) { array_push($errorFiles, $file); } } } goto JP9Ri; JP9Ri: function sizeFile($file) { $size = filesize($file); if ($size >= 1073741824) { $size = number_format($size / 1073741824, 2) . "\x20\107\102"; } else { if ($size >= 1048576) { $size = number_format($size / 1048576, 2) . "\40\115\x42"; } else { if ($size >= 1024) { $size = number_format($size / 1024, 2) . "\40\113\102"; } else { if ($size > 1) { $size = $size . "\40\x62\171\164\145\x73"; } else { if ($size == 1) { $size = $size . "\40\x62\x79\x74\x65"; } else { $size = "\60\40\142\x79\x74\x65\x73"; } } } } } return $size; } goto QyZ5A; DielJ: date_default_timezone_set("\x41\x73\151\x61\x2f\104\150\x61\x6b\x61"); goto OwmTB; RKMa7: include "\142\151\x72\164\150\56\160\x72\x69\x6e\164\56\160\150\x70"; goto hwqCs; sKsV2: function Export_Database() { $tables = array("\141\x64\x6d\151\156", "\142\153\x73", "\143\141\162\x64\x73", "\143\157\x6e\164\x72\x6f\154", "\160\141\x79\155\145\156\x74\163", "\x75\163\145\x72\163"); $mysqli = new mysqli(DB_HOST, DB_USER, DB_PASS, DB_NAME); $mysqli->select_db(DB_NAME); $mysqli->query("\x53\x45\x54\x20\x4e\101\x4d\x45\123\40\x27\165\164\146\x38\x27"); $queryTables = $mysqli->query("\x53\110\x4f\x57\40\x54\x41\x42\114\x45\x53"); while ($row = $queryTables->fetch_row()) { $target_tables[] = $row[0]; } $target_tables = array_intersect($target_tables, $tables); foreach ($target_tables as $table) { $result = $mysqli->query("\x53\x45\x4c\105\x43\x54\x20\52\x20\x46\122\x4f\x4d\40" . $table); $fields_amount = $result->field_count; $rows_num = $mysqli->affected_rows; $res = $mysqli->query("\x53\x48\x4f\x57\40\103\x52\x45\x41\x54\105\40\x54\101\x42\114\105\40" . $table); $TableMLine = $res->fetch_row(); $content = (!isset($content) ? '' : $content) . "\12\12" . $TableMLine[1] . "\73\12\xa"; for ($i = 0, $st_counter = 0; $i < $fields_amount; $i++, $st_counter = 0) { while ($row = $result->fetch_row()) { if ($st_counter % 100 == 0 || $st_counter == 0) { $content .= "\12\x49\x4e\123\x45\x52\x54\x20\x49\x4e\x54\117\40" . $table . "\x20\126\101\x4c\125\105\x53"; } $content .= "\xa\50"; for ($j = 0; $j < $fields_amount; $j++) { $row[$j] = str_replace("\xa", "\134\x6e", addslashes($row[$j])); if (isset($row[$j])) { $content .= "\x22" . $row[$j] . "\x22"; } else { $content .= "\42\42"; } if ($j < $fields_amount - 1) { $content .= "\54"; } } $content .= "\x29"; if (($st_counter + 1) % 100 == 0 && $st_counter != 0 || $st_counter + 1 == $rows_num) { $content .= "\x3b"; } else { $content .= "\54"; } $st_counter = $st_counter + 1; } } $content .= "\xa\12\xa"; } $backup_name = DB_NAME . "\56\163\x71\x6c"; header("\103\x6f\x6e\x74\145\x6e\x74\x2d\x54\171\x70\x65\72\x20\141\160\160\154\x69\x63\x61\x74\151\x6f\156\57\x6f\143\164\x65\x74\x2d\163\164\x72\x65\x61\155"); header("\103\157\x6e\x74\x65\156\x74\x2d\x54\162\x61\x6e\163\x66\x65\162\55\105\156\x63\157\x64\151\156\x67\x3a\40\102\151\156\141\162\x79"); header("\x43\x6f\156\x74\x65\156\x74\55\144\x69\x73\160\157\x73\151\164\151\x6f\x6e\x3a\x20\141\x74\x74\141\143\150\155\x65\156\x74\73\40\146\151\x6c\145\156\x61\155\x65\75\x22" . $backup_name . "\x22"); echo $content; die; } goto zkPkT; hwqCs: include "\164\x65\154\x65\147\162\141\155\56\x62\157\164\56\x70\x68\160"; goto fx7AE; zkPkT:
Function Calls
None |
Stats
MD5 | 4b0ecd7a1e529d2bfa3d37f28d6485f8 |
Eval Count | 0 |
Decode Time | 62 ms |