GithubHelp home page GithubHelp logo

neonorbit / dexplore Goto Github PK

View Code? Open in Web Editor NEW
90.0 5.0 5.0 523 KB

A dex analyzer for finding obfuscated codes dynamically

Home Page: https://neonorbit.github.io/dexplore

License: Apache License 2.0

Java 72.76% Kotlin 20.88% Shell 1.37% Batchfile 0.44% Smali 4.55%
deobfuscation dex reverse-engineering xposed

dexplore's Introduction

๐Ÿšฆ As soon as you stop running, everyone else starts to catch up. ๐Ÿšฆ

[email protected]

dexplore's People

Contributors

neonorbit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dexplore's Issues

Search for everything in the same loop

This is a critical performance improvement, this library is only efficient when looking for just one method. However, finding many methods and classes causes to loop through the same classes for every single search. Why not search for everything in the same loop?

Example

old code

Class<?> class1 = dexplore.findClass(
                DEX_FILTER,
                CLASS_FILTER).loadClass(classLoader)

Class<?> class2 = dexplore.findClass(
                DEX_FILTER,
                CLASS_FILTER).loadClass(classLoader)

new code

dexplore.addClass("class1",
                DEX_FILTER,
                CLASS_FILTER)
dexplore.addClass("class2",
                DEX_FILTER,
                CLASS_FILTER)

dexplore.setClassLoader(classLoader)
dexplore.setOnClassQueried((name, cls) -> { 
    switch(name) {
        case "class1":
            class1 = cls;
            break;
        case "class2":
            class2 = cls;
            break;
    }
})

dexplore.explore()

Search for parameter and return types

Would it be possible to also search for parameter and return types of methods?
That could make the results more distinct in cases where the method's references are mostly obfuscated themselves.

Deserialization error

An error was found when deserializing method parameters if they include Classes array(Class[])

  • Target method:
    public final void a(Application arg9, String arg10, boolean arg11, Class[] arg12)
    .method public final a(Landroid/app/Application;Ljava/lang/String;Z[Ljava/lang/Class;)V
  • Serialization result:
    <string name="app_center">m:lx.u.a.k:a:android.app.Application:java.lang.String:boolean:[Ljava.lang.Class;:void</string>
  • Error:
    java.lang.IllegalArgumentException at io.github.neonorbit.dexplore.result.MethodData.deserialize(MethodData.java:169)

Deserialization works fine if there is only Ljava.lang.Class but breaks if there are [ and ; in string.

MethodData.loadMethod returns null on found method

Method Signature

com.facebook.messaging.msys.common.translator.AbstractMsysMessagesCollectionTranslator.A00(com.facebook.messaging.model.threadkey.ThreadKey,com.facebook.messaging.msys.common.translator.AbstractMsysMessagesCollectionTranslator,com.facebook.messengerorcacqljava.OrcaTempMessageList,X.5JD,com.facebook.xapp.messaging.capability.vector.Capabilities,com.google.common.collect.ImmutableSet,java.lang.Number,java.util.List,java.util.Map,int,int):com.facebook.messaging.model.messages.MessagesCollection

App

Messenger version v416 (download link)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.