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 eval(gzinflate(base64_decode('DZa1ssUIDkQ/Z2fKgeEaayMzMzvZMjOzv35frETd6j6l8kqHf+qvna..
Decoded Output download
$sub_menu = "750200"; include_once('./_common.php'); check_demo(); auth_check($auth[$sub_menu], 'w'); if ($is_admin != 'super') alert(' .'); check_admin_token(); define('PT_LOGO_DIR', G5_DATA_PATH . '/ptlogo'); define('PT_LOGO_URL', G5_DATA_URL . '/ptlogo'); define('PT_FAVI_DIR', G5_DATA_PATH . '/ptfavicon'); define('PT_FAVI_URL', G5_DATA_URL . '/ptfavicon'); if (isset($logo_delete) && $logo_delete) { @unlink(PT_LOGO_DIR . '/' . $logo_delete); $logo_sql = " `pt_logo` = '', "; } $image_regex = "/(\.(gif|jpe?g|png))$/i"; $file_name = ''; $logo_sql = ''; if (isset($_FILES['pt_logo']) && is_uploaded_file($_FILES['pt_logo']['tmp_name'])) { if (!preg_match($image_regex, $_FILES['pt_logo']['name'])) { alert($_FILES['pt_logo']['name'] . '() .'); } if (preg_match($image_regex, $_FILES['pt_logo']['name'])) { $pt_logo_dir = PT_LOGO_DIR; @mkdir($pt_logo_dir, G5_DIR_PERMISSION); @chmod($pt_logo_dir, G5_DIR_PERMISSION); $ext = array_pop(explode('.', $_FILES['pt_logo']['name'])); $file_name = "seo_logo." . $ext; $dest_path = $pt_logo_dir . '/' . $file_name; move_uploaded_file($_FILES['pt_logo']['tmp_name'], $dest_path); chmod($dest_path, G5_FILE_PERMISSION); $logo_sql = " `pt_logo` = '{$file_name}', "; } } if (isset($favi_delete) && $favi_delete) { @unlink(PT_FAVI_DIR . '/' . $favi_delete); $favicon_sql = " `pt_favicon` = '', "; } $favicon_image_regex = "/(\.(gif|jpe?g|png|ico))$/i"; $favicon_file_name = ''; $favicon_logo_sql = ''; if (isset($_FILES['pt_favicon']) && is_uploaded_file($_FILES['pt_favicon']['tmp_name'])) { if (!preg_match($favicon_image_regex, $_FILES['pt_favicon']['name'])) { alert($_FILES['pt_favicon']['name'] . '() .'); } if (preg_match($favicon_image_regex, $_FILES['pt_favicon']['name'])) { $pt_favicon_dir = PT_FAVI_DIR; @mkdir($pt_favicon_dir, G5_DIR_PERMISSION); @chmod($pt_favicon_dir, G5_DIR_PERMISSION); $favicon_ext = array_pop(explode('.', $_FILES['pt_favicon']['name'])); $favicon_file_name = "favicon." . $favicon_ext; $favicon_dest_path = $pt_favicon_dir . '/' . $favicon_file_name; move_uploaded_file($_FILES['pt_favicon']['tmp_name'], $favicon_dest_path); chmod($favicon_dest_path, G5_FILE_PERMISSION); $favicon_logo_sql = " `pt_favicon` = '{$favicon_file_name}', "; } } $sql = " select count(*) as cnt from g5_phantom_seo_setting "; $result = sql_fetch($sql); if($result['cnt'] <= '0'){ $sql1 = " insert into `g5_phantom_seo_setting`
set pt_seo_use = '{$_POST['pt_seo_use']}',
pt_seo_range = '{$_POST['pt_seo_range']}',
{$logo_sql}
{$favicon_logo_sql}
pt_google_verification = '{$_POST['pt_google_verification']}',
pt_naver_verification = '{$_POST['pt_naver_verification']}',
pt_bing_verification = '{$_POST['pt_bing_verification']}',
pt_phone = '{$_POST['pt_phone']}',
pt_main_title = '{$_POST['pt_main_title']}',
pt_main_keyword = '{$_POST['pt_main_keyword']}',
pt_main_description = '{$_POST['pt_main_description']}' "; sql_query($sql1, false); } if($result['cnt'] == '1'){ $sql = " update `g5_phantom_seo_setting`
set pt_seo_use = '{$_POST['pt_seo_use']}',
pt_seo_range = '{$_POST['pt_seo_range']}',
pt_google_verification = '{$_POST['pt_google_verification']}',
pt_naver_verification = '{$_POST['pt_naver_verification']}',
pt_bing_verification = '{$_POST['pt_bing_verification']}',
{$logo_sql}
{$favicon_logo_sql}
pt_phone = '{$_POST['pt_phone']}',
pt_main_title = '{$_POST['pt_main_title']}',
pt_main_keyword = '{$_POST['pt_main_keyword']}',
pt_main_description = '{$_POST['pt_main_description']}' "; sql_query($sql, false); } if( isset($_POST['cf_bbs_rewrite']) ){ g5_delete_all_cache(); } run_event('admin_config_form_update'); update_rewrite_rules(); goto_url('./phantom.seo.php', false);
Did this file decode correctly?
Original Code
<?php eval(gzinflate(base64_decode('DZa1ssUIDkQ/Z2fKgeEaayMzMzvZMjOzv35frETd6j6l8kqHf+qvnaohPcp/snQvcfR/RZnPRfnPf6okhr891vvZtXQQlOukh8ad00llOxIxGJOFAi6k4yxfhM/1rNZLUZsfuG4YssreT60IBdLuaa/Q+Z3Q651+1GEHVv+oqSyAdvEKr3u+As4e/J6QcvqTNuhIJ1+23JVbC7orZbEZrOTRg9NDSiC0we9UD1wJOvWVhvyxQ9aY1dUIWZskpnmgUzbBjPNlPKuHJxgp3AIW6WtCxXJUdnM+Now4yayX1+MonHiEjvMuMwn69RHWcBOjdHNGGLA8j3i2Y4wIJQzvzmnvqiZpd8KBRiiOvvAK2B9sOj3/xdFFsiFmAtD6PJoky6KkfIJboxC+l6pjUH0bhphnB/dUmm5h+Cp9e6uPM+79HAQUO27FA31FA7VuTvYZqfh85XXHTwRouAIIG8Btnpvt9Cqy2yPPTLFHE8Id0uIBA0oAnU3UUxuap5GpiL+EY6I3kyuIp1+oE+/q1zJFkteMa0Kx0f2JRH80S+2/xDWrQjHx2O9nIOcgHZoSspmiHT1+pnty2tcocUz2e1r7M7VmegShapKXyt3Zn7kmWPrBf6PXbqG0bU7fb1zXidHAn5RJK3DkVD7eAbMrA3sSx3rYVoMEib5+28z++nkMJUtH6ZOlERwp3k8qUbV0/Lju+gU7gLdcwO8zEED1r+RHLu36EcHiGo3ZeHyyMjOVYUPae9/qNHnI7cEeGx1H03lx+kpBSVNYJ/DiN2n1A4NvKyM9qoGXZ3/aWu7o/oTRGR8dwZ7G2KldBzw+VFqgqLxPEMIYLPK4OYdxH24ThhbQa4LcWhsCcR2YUI1sfjdjmt7zsD0QehxyI+SZBGA7JnkV/CjeuH+2SvQWf2udH8hhQEp8v/KhLq/I83Iw1fSjNTT9oa5VFlGU8OiJABQuTcY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58yvGkVxLT1RggMUZ/ZT68qj2xtlTPhbYxtsGQSuWEJvKesE+4qM/vPvv//+9/8=')));
Function Calls
strtr | 1 |
gzinflate | 4 |
base64_decode | 5 |
Stats
MD5 | 4840222012d96fa26985fac2aed56384 |
Eval Count | 5 |
Decode Time | 79 ms |