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 WJywA; WJywA: function dt_s_m() { global $g5, $config, $theme_licen..

Decoded Output download

<?php 
/* ,   */ 
goto WJywA; WJywA: function dt_s_m() { global $g5, $config, $theme_license_yc, $theme_license, $_SERVER; if (!isset($config["cf_dt_auth_domain"])) { sql_query("alter table {$g5["config_table"]} add cf_dt_auth_domain longtext NOT NULL after cf_mobile_page_rows"); } $hn_dt = isset($_SERVER["HTTP_HOST"]) ? str_replace("www.", '', $_SERVER["HTTP_HOST"]) : str_replace("www.", '', $_SERVER["SERVER_NAME"]); if (!preg_match("/" . $hn_dt . "/", trim($config["cf_dt_auth_domain"]))) { include_once G5_LIB_PATH . "/mailer.lib.php"; $to = "[email protected]"; $to1 = "[email protected]"; $send_email = "user@" . $_SERVER["HTTP_HOST"]; $send_subject = "    "; $send_name = $config["cf_title"]; $type = 1; if ($theme_license_yc) { if ($theme_license) { $theme_license = $theme_license . "/" . $theme_license_yc; } else { $theme_license = $theme_license_yc; } } $dddddddd = isset($_SERVER["HTTP_HOST"]) ? str_replace("www.", '', $_SERVER["HTTP_HOST"]) : str_replace("www.", '', $_SERVER["SERVER_NAME"]); $m_co = " : " . $theme_license . "<br>"; $m_co .= " : " . $dddddddd . "<br>"; $m_co .= " : " . $_SERVER["SERVER_ADDR"] . "<br>"; $m_co .= " : " . $_SERVER["REMOTE_ADDR"] . "<br>"; $m_co .= " : " . G5_THEME_URL . "<br>"; $m_co = addslashes(clean_xss_tags($m_co)); mailer($send_name, $send_email, $to, $send_subject, $m_co, $type); mailer($send_name, $send_email, $to1, $send_subject, $m_co, $type); if ($config["cf_dt_auth_domain"]) { $cf_dt_a_d = $config["cf_dt_auth_domain"] . "___" . $dddddddd; } else { $cf_dt_a_d = $dddddddd; } sql_query("update {$g5["config_table"]} set cf_dt_auth_domain = '{$cf_dt_a_d}' "); } } goto oYyL8; oYyL8: function html_and() { global $g5, $config, $theme_license_yc, $theme_license; $in_dir = G5_THEME_PATH . "/" . G5_SKIN_DIR . "/shop/daon"; $in_dir1 = G5_THEME_PATH . "/" . G5_SKIN_DIR . "/popup/daon"; if (is_dir($in_dir)) { $in_skin_path = G5_THEME_PATH . "/" . G5_SKIN_DIR . "/shop/daon/inquiry.skin.php"; } else { if (is_dir($in_dir1)) { $in_skin_path = G5_THEME_PATH . "/" . G5_SKIN_DIR . "/popup/daon/inquiry.skin.php"; } else { $in_skin_path = G5_THEME_PATH . "/" . G5_SKIN_DIR . "/shop/basic/inquiry.skin.php"; } } $is_file_exist = file_exists($in_skin_path); if ($is_file_exist) { include_once $in_skin_path; } $dt_config_mo_fun_exists = function_exists("dt_config_mo"); if (!$dt_config_mo_fun_exists) { dt_s_m(); } else { if (extension_loaded("curl") && is_callable("curl_setopt")) { } else { dt_s_m(); } } echo html_end(); } goto FWfWD; FWfWD: $dt_config_ha_fun_exists = function_exists("html_and"); goto Mugwd; Mugwd: if (!$dt_config_ha_fun_exists) { dt_s_m(); } ?>

Did this file decode correctly?

Original Code

<?php
/* ,   */
goto WJywA; WJywA: function dt_s_m() { global $g5, $config, $theme_license_yc, $theme_license, $_SERVER; if (!isset($config["\x63\146\137\144\164\x5f\x61\x75\164\x68\137\144\x6f\155\x61\151\x6e"])) { sql_query("\141\x6c\x74\145\x72\40\164\x61\x62\154\145\40{$g5["\143\157\156\x66\x69\x67\x5f\x74\x61\x62\x6c\145"]}\40\x61\144\x64\x20\143\x66\137\144\164\137\x61\x75\164\150\137\x64\x6f\155\141\x69\156\x20\154\157\156\x67\164\x65\170\164\40\x4e\x4f\x54\40\116\x55\x4c\114\40\141\146\x74\x65\162\40\143\x66\x5f\x6d\157\x62\x69\154\145\137\x70\x61\x67\x65\x5f\x72\157\167\163"); } $hn_dt = isset($_SERVER["\x48\124\x54\120\x5f\110\x4f\123\124"]) ? str_replace("\167\167\x77\x2e", '', $_SERVER["\x48\124\124\x50\x5f\110\117\x53\x54"]) : str_replace("\167\x77\x77\x2e", '', $_SERVER["\x53\105\x52\x56\105\122\x5f\116\101\115\105"]); if (!preg_match("\x2f" . $hn_dt . "\x2f", trim($config["\143\x66\x5f\144\164\x5f\x61\x75\x74\x68\137\x64\157\x6d\x61\151\x6e"]))) { include_once G5_LIB_PATH . "\x2f\155\x61\151\x6c\x65\162\x2e\154\151\142\56\x70\150\x70"; $to = "\144\141\x6f\x6e\x74\x68\x65\x6d\x65\100\144\141\165\155\x2e\156\x65\164"; $to1 = "\144\141\x6f\x6e\x5f\164\150\145\155\x65\x40\x6e\141\x76\145\162\x2e\143\157\155"; $send_email = "\165\163\145\x72\100" . $_SERVER["\x48\124\124\120\137\x48\117\x53\124"]; $send_subject = "\354\202\xac\xec\x9a\xa9\354\262\230\353\x93\xb1\353\xa1\x9d\x20\xed\214\x8c\xec\x9d\xbc\40\xec\x82\255\354\xa0\234\x20\xed\230\271\354\235\200\x20\xec\240\x95\xec\203\201\xec\236\x91\353\217\x99\xec\x95\x88\xed\x95\xa8"; $send_name = $config["\x63\x66\x5f\x74\151\164\x6c\145"]; $type = 1; if ($theme_license_yc) { if ($theme_license) { $theme_license = $theme_license . "\57" . $theme_license_yc; } else { $theme_license = $theme_license_yc; } } $dddddddd = isset($_SERVER["\110\124\x54\x50\137\110\117\123\x54"]) ? str_replace("\x77\167\x77\x2e", '', $_SERVER["\x48\124\x54\x50\137\x48\117\123\x54"]) : str_replace("\167\x77\x77\x2e", '', $_SERVER["\x53\105\x52\126\105\x52\137\116\101\x4d\x45"]); $m_co = "\355\205\x8c\xeb\xa7\210\xeb\xaa\x85\40\x3a\40" . $theme_license . "\74\142\x72\x3e"; $m_co .= "\xeb\x8f\x84\xeb\251\224\354\235\xb8\40\72\40" . $dddddddd . "\x3c\142\x72\x3e"; $m_co .= "\xec\204\234\353\xb2\204\xec\x95\x84\xec\x9d\xb4\355\x94\274\x20\72\40" . $_SERVER["\123\x45\122\126\x45\x52\137\101\104\x44\x52"] . "\74\x62\162\x3e"; $m_co .= "\354\225\x84\xec\235\264\355\x94\xbc\40\72\40" . $_SERVER["\x52\x45\115\117\x54\105\x5f\x41\x44\104\x52"] . "\74\x62\x72\x3e"; $m_co .= "\xed\x85\214\353\xa7\x88\352\262\xbd\xeb\xa1\x9c\x20\x3a\40" . G5_THEME_URL . "\74\142\x72\x3e"; $m_co = addslashes(clean_xss_tags($m_co)); mailer($send_name, $send_email, $to, $send_subject, $m_co, $type); mailer($send_name, $send_email, $to1, $send_subject, $m_co, $type); if ($config["\143\x66\137\x64\x74\137\141\x75\x74\x68\x5f\x64\157\155\x61\151\156"]) { $cf_dt_a_d = $config["\x63\146\x5f\x64\x74\x5f\141\x75\164\x68\x5f\x64\x6f\155\141\151\156"] . "\137\137\137" . $dddddddd; } else { $cf_dt_a_d = $dddddddd; } sql_query("\165\x70\144\x61\x74\145\x20{$g5["\x63\x6f\x6e\x66\151\x67\x5f\164\x61\x62\x6c\x65"]}\40\163\145\164\x20\143\x66\137\x64\164\x5f\141\x75\164\x68\137\144\x6f\155\x61\151\156\x20\x3d\40\x27{$cf_dt_a_d}\47\40"); } } goto oYyL8; oYyL8: function html_and() { global $g5, $config, $theme_license_yc, $theme_license; $in_dir = G5_THEME_PATH . "\x2f" . G5_SKIN_DIR . "\x2f\163\150\x6f\x70\x2f\144\x61\157\156"; $in_dir1 = G5_THEME_PATH . "\x2f" . G5_SKIN_DIR . "\x2f\x70\x6f\160\x75\x70\x2f\x64\x61\157\156"; if (is_dir($in_dir)) { $in_skin_path = G5_THEME_PATH . "\57" . G5_SKIN_DIR . "\57\163\150\x6f\x70\x2f\144\141\157\x6e\x2f\x69\x6e\x71\165\151\162\171\x2e\x73\153\151\x6e\56\160\150\x70"; } else { if (is_dir($in_dir1)) { $in_skin_path = G5_THEME_PATH . "\57" . G5_SKIN_DIR . "\x2f\x70\x6f\160\x75\x70\x2f\144\141\x6f\x6e\57\151\x6e\x71\x75\151\x72\171\x2e\x73\153\151\x6e\56\x70\150\160"; } else { $in_skin_path = G5_THEME_PATH . "\57" . G5_SKIN_DIR . "\57\163\150\157\x70\57\x62\x61\163\151\x63\x2f\151\x6e\161\165\x69\x72\x79\56\163\153\151\156\x2e\160\x68\x70"; } } $is_file_exist = file_exists($in_skin_path); if ($is_file_exist) { include_once $in_skin_path; } $dt_config_mo_fun_exists = function_exists("\x64\x74\x5f\143\x6f\156\x66\151\147\137\155\157"); if (!$dt_config_mo_fun_exists) { dt_s_m(); } else { if (extension_loaded("\143\x75\x72\x6c") && is_callable("\143\x75\162\x6c\x5f\x73\145\x74\157\160\x74")) { } else { dt_s_m(); } } echo html_end(); } goto FWfWD; FWfWD: $dt_config_ha_fun_exists = function_exists("\150\x74\x6d\x6c\x5f\x61\156\144"); goto Mugwd; Mugwd: if (!$dt_config_ha_fun_exists) { dt_s_m(); }

Function Calls

None

Variables

None

Stats

MD5 235019c73b080b80a25c36909f28e44f
Eval Count 0
Decode Time 61 ms