rms-runtime-mobile-security
Version:
Runtime Mobile Security (RMS), powered by FRIDA, is a powerful web interface that helps you to manipulate Android and iOS Apps at Runtime
24 lines (20 loc) • 860 B
JavaScript
/************************************************************************
* Name: Dex Classes Enumeration
* OS: Android
* Author: @mobilesecurity_
* Source: https://github.com/m0bilesecurity
*************************************************************************/
Java.perform(function () {
send("Dex Classes Enumeration - started")
const ActivityThread = Java.use('android.app.ActivityThread');
const DexFile = Java.use("dalvik.system.DexFile");
var targetApp = ActivityThread.currentApplication();
var context = targetApp.getApplicationContext();
var apk_path = context.getPackageCodePath().toString()
var df = DexFile.$new(apk_path);
var dexClasses = df.entries()
while (dexClasses.hasMoreElements()) {
send(String(dexClasses.nextElement()))
}
send("Dex Classes Enumeration - completed")
});