Online PHP and Javascript Decoder decode hidden script to uncover its real functionality


$url = 'http://www.wetoz.kr/connect/inicheck.php';
    $posts = array();
    $posts['ps_domain'] = $_SERVER['SERVER_NAME'];
    $posts['ps_pcode']  = 'wzchargepoint';
    $curl = curl_init();
    curl_setopt($curl, CURLOPT_URL, $url);
    curl_setopt($curl, CURLOPT_VERBOSE, true);
    curl_setopt($curl, CURLOPT_HEADER, false);
    curl_setopt($curl, CURLOPT_POST, true);
    curl_setopt($curl, CURLOPT_POSTFIELDS, $posts);
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 3);
    curl_setopt($curl, CURLOPT_TIMEOUT, 200);
    $result = curl_exec($curl);
    curl_close($curl);
    if (substr($result, 0, 5) == 'error')
        die(substr($result, 6));

    $query = "select mb_id, bk_subject, bk_charge_point, bk_chargepoint_term, bk_status, bk_is_charge from {$g5['wpot_order_table']} where od_id = '".$od_id."' ";
    $bk = sql_fetch($query);

    if ($bk['bk_status'] == '완료') {
        if (!$bk['bk_is_charge'] && $bk['bk_charge_point'] > 0) {
            insert_point($bk['mb_id'], $bk['bk_charge_point'], $bk['bk_subject'], '@wzchargepoint', $bk['mb_id'], $od_id, $bk['bk_chargepoint_term']);
            sql_query("update {$g5['wpot_order_table']} set bk_is_charge = 1 where od_id = '".$od_id."'");
        }
    }
    else if ($bk['bk_status'] == '대기' || $bk['bk_status'] == '취소') {
        if ($bk['bk_is_charge'] && $bk['bk_charge_point'] > 0) {
            delete_point($bk['mb_id'], '@wzchargepoint', $bk['mb_id'], $od_id);
            sql_query("update {$g5['wpot_order_table']} set bk_is_charge = 0 where od_id = '".$od_id."'");
        }
    }



© 2023 Quttera Ltd. All rights reserved.