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


global $CFlLx2f,
$CFlLx30,
$CFlLx31,
$CFlLx32,
$CFlLx33,
$CFlLx34,
$CFlLx35,
$CFlLx36;
$CFlLx2f = "abs";
$CFlLx30 = "date";
$CFlLx31 = "explode";
$CFlLx32 = "md5";
$CFlLx33 = "str_replace";
$CFlLx34 = "strlen";
$CFlLx35 = "trim";
$CFlLx36 = "time";

class Cashflow4You_License_Action extends Vtiger_Action_Controller
{
    function __construct()
    {
        global $CFlLx2f,
        $CFlLx30,
        $CFlLx31,
        $CFlLx32,
        $CFlLx33,
        $CFlLx34,
        $CFlLx35,
        $CFlLx36;
        parent::__construct();
        $this->exposeMethod("deactivateLicense");
        $this->exposeMethod("editLicense");
    }
    function checkPermission(Vtiger_Request $CFlLx0b)
    {
        global $CFlLx2f,
        $CFlLx30,
        $CFlLx31,
        $CFlLx32,
        $CFlLx33,
        $CFlLx34,
        $CFlLx35,
        $CFlLx36;
        return;
    }
    function process(Vtiger_Request $CFlLx0b)
    {
        global $CFlLx2f,
        $CFlLx30,
        $CFlLx31,
        $CFlLx32,
        $CFlLx33,
        $CFlLx34,
        $CFlLx35,
        $CFlLx36;
        $CFlLx0c = $CFlLx0b->get("mode");
        if (!empty($CFlLx0c)) {
            $this->invokeExposedMethod($CFlLx0c, $CFlLx0b);
            return;
        }
    }
    public function editLicense(Vtiger_Request $CFlLx0b)
    {
        global $CFlLx2f,
        $CFlLx30,
        $CFlLx31,
        $CFlLx32,
        $CFlLx33,
        $CFlLx34,
        $CFlLx35,
        $CFlLx36;
        $CFlLx0d = PearDatabase::getInstance();
        require_once "libraries/nusoap/nusoap.php";
        $CFlLx0e = "soap_log";
        global $$CFlLx0e;
        if (!$$CFlLx0e) {
            $$CFlLx0e = LoggerManager::getLogger("SOAP");
        }
        $CFlLx0f = new Cashflow4You_Module_Model();
        $CFlLx10 = "type";
        $CFlLx11 = $CFlLx0b->get($CFlLx10);
        $CFlLx12 = "licensekey";
        $CFlLx13 = $CFlLx0b->get($CFlLx12);
        $CFlLx14 =
        "vtiger_current_version";
        $CFlLx15 = vglobal($CFlLx14);
        $CFlLx16 = "site_URL";
        $CFlLx17 = vglobal($CFlLx16);
        $CFlLx18 =
        "http://www.its4you.sk/ITS4YouWS/ITS4YouWS.php";
        $CFlLx19 = new soapclient2($CFlLx18, false);
        $CFlLx19->soap_defencoding = "UTF-8";
        $CFlLx1a = $CFlLx19->getError();
        if ($CFlLx1a == false) {
            $CFlLx1b = "";
            if ($CFlLx13 != "") {
                $CFlLx1c = $CFlLx32("web/" . $CFlLx17);
                $CFlLx1d = "professional";
                $CFlLx1b = $this->lASzFfDzipehfoEbjFZQ(
                    $CFlLx11,
                    $CFlLx13,
                    $CFlLx19,
                    $CFlLx1d,
                    $CFlLx1c
                    );
            }
            if ($CFlLx1b == "validated") {
                $CFlLx0d->pquery(
                    "DELETE FROM its4you_cashflow4you_license",
                    []
                    );
                $CFlLx0d->pquery(
                    "INSERT INTO its4you_cashflow4you_license VALUES(?,?)",
                    [$CFlLx1d, $CFlLx13]
                    );
                $CFlLx0d->pquery(
                    "DELETE FROM its4you_cashflow4you_version WHERE version=?",
                    [$CFlLx15]
                    );
                $CFlLx0d->pquery(
                    "INSERT INTO its4you_cashflow4you_version (version,license) VALUES ('" .
                    $CFlLx15 .
                    "','" .
                    $CFlLx32(
                        "CFL" .
                        $CFlLx32(
                            $CFlLx1d . "/" . $CFlLx17 . "\vt6"
                            )
                        ) .
                    "')",
                    []
                    );
                if ($CFlLx11 != "reactivate") {
                    $CFlLx0f->actualizeLinks();
                }
                $CFlLx1e = [
                    "success" => true,
                    "message" => vtranslate(
                        "REACTIVATE_SUCCESS",
                        "Cashflow4You"
                        ),
                    "licensekey" => $CFlLx13,
                ];
            } else {
                if (
                    $CFlLx35($CFlLx1b) != "" &&
                    $CFlLx35($CFlLx1b) !=
                    "invalidated" &&
                    $CFlLx35($CFlLx1b) != "validate_err"
                    ) {
                        $CFlLx1e = [
                            "success" => false,
                            "message" => $CFlLx1b,
                        ];
                    } else {
                        $CFlLx1e = [
                            "success" => false,
                            "message" => vtranslate(
                                "LBL_INVALID_KEY",
                                "Cashflow4You"
                                ),
                        ];
                    }
            }
        } else {
            $CFlLx1e = [
                "success" => false,
                "message" => vtranslate(
                    "LBL_VALIDATION_ERROR",
                    "Cashflow4You"
                    ),
            ];
        }
        $CFlLx1f = new Vtiger_Response();
        try {
            $CFlLx1f->setResult($CFlLx1e);
        } catch (Exception $CFlLx20) {
            $CFlLx1f->setError($CFlLx20->getCode(), $CFlLx20->getMessage());
        }
        $CFlLx1f->emit();
    }
    private function lASzFfDzipehfoEbjFZQ(
        $CFlLx21,
        $CFlLx13,
        $CFlLx19,
        $CFlLx1d,
        $CFlLx1c,
        $CFlLx0c = ""
        ) {
            global $CFlLx2f,
            $CFlLx30,
            $CFlLx31,
            $CFlLx32,
            $CFlLx33,
            $CFlLx34,
            $CFlLx35,
            $CFlLx36;
            $CFlLx22 = $CFlLx33(
                " ",
                "_",
                Cashflow4You_Version_Helper::getVersion()
                );
            $CFlLx14 =
            "vtiger_current_version";
            $CFlLx15 = vglobal($CFlLx14);
            $CFlLx23 = $CFlLx36();
            if ($CFlLx21 == "deactivate") {
                $CFlLx24 = [
                    "key" => $CFlLx13,
                    "type" => $CFlLx1d,
                    "vtiger" => $CFlLx15,
                    "module" => "Cashflow4You",
                    "mode" => $CFlLx22,
                    "url" => $CFlLx1c,
                    "vmode" => $CFlLx0c,
                    "time" => $CFlLx23,
                ];
            } else {
                $CFlLx24 = [
                    "key" => $CFlLx13,
                    "type" => $CFlLx1d,
                    "vtiger" => $CFlLx15,
                    "module" => "Cashflow4You",
                    "mode" => $CFlLx22,
                    "url" => $CFlLx1c,
                    "time" => $CFlLx23,
                ];
            }
            $CFlLx1b = $CFlLx19->call(
                $CFlLx21 . "_license",
                $CFlLx24
                );
            if (!$CFlLx1b) {
                $CFlLx1b = $CFlLx19->getError();
            } else {
                if (
                    $CFlLx1b != "invalidated" &&
                    $CFlLx1b != "validate_err" &&
                    $CFlLx1b != ""
                    ) {
                        $CFlLx25 = $CFlLx31("_", $CFlLx1b);
                        $CFlLx1b = "invalidated";
                        $CFlLx26 = $CFlLx30("Y6y", $CFlLx23);
                        $CFlLx27 = $CFlLx34($CFlLx1c);
                        $CFlLx28 = $CFlLx34($CFlLx1d);
                        $CFlLx29 = $CFlLx26;
                        $CFlLx29 -= $CFlLx23;
                        $CFlLx29 -= $CFlLx28 + $CFlLx27;
                        if ($CFlLx25[1] == $CFlLx2f($CFlLx29)) {
                            $CFlLx1b = $CFlLx25[0];
                        }
                    }
            }
            return $CFlLx1b;
    }
    public function deactivateLicense(Vtiger_Request $CFlLx0b)
    {
        global $CFlLx2f,
        $CFlLx30,
        $CFlLx31,
        $CFlLx32,
        $CFlLx33,
        $CFlLx34,
        $CFlLx35,
        $CFlLx36;
        $CFlLx0d = PearDatabase::getInstance();
        require_once "libraries/nusoap/nusoap.php";
        $CFlLx0e = "soap_log";
        global $$CFlLx0e;
        if (!$$CFlLx0e) {
            $$CFlLx0e = LoggerManager::getLogger("SOAP");
        }
        $CFlLx0f = new Cashflow4You_Module_Model();
        $CFlLx14 =
        "vtiger_current_version";
        $CFlLx15 = vglobal($CFlLx14);
        $CFlLx16 = "site_URL";
        $CFlLx17 = vglobal($CFlLx16);
        $CFlLx2a =
        "its4you_validated_ok";
        $CFlLx18 =
        "http://www.its4you.sk/ITS4YouWS/ITS4YouWS.php";
        $CFlLx19 = new soapclient2($CFlLx18, false);
        $CFlLx19->soap_defencoding = "UTF-8";
        $CFlLx1a = $CFlLx19->getError();
        $CFlLx1d = $CFlLx0b->get("type");
        if ($CFlLx1a == false) {
            $CFlLx1b = "validate_err";
            $CFlLx2b = $CFlLx0f->GetVersionType();
            $CFlLx2c = $CFlLx0f->GetLicenseKey();
            $CFlLx1c = $CFlLx32("web/" . $CFlLx17);
            if (
                $CFlLx2b == "professional" or
                $CFlLx2b == "basic"
                ) {
                    $CFlLx13 = $CFlLx0b->get("key");
                    if (isset($CFlLx1d) && $CFlLx1d == "control") {
                        if ($CFlLx13 != "") {
                            $CFlLx1b = $this->lASzFfDzipehfoEbjFZQ(
                                "deactivate",
                                $CFlLx13,
                                $CFlLx19,
                                $CFlLx2b,
                                $CFlLx1c,
                                "control"
                                );
                        }
                        if ($CFlLx1b != "validated") {
                            $CFlLx1e = [
                                "success" => false,
                                "deactivate" => vtranslate(
                                    "LBL_INVALID_KEY",
                                    "Cashflow4You"
                                    ),
                            ];
                        } else {
                            $CFlLx1e = [
                                "success" => true,
                                "deactivate" => "ok",
                            ];
                        }
                    } else {
                        if ($CFlLx13 != "") {
                            $CFlLx2d = $this->lASzFfDzipehfoEbjFZQ(
                                "deactivate",
                                $CFlLx13,
                                $CFlLx19,
                                $CFlLx2b,
                                $CFlLx1c,
                                "deactivate"
                                );
                        }
                        if ($CFlLx2d == "validated") {
                            $CFlLx0d->pquery(
                                "DELETE FROM  its4you_cashflow4you_license",
                                []
                                );
                            $CFlLx0d->pquery(
                                "INSERT INTO  its4you_cashflow4you_license VALUES('deactivate','')",
                                []
                                );
                            $CFlLx0d->pquery(
                                "UPDATE  its4you_cashflow4you_version SET license=? WHERE version=?",
                                [$CFlLx2d, $CFlLx15]
                                );
                            $CFlLx0f->DeleteAllRefLinks();
                            $CFlLx1e = [
                                "success" => true,
                                "deactivate" => vtranslate(
                                    "LBL_DEACTIVATE_SUCCESS",
                                    "Cashflow4You"
                                    ),
                            ];
                        } else {
                            if (
                                $CFlLx35($CFlLx1b) != "" &&
                                $CFlLx35($CFlLx2d) !=
                                "invalidated" &&
                                $CFlLx35($CFlLx2d) !=
                                "validate_err"
                                ) {
                                    $CFlLx1e = [
                                        "success" => false,
                                        "message" => $CFlLx2d,
                                    ];
                                } else {
                                    $CFlLx1e = [
                                        "success" => false,
                                        "message" => vtranslate(
                                            "LBL_INVALID_KEY",
                                            "Cashflow4You"
                                            ),
                                    ];
                                }
                        }
                    }
                } else {
                    $CFlLx1e = [
                        "success" => false,
                        "deactivate" => vtranslate(
                            "LBL_DEACTIVATE_ERROR",
                            "Cashflow4You"
                            ),
                    ];
                }
        } else {
            $CFlLx1e = [
                "success" => false,
                "deactivate" => vtranslate(
                    "LBL_DEACTIVATE_ERROR",
                    "Cashflow4You"
                    ),
            ];
        }
        $CFlLx1f = new Vtiger_Response();
        try {
            $CFlLx1f->setResult($CFlLx1e);
        } catch (Exception $CFlLx20) {
            $CFlLx1f->setError($CFlLx20->getCode(), $CFlLx20->getMessage());
        }
        $CFlLx1f->emit();
    }
    public function checkLicense()
    {
        global $CFlLx2f,
        $CFlLx30,
        $CFlLx31,
        $CFlLx32,
        $CFlLx33,
        $CFlLx34,
        $CFlLx35,
        $CFlLx36;
        $CFlLx0d = PearDatabase::getInstance();
        $CFlLx12 = "site_URL";
        $CFlLx2e =
        "vtiger_current_version";
        $CFlLx15 = vglobal($CFlLx2e);
        $CFlLx1e = $CFlLx0d->pquery(
            "SELECT license FROM its4you_cashflow4you_version WHERE version=?",
            [$CFlLx15]
            );
        $CFlLx17 = vglobal($CFlLx12);
        if (
            !$CFlLx1e ||
            $CFlLx0d->query_result($CFlLx1e, 0, "license") !=
            $CFlLx32(
                "CFL" .
                $CFlLx32(
                    "professional/" . $CFlLx17 . "\vt6"
                    )
                )
            ) {
                return false;
            }
            return true;
    }
}



© 2023 Quttera Ltd. All rights reserved.