Exploit database

GH-14fb583d3d1bd2da10251bb1a37b93d6

gitchw/ghostlock-cve-2026-43499

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-43499

165 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files16

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

workspace/decomp/HeyRomUpdate/sources/com/heytap/wearable/romupdate/utils/PropertiesUtils.java

Java · 3,240 bytes
package com.heytap.wearable.romupdate.utils;

import android.content.Context;
import android.os.Build;
import android.os.SystemProperties;
import android.telephony.TelephonyManager;
import android.text.TextUtils;
import java.util.Locale;

/* loaded from: classes.dex */
public class PropertiesUtils {
    public static final String DEFAULT_IMEI = "865348059758661";
    public static final String DEFAULT_OTA = "OW20W3";
    public static final String TAG = "PropertiesUtils";

    private PropertiesUtils() {
    }

    public static String getRegionMark() {
        return SystemProperties.get("ro.vendor.oplus.regionmark", "");
    }

    public static String getUserRegion() {
        return SystemProperties.get("persist.sys.oppo.region", "");
    }

    public static String getMode() {
        return SystemProperties.get("sys.ota.test", "0");
    }

    public static String getPhoneOperator() {
        return SystemProperties.get("ro.oppo.operator", "AAAA");
    }

    public static String getLanguage() {
        return Locale.getDefault().toLanguageTag();
    }

    public static String getRegistrationId(Context context) {
        return "";
    }

    public static String getRomVersion() {
        return SystemProperties.get("ro.build.display.id", "");
    }

    public static String getProductName() {
        return SystemProperties.get("ro.build.product", "");
    }

    public static String getOtaVersion() {
        return SystemProperties.get("ro.build.version.ota", DEFAULT_OTA);
    }

    public static String getColorOSVersion() {
        return "ColorOS" + splitColorVer();
    }

    public static String getAndroidVersion() {
        return "Android" + Build.VERSION.RELEASE;
    }

    public static String getImei(Context context) {
        if (context.getPackageManager().hasSystemFeature("android.hardware.telephony")) {
            String imeiFromTm = getImeiFromTm(context);
            return !TextUtils.isEmpty(imeiFromTm) ? imeiFromTm : DEFAULT_IMEI;
        }
        return SystemProperties.get("persist.vendor.oppo.imei", DEFAULT_IMEI);
    }

    private static String getImeiFromTm(Context context) {
        try {
            return ((TelephonyManager) context.getSystemService("phone")).getImei(0);
        } catch (Exception e) {
            e.printStackTrace();
            return DEFAULT_IMEI;
        }
    }

    public static String splitColorVer() {
        String str = "alpha";
        String str2 = SystemProperties.get("ro.build.version.opporom");
        if (str2 != null) {
            try {
                String lowerCase = str2.toLowerCase(Locale.US);
                if (!lowerCase.endsWith("alpha")) {
                    if (!lowerCase.endsWith("beta")) {
                        str = "";
                    } else {
                        str = "beta";
                    }
                }
                return lowerCase.split("_")[0].substring(1) + str;
            } catch (Exception e) {
                OppoLog.e(TAG, "get ro.build.version.opporom error!");
                return "V1.0.0";
            }
        }
        return "V1.0.0";
    }

    public static String getGUID(Context context) {
        return IdentifierManager.getGUID(context);
    }
}