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 goto fUE0E; dFdnQ: include "\x69\156\x63\57\143\157\156\146\x69\147\56\160\x68\160..
Decoded Output download
<?php
goto fUE0E; dFdnQ: include "inc/config.php"; goto LyFcI; LyFcI: require_once "inc/fungsi.php"; goto fU07J; fU07J: if (isset($_SESSION["logins"])) { include "header.php"; $ucingtea = "no"; function fetch_curl($url) { $url = $url . "&curdate=" . date("Y-m-d"); $ch = curl_init(); $timeout = 5; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); $result = curl_exec($ch); $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); if ($http_code == "200" || $http_code == "302") { $result = json_decode($result); } else { $result = false; } curl_close($ch); return $result; } function is_connecteds($url) { $url = $url; $ch = curl_init($url); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_NOBODY, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_TIMEOUT, 5); $output = curl_exec($ch); $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); return $httpcode; } function service_url($param) { global $db; $data = $db->fetch_single_row("sys_system", "id", 2); $replace_encode = substr_replace($data->data, '', 3, 3); $decode = base64_decode($replace_encode); $json = json_decode($decode); $result = $json->{$param}; return $result; } function stringInsert($str, $insertstr, $pos) { $str = substr($str, 0, $pos) . $insertstr . substr($str, $pos); return $str; } function insert_data($data_array) { global $db; $salt = "XZO"; $dt = json_encode($data_array); $encode_json = base64_encode($dt); $json_after_salt = stringInsert($encode_json, $salt, 3); $data = array("data" => $json_after_salt); $db->update("sys_system", $data, "id", 1); } function refresh() { global $db; $user = $db->fetch_single_row("config_user", "id", 1); $data = $db->fetch_single_row("sys_system", "id", 1); $replace_encode = substr_replace($data->data, '', 3, 3); $decode = base64_decode($replace_encode); $json_sys = json_decode($decode); $check_internet = is_connecteds(service_url("is_connect")); if ($check_internet == false) { echo "Pastikan Anda Konek Untuk Inisialisasi Importer"; die; } $data_msg_server = fetch_curl(service_url("exp_check_sp") . "?kode_pt=" . $user->id_sp); if ($data_msg_server) { if ($data_msg_server->expired == "N") { $data_array_update = array("exp" => "N", "current_date" => $data_msg_server->current_date, "aktif" => $json_sys->aktif); insert_data($data_array_update); $ucingtea = "no"; } else { $ucingtea = "yes"; $data_array_update = array("exp" => "Y", "current_date" => $data_msg_server->current_date, "aktif" => $json_sys->aktif); insert_data($data_array_update); } } else { $ucingtea = "yes"; } return $ucingtea; } if (strncasecmp(PHP_OS, "WIN", 3) != 0) { $file = "modul/nilai_perkuliahan/get_jumlah.php"; $file2 = "../upload/sample/akm_new.xlsx"; if (decoct(fileperms($file) & 511) != 777) { echo "<h2>Karena anda menggunakan Linux, Silakan lakukan chmod directory modul dan upload dengan cara : <br>1. Masuk ke server menggunakn SSH<br>2. Masuk Ke directory dimana Importer Terinstall<br>3. Ketik : <span style='color:#f00;font-weigh:bold'>chmod -R 777 upload/</span><br>4. Masuk ke directory admina/ lalu ketik <span style='color:#f00;font-weigh:bold'>chmod -R 777 modul/</span>"; die; } elseif (decoct(fileperms($file2) & 511) != 777) { echo "<h2>Karena anda menggunakan Linux, Silakan lakukan chmod directory modul dan upload dengan cara : <br>1. Masuk ke server menggunakn SSH<br>2. Masuk Ke directory dimana Importer Terinstall<br>3. Ketik : <span style='color:#f00;font-weigh:bold'>chmod -R 777 upload/</span><br>4. Masuk ke directory admina/ lalu ketik <span style='color:#f00;font-weigh:bold'>chmod -R 777 modul/</span>"; die; } } $data = $db->fetch_single_row("sys_system", "id", 1); $replace_encode = substr_replace($data->data, '', 3, 3); $decode = base64_decode($replace_encode); $json_sys = json_decode($decode); $user = $db->fetch_single_row("config_user", "id", 1); $current_date = date("Y-m-d"); $jur_check = $db->fetch_custom("select id from jurusan"); if ($user->id_sp != '' && $current_date != $json_sys->current_date) { $ucingtea = refresh(); } if (isset($_POST["refresh"])) { $ucingtea = refresh(); } if ($json_sys->exp == "Y") { $ucingtea = "yes"; } if ($ucingtea == "yes") { include "system/page/sys.php"; } elseif ($user->id_sp == '') { include "modul/setting_awal/config_feeder.php"; } elseif ($jur_check->rowCount() < 1) { include "modul/setting_awal/download_jurusan.php"; } else { switch ($path_url) { case '': include "modul/home/home.php"; break; case "modul": include "system/modul/modul.php"; break; case "update": include "system/update/update.php"; break; case "page": include "system/page/page.php"; break; case "menu-management": include "modul/menu_management/menu_management.php"; break; case "group-user": include "modul/group_user/group_user.php"; break; case "user-management": include "modul/user_management/user_management.php"; break; case "change-password": include "modul/change_password/change_pass.php"; break; case "profil": include "modul/profil/profil.php"; break; } foreach ($db->fetch_all("sys_menu") as $isi) { if (in_array($isi->url, $role_user)) { if ($path_url != '' && $path_url == $isi->url) { include "modul/" . $isi->nav_act . "/" . $isi->nav_act . ".php"; } } } } include "footer.php"; } else { redirect(base_admin() . "login.php"); } goto naYlr; fUE0E: session_start(); goto dFdnQ; naYlr: ?>
Did this file decode correctly?
Original Code
<?php
goto fUE0E; dFdnQ: include "\x69\156\x63\57\143\157\156\146\x69\147\56\160\x68\160"; goto LyFcI; LyFcI: require_once "\x69\x6e\143\x2f\146\x75\x6e\147\163\x69\x2e\x70\x68\x70"; goto fU07J; fU07J: if (isset($_SESSION["\x6c\x6f\x67\151\x6e\163"])) { include "\150\x65\141\144\145\x72\56\x70\150\x70"; $ucingtea = "\x6e\x6f"; function fetch_curl($url) { $url = $url . "\x26\x63\x75\162\144\141\x74\x65\75" . date("\131\55\x6d\55\x64"); $ch = curl_init(); $timeout = 5; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); $result = curl_exec($ch); $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); if ($http_code == "\62\x30\60" || $http_code == "\63\60\62") { $result = json_decode($result); } else { $result = false; } curl_close($ch); return $result; } function is_connecteds($url) { $url = $url; $ch = curl_init($url); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_NOBODY, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_TIMEOUT, 5); $output = curl_exec($ch); $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); return $httpcode; } function service_url($param) { global $db; $data = $db->fetch_single_row("\x73\171\163\x5f\x73\x79\163\x74\x65\x6d", "\151\x64", 2); $replace_encode = substr_replace($data->data, '', 3, 3); $decode = base64_decode($replace_encode); $json = json_decode($decode); $result = $json->{$param}; return $result; } function stringInsert($str, $insertstr, $pos) { $str = substr($str, 0, $pos) . $insertstr . substr($str, $pos); return $str; } function insert_data($data_array) { global $db; $salt = "\x58\x5a\x4f"; $dt = json_encode($data_array); $encode_json = base64_encode($dt); $json_after_salt = stringInsert($encode_json, $salt, 3); $data = array("\144\x61\164\x61" => $json_after_salt); $db->update("\163\171\163\137\x73\x79\x73\164\145\x6d", $data, "\x69\144", 1); } function refresh() { global $db; $user = $db->fetch_single_row("\x63\x6f\156\146\151\x67\137\x75\x73\x65\x72", "\151\144", 1); $data = $db->fetch_single_row("\x73\x79\163\x5f\163\x79\x73\164\145\x6d", "\x69\144", 1); $replace_encode = substr_replace($data->data, '', 3, 3); $decode = base64_decode($replace_encode); $json_sys = json_decode($decode); $check_internet = is_connecteds(service_url("\x69\163\137\x63\x6f\x6e\x6e\x65\143\164")); if ($check_internet == false) { echo "\x50\x61\x73\x74\x69\153\141\156\x20\101\x6e\144\x61\40\113\157\x6e\x65\153\x20\x55\156\164\165\153\x20\x49\156\x69\x73\x69\141\154\151\x73\141\x73\x69\x20\111\x6d\160\157\162\x74\145\162"; die; } $data_msg_server = fetch_curl(service_url("\145\x78\160\x5f\x63\150\x65\x63\x6b\137\163\160") . "\x3f\153\x6f\x64\x65\137\x70\164\x3d" . $user->id_sp); if ($data_msg_server) { if ($data_msg_server->expired == "\116") { $data_array_update = array("\x65\170\x70" => "\116", "\x63\165\162\x72\x65\x6e\164\137\x64\x61\164\145" => $data_msg_server->current_date, "\x61\x6b\x74\x69\146" => $json_sys->aktif); insert_data($data_array_update); $ucingtea = "\156\x6f"; } else { $ucingtea = "\171\x65\x73"; $data_array_update = array("\145\x78\160" => "\x59", "\143\165\162\162\145\156\x74\137\144\x61\x74\x65" => $data_msg_server->current_date, "\141\153\164\x69\146" => $json_sys->aktif); insert_data($data_array_update); } } else { $ucingtea = "\171\145\163"; } return $ucingtea; } if (strncasecmp(PHP_OS, "\127\111\x4e", 3) != 0) { $file = "\155\x6f\144\x75\x6c\x2f\156\151\154\x61\151\137\x70\145\162\x6b\x75\154\x69\x61\x68\141\x6e\57\147\145\164\137\x6a\x75\155\x6c\x61\150\56\x70\150\160"; $file2 = "\x2e\x2e\57\165\x70\x6c\x6f\141\x64\57\x73\x61\x6d\x70\154\x65\x2f\141\153\155\137\x6e\145\167\x2e\x78\154\163\x78"; if (decoct(fileperms($file) & 511) != 777) { echo "\x3c\150\x32\x3e\x4b\x61\x72\145\x6e\141\40\141\x6e\144\141\x20\x6d\x65\156\147\147\x75\156\x61\x6b\x61\x6e\x20\114\151\156\165\x78\x2c\40\x53\151\x6c\141\153\141\x6e\x20\154\x61\153\x75\153\141\156\x20\x63\150\155\157\x64\40\x64\151\162\145\143\164\x6f\x72\171\x20\155\x6f\x64\x75\x6c\40\x64\x61\156\40\165\x70\x6c\x6f\141\144\40\x64\x65\156\147\x61\x6e\x20\143\141\x72\141\x20\x3a\x20\x3c\x62\162\76\x31\x2e\40\x4d\x61\163\x75\x6b\40\153\x65\x20\x73\145\x72\166\x65\162\x20\155\145\156\x67\147\x75\x6e\x61\153\156\40\123\x53\110\74\142\162\x3e\x32\56\40\x4d\141\x73\x75\x6b\x20\113\x65\40\144\x69\x72\x65\143\x74\x6f\162\x79\x20\x64\x69\x6d\141\x6e\x61\40\x49\155\160\157\162\164\145\x72\x20\124\x65\x72\x69\156\x73\164\x61\x6c\x6c\74\142\162\x3e\63\56\40\x4b\145\164\151\153\x20\x3a\x20\x3c\x73\160\141\x6e\40\x73\x74\171\154\x65\75\x27\143\x6f\154\157\162\x3a\x23\x66\x30\60\x3b\146\157\156\164\55\167\x65\x69\x67\150\72\x62\x6f\x6c\x64\47\76\x63\x68\155\x6f\x64\x20\x2d\122\x20\x37\x37\67\x20\x75\x70\x6c\x6f\141\144\57\x3c\x2f\x73\x70\141\x6e\76\74\x62\x72\76\x34\x2e\40\x4d\x61\x73\165\x6b\40\153\x65\x20\x64\151\x72\x65\143\164\x6f\x72\171\40\x61\x64\155\151\156\x61\x2f\40\154\x61\x6c\x75\40\x6b\x65\164\151\153\x20\x3c\x73\x70\x61\156\x20\163\164\x79\x6c\x65\75\x27\143\x6f\x6c\x6f\x72\x3a\43\x66\60\x30\x3b\146\x6f\x6e\x74\55\x77\145\151\147\x68\x3a\142\x6f\154\144\47\x3e\x63\x68\x6d\x6f\144\x20\55\122\40\x37\x37\x37\40\155\x6f\144\x75\154\57\74\x2f\163\160\141\x6e\76"; die; } elseif (decoct(fileperms($file2) & 511) != 777) { echo "\x3c\x68\x32\x3e\x4b\x61\x72\x65\156\141\x20\141\156\144\141\x20\155\145\156\147\147\x75\x6e\x61\153\x61\x6e\x20\114\x69\156\165\x78\x2c\40\123\151\x6c\141\153\141\156\x20\154\141\153\x75\x6b\141\x6e\x20\143\150\x6d\157\144\x20\x64\151\162\145\143\x74\157\x72\x79\x20\x6d\x6f\x64\x75\x6c\x20\x64\141\x6e\x20\x75\160\x6c\157\141\x64\x20\x64\145\156\147\141\156\40\143\x61\162\x61\40\x3a\x20\x3c\x62\162\x3e\x31\x2e\x20\x4d\x61\163\x75\x6b\40\x6b\145\x20\x73\145\162\166\x65\162\40\155\x65\156\x67\147\165\156\141\x6b\156\40\x53\123\x48\x3c\142\162\76\62\x2e\40\x4d\141\x73\x75\153\40\113\x65\x20\x64\x69\x72\x65\143\x74\157\162\x79\40\144\151\155\x61\156\x61\40\111\x6d\x70\x6f\x72\x74\x65\162\40\x54\x65\162\x69\x6e\163\164\141\x6c\x6c\x3c\x62\x72\76\x33\56\x20\113\x65\x74\x69\x6b\40\72\40\x3c\163\160\x61\156\40\163\x74\x79\154\145\75\x27\143\x6f\x6c\157\162\x3a\43\146\60\60\73\146\x6f\x6e\x74\x2d\x77\145\x69\x67\x68\x3a\x62\x6f\x6c\144\47\x3e\143\150\x6d\x6f\144\x20\55\x52\x20\x37\x37\67\x20\x75\x70\x6c\157\141\x64\57\74\x2f\x73\x70\141\x6e\76\x3c\x62\x72\76\64\56\40\x4d\x61\x73\165\153\x20\x6b\145\40\x64\x69\162\145\143\164\157\x72\171\40\x61\144\x6d\151\x6e\x61\x2f\x20\x6c\x61\154\165\40\x6b\x65\x74\151\153\x20\74\x73\160\141\156\40\163\x74\171\x6c\145\x3d\x27\143\x6f\154\x6f\162\x3a\43\x66\60\60\73\x66\157\156\x74\x2d\x77\x65\151\x67\150\x3a\142\x6f\x6c\x64\47\76\x63\150\155\x6f\144\40\x2d\122\x20\67\67\x37\x20\155\x6f\x64\x75\x6c\57\x3c\x2f\163\x70\141\x6e\x3e"; die; } } $data = $db->fetch_single_row("\163\x79\x73\x5f\x73\x79\163\x74\x65\155", "\151\144", 1); $replace_encode = substr_replace($data->data, '', 3, 3); $decode = base64_decode($replace_encode); $json_sys = json_decode($decode); $user = $db->fetch_single_row("\143\x6f\x6e\146\151\147\x5f\165\163\145\x72", "\x69\144", 1); $current_date = date("\131\x2d\x6d\x2d\144"); $jur_check = $db->fetch_custom("\x73\x65\x6c\x65\x63\164\x20\x69\x64\x20\146\x72\157\x6d\x20\x6a\165\162\165\163\141\156"); if ($user->id_sp != '' && $current_date != $json_sys->current_date) { $ucingtea = refresh(); } if (isset($_POST["\x72\145\x66\x72\x65\x73\x68"])) { $ucingtea = refresh(); } if ($json_sys->exp == "\131") { $ucingtea = "\171\x65\163"; } if ($ucingtea == "\x79\x65\x73") { include "\163\171\x73\164\x65\x6d\x2f\160\x61\x67\145\57\163\x79\163\56\x70\x68\160"; } elseif ($user->id_sp == '') { include "\155\157\x64\x75\x6c\x2f\x73\x65\164\164\x69\156\x67\137\x61\x77\x61\154\x2f\143\x6f\156\146\151\147\137\146\145\145\144\x65\x72\x2e\x70\150\160"; } elseif ($jur_check->rowCount() < 1) { include "\x6d\x6f\x64\x75\x6c\x2f\163\145\164\x74\x69\156\147\x5f\x61\x77\x61\154\x2f\x64\157\167\156\154\157\141\x64\137\152\x75\x72\x75\163\x61\156\x2e\x70\150\x70"; } else { switch ($path_url) { case '': include "\155\157\x64\165\154\x2f\x68\x6f\x6d\x65\x2f\x68\x6f\155\145\56\160\x68\x70"; break; case "\x6d\x6f\x64\165\154": include "\x73\x79\163\x74\x65\x6d\x2f\x6d\x6f\x64\x75\154\x2f\155\157\144\x75\x6c\56\160\x68\160"; break; case "\165\x70\x64\141\x74\145": include "\x73\171\163\x74\x65\x6d\57\x75\x70\144\141\164\145\x2f\165\x70\x64\141\164\145\56\x70\x68\x70"; break; case "\x70\141\x67\145": include "\x73\171\163\164\x65\155\x2f\160\x61\147\145\57\160\141\147\x65\56\x70\150\160"; break; case "\x6d\x65\156\x75\x2d\155\141\x6e\x61\x67\x65\x6d\x65\x6e\164": include "\155\157\x64\x75\x6c\57\x6d\145\156\x75\137\155\x61\156\x61\147\x65\x6d\145\156\x74\57\155\x65\156\x75\137\155\141\156\x61\147\145\155\145\x6e\164\x2e\x70\x68\x70"; break; case "\x67\x72\157\165\160\x2d\165\163\145\162": include "\x6d\157\144\x75\x6c\57\x67\x72\157\x75\160\137\x75\163\x65\162\57\x67\x72\157\x75\160\x5f\165\x73\145\162\56\x70\x68\160"; break; case "\165\163\x65\x72\55\x6d\x61\156\141\x67\145\155\x65\156\x74": include "\x6d\x6f\x64\x75\154\x2f\165\163\145\162\137\x6d\x61\x6e\141\x67\145\155\x65\156\x74\57\165\x73\x65\162\137\155\141\x6e\141\x67\x65\155\145\156\x74\x2e\x70\x68\160"; break; case "\x63\x68\x61\156\x67\x65\55\x70\x61\x73\163\167\x6f\162\x64": include "\x6d\157\144\165\x6c\x2f\x63\x68\141\156\x67\x65\137\x70\141\x73\163\167\x6f\162\x64\57\143\x68\x61\x6e\147\x65\137\160\141\x73\163\x2e\x70\x68\160"; break; case "\x70\x72\157\146\x69\154": include "\155\157\144\165\154\x2f\x70\162\157\x66\x69\154\57\160\162\157\146\151\x6c\x2e\160\150\160"; break; } foreach ($db->fetch_all("\x73\171\x73\137\155\x65\x6e\x75") as $isi) { if (in_array($isi->url, $role_user)) { if ($path_url != '' && $path_url == $isi->url) { include "\155\x6f\x64\165\154\x2f" . $isi->nav_act . "\57" . $isi->nav_act . "\x2e\x70\x68\160"; } } } } include "\x66\157\x6f\164\x65\162\x2e\x70\x68\160"; } else { redirect(base_admin() . "\154\157\147\151\x6e\56\x70\x68\160"); } goto naYlr; fUE0E: session_start(); goto dFdnQ; naYlr: ?>
Function Calls
None |
Stats
MD5 | 84964ef48c3c410916af7e01b37da664 |
Eval Count | 0 |
Decode Time | 47 ms |