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('DZZFsoUIEkWX01XBAOdB9Ah3dyYduLuz+v5LyCsnb3mlwz/1107VkB..
Decoded Output download
$path = "."; include_once ("./_common.php"); if ( $_SERVER['REMOTE_ADDR'] == '119.70.222.175' ) { $func->prt_msg2(' .'); } $mem_id = $func->get_param_val( trim( $_POST['mem_id'] ) ) ; $mem_pw = $func->get_param_val( trim( $_POST['mem_pw'] ) ) ; $remember = $func->get_param_val( trim( $_POST['remember'] ) ) ; if ($remember) { $remember = 1; } else { $remember = 0; } if (strlen($mem_id)<2 || strlen($mem_pw)<2 || strlen($mem_id)>125 || strlen($mem_pw)>125){ header('Location:/learning_management/login.php'); } $current_pw = $mem_pw; $mem_pw = encrypt($mem_pw); $strSQL = " select a.mem_name, a.hit, a.mem_level"; $strSQL .= " from " . MEMBER_TABLE . ' as a' ; $strSQL .= " where a.mem_id = ?"; $strSQL .= " and a.mem_pw = ?"; $strSQL .= " and a.login_key = '1'"; $strSQL .= " and a.mem_level in ('LEV001', 'LEV003', 'LEV005', 'LEV007', 'LEV009')"; $sth = $dbh->query($strSQL, $mem_id, $mem_pw); $strRST = $sth->fetchAll(); if (count($strRST)) { if ( $strRST[0]['mem_level'] == 'LEV001' || $strRST[0]['mem_level'] == 'LEV003' ) { if ($_SERVER['HTTP_HOST'] != $shop_admin_url ) { session_destroy(); setcookie('mem_id', '', time() - 3600); setcookie('mem_pw', '', time() - 3600); $msg = ' url . .'; $url = 'https://' . $shop_admin_url . '/learning_management'; $func->prt_msg3($msg, $url); } } else if ( $strRST[0]['mem_level'] == 'LEV005' ) { if ($_SERVER['HTTP_HOST'] != $shop_sales_url ) { session_destroy(); setcookie('mem_id', '', time() - 3600); setcookie('mem_pw', '', time() - 3600); $msg = ' url . .'; $url = 'https://' . $shop_sales_url . '/learning_management'; $func->prt_msg3($msg, $url); } } else if ( $strRST[0]['mem_level'] == 'LEV007' ) { if ($_SERVER['HTTP_HOST'] != $shop_tutor_url ) { session_destroy(); setcookie('mem_id', '', time() - 3600); setcookie('mem_pw', '', time() - 3600); $msg = ' url . .'; $url = 'https://' . $shop_tutor_url . '/learning_management'; $func->prt_msg3($msg, $url); } } else if ( $strRST[0]['mem_level'] == 'LEV009' ) { if ($_SERVER['HTTP_HOST'] != $shop_company_url ) { session_destroy(); setcookie('mem_id', '', time() - 3600); setcookie('mem_pw', '', time() - 3600); $msg = ' url . .'; $url = 'https://' . $shop_company_url . '/learning_management'; $func->prt_msg3($msg, $url); } } $_SESSION["logon_mem_id"] = $mem_id; $_SESSION["isLogin"] = TRUE; $hit = $func->get_db_val( $strRST[0]["hit"], 'int' ); $hit ++; $inData['hit'] = $hit; $inData['visitdate'] = date('Y-m-d H:i:s'); $inData['visit_ip'] = $_SERVER['REMOTE_ADDR']; $inData['session_info'] = md5(session_id() . encode_key); $WhereData['mem_id'] = $mem_id; $ret_arr = $dbh->updateQuery(MEMBER_TABLE, $inData, $WhereData); $result = $dbh->query($ret_arr[0], $ret_arr[1]); unset($inData); unset($WhereData); $agent_info = $func->getBrowser(); $inData['mem_id'] = $mem_id; $inData['mem_level'] = $strRST[0]['mem_level']; $inData['login_type'] = $agent_info['device_type']; $inData['browser'] = $agent_info['browser']; $inData['reg_id'] = $mem_id; $inData['reg_date'] = date('Y-m-d H:i:s'); $inData['reg_ip'] = $_SERVER["REMOTE_ADDR"]; $ret_arr = $dbh->insertQuery(LOGIN_LOG_TABLE, $inData); $result = $dbh->query($ret_arr[0], $ret_arr[1]); unset($inData); unset($agent_info); if ( $mem_id == 'developer' ) { $isWhere = "( to_days(now()) - to_days(fulldate) ) > 45"; $strSQL = $dbh->deleteQuery(VISIT_STATIC_TABLE, $isWhere); $dbh->query($strSQL[0]); $isWhere = "( date(reg_date) < date(now()) ) "; $strSQL = $dbh->deleteQuery(API_LOG_TABLE, $isWhere); $dbh->query($strSQL[0]); $isWhere = "( to_days(now()) - to_days(reg_date) ) > 90"; $strSQL = $dbh->deleteQuery(SITE_ERROR_LOG_TABLE, $isWhere); $dbh->query($strSQL[0]); } if ( $remember == 1 ) { setcookie('cookie_mem_id', $mem_id, time() + (86400 * 30), '/'); setcookie('cookie_mem_pw', base64_encode($current_pw), time() + (86400 * 30), '/'); } else { setcookie('cookie_mem_id', '', time() - 3600, '/'); setcookie('cookie_mem_pw', '', time() - 3600, '/'); } header('Location:/learning_management/index.php'); } else { $func->prt_msg2(" ."); }
Did this file decode correctly?
Original Code
<?php eval(gzinflate(base64_decode('DZZFsoUIEkWX01XBAOdB9Ah3dyYduLuz+v5LyCsnb3mlwz/1107VkB7lP1m6lwT2v6LM56L85z9VUEjc+aqcd5nVQ5Unl/MVIJTPAZUHhNbodKGEpzP7jgmKILtsOmM9iFuUl3SIW/xItzCOWaPBBYqQxI4qECdAbztYy+8mo95mX2W4W83sixHVMfbGQjPP2SpQcENvUGpBGqrVnbIuXEBaOSl7sj0Q0p0jTQcr5+NV5SfJDsJg0vCbsZrnwjB+AZfG2D00uTT3Uje0GAXiP2v4SIJi7JsqPmc+xXJ5N4csktBfEz6e4NsExkjqIn84xdgkVJco+/518hFiTNccvaj4lMiJKodpLP/sMQ6j2J/mKCVG225dZljokru/a8xE5qyumEF6Ac/gMJkfeDfBdfZyHY12P9Zj6hgVSF0F0Qu9ru7vk2Qtgf3q3vvsDH4H6iPxQp3tcsvmEPiT8CEYTpLjIDgSFBlV1m6DJA4spNMGTSkDO3d4GLGzGoYUDNZj89PKczMQa2vb1Y2aejW6gVB5gL19s4Z+D37M5KW6nzVXxmOCQZ/XzmI3/G2o9MYlx7n3T9ZmnHbpA6M1NKfOe6SIl21mWgTnxHwcOZPX4UFai0BN8W4h4e86qLreo48efvnLgjQ/WEMurlMeI01giuXMy2b/Z9acqXcX8tNGQ6IFIx3u4SS3zU9CSPyiJM1ZwAvxsk6qUuzCLZpi275OS35K0kbczgD40SDhaj5/Jpi1WFvvy6kb+6neq4jCpfegY/E1EOeU6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8SmRA57M9NnH6QV1K31+MsLsxMq2tGnRopzRNe92114Apbk2YwLaqlvaNcbW5PufqOKtK90Z8vdaN3vBUMervHgnoNL0QJlL18RHDqXtMN+fCKYrZ0mredHbZGlzI4pW2A7j2nuKKhffJhLDWEmUG8SegkhnJ/ugyVWsegDevDYC6X6RR7kVN/uURrNrdfFRUc4+ITNgynrm5Bp/cMgs462bTXfzU0hla2volK9XQSITdNt9wQvgStaRLVIC97nHmH24OMJaf0Wxno0sedTd80edodS91CfBHLu4cmYNNqY8igEWE6Q6JNM+m2x9djKhgPBf/YqVrr/qPdaxNlvnuhj8QBK0IRVEQXMEWzEg7Et+bO2gyPegXBV1cfJvt1DAomdaB8EWAlFKUtfYLOe8eb/BXzsHskLIK+Kka5wP7BNy3qoCgPxegGAzhn0jSFgK8ydFXiAHqCEBZiG5+9aH6GXXj6DFksB0VG+UMMvy2ZKr+DstKJnTEVywTsLdI7j///vvvf/8P')));
Function Calls
strtr | 1 |
gzinflate | 4 |
base64_decode | 5 |
Stats
MD5 | 0090d9e48f91347b57765bb170068711 |
Eval Count | 5 |
Decode Time | 71 ms |