Classloader

by
4 views 02193f1a...

Description

Classloader

How to Use

Download the script and run it with Frida CLI:

Download Script

Then run with Frida:

frida -U -f YOUR_PACKAGE_NAME -l classloader.js

Replace YOUR_PACKAGE_NAME with the target app's package name.

Source Code

JavaScript
Java.perform(function () {
  
    // Verificando ro.preinstall.vendorid para identificar o fornecedor
      var Build = Java.use("android.os.Build");
    var SystemProperties = Java.use("android.os.SystemProperties");
    
    var vendorId = SystemProperties.get("ro.preinstall.vendorid");
    console.log("Vendor ID: " + vendorId);
    if (vendorId && vendorId.includes("stb_vendor")) {
        console.log("Dispositivo é um Set-Top Box!");
    }

    // Verificando debug.second-display.pkg para identificar a presença de uma TV/monitor externo
    var secondDisplayPkg = SystemProperties.get("debug.second-display.pkg");
    console.log("Second Display Package: " + secondDisplayPkg);
    if (secondDisplayPkg) {
        console.log("Dispositivo tem suporte para TV ou segundo display!");
    }

    // Verificando ro.product.firmware para identificar o firmware de STB
    var firmware = SystemProperties.get("ro.product.firmware");
    console.log("Firmware: " + firmware);
    if (firmware && firmware.includes("stb_firmware")) {
        console.log("Dispositivo possui firmware para Set-Top Box!");
    }

    

});
Share this script:
Twitter LinkedIn

Comments

Login or Sign up to leave a comment.
Loading comments...