jnianalyzer | simple tool to help finding JNI calls | Wrapper library

 by   maaaaz Python Version: Current License: No License

kandi X-RAY | jnianalyzer Summary

kandi X-RAY | jnianalyzer Summary

jnianalyzer is a Python library typically used in Utilities, Wrapper applications. jnianalyzer has no bugs, it has no vulnerabilities and it has low support. However jnianalyzer build file is not available. You can download it from GitHub.

A simple tool to help finding JNI calls in a x86/ARM disassembly listing. Originally presented in this article [archived here] the script has been modified in order to support both x86 syntaxes as well as ARM. Thus, it can be used for debugging/reverse engineering Android native libraries using JNI.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              jnianalyzer has a low active ecosystem.
              It has 68 star(s) with 19 fork(s). There are 14 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 0 open issues and 1 have been closed. On average issues are closed in 2 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of jnianalyzer is current.

            kandi-Quality Quality

              jnianalyzer has 0 bugs and 11 code smells.

            kandi-Security Security

              jnianalyzer has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              jnianalyzer code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              jnianalyzer does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              jnianalyzer releases are not available. You will need to build from source code and install.
              jnianalyzer has no build file. You will be need to create the build yourself to build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              jnianalyzer saves you 70 person hours of effort in developing the same functionality from scratch.
              It has 181 lines of code, 6 functions and 3 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed jnianalyzer and discovered the below as its top functions. This is intended to give you an instant insight into jnianalyzer implemented functionality, and help decide if they suit your requirements.
            • Parse the X86 instruction
            • Return the name of the JNI call
            • Run arm analysis
            Get all kandi verified functions for this library.

            jnianalyzer Key Features

            No Key Features are available at this moment for jnianalyzer.

            jnianalyzer Examples and Code Snippets

            No Code Snippets are available at this moment for jnianalyzer.

            Community Discussions

            QUESTION

            Find manually registered (obfuscated) native function address
            Asked 2019-Nov-06 at 10:30

            I'm trying to understand an Android app which contains a native method named foo in class com.app.Bar

            Inside class Bar there is a static clause that loads a shared object System.loadLibrary("libfoo.so") which I assume is build with -fvisibility=hidden because the only export is JNI_OnLoad, no JNIEXPORT void JNICALL Java_com_app_Bar_foo which means public native int foo does not follow the naming convention.

            1. What is the process when foo is invoked ?
            2. How can I extract the address of foo ? I'm familiar with Frida
            3. Is there a way to output all JNINativeMethod[] methods ?

            What have I tried so far ?

            1. JNIAnalyzer outputs 13K lines that look like JNI_OnLoad@@Base+0x712e

            2. Frida script to try to find foo address (did not work)

            ...

            ANSWER

            Answered 2019-Nov-06 at 10:30

            I've solved it using Frida

            Hooking art::JNI::RegisterNativeMethods(_JNIEnv*, _jclass*, JNINativeMethod const*, int, bool) and art::JNI::FindClass after libart.so module is loaded.

            Code

            Source https://stackoverflow.com/questions/51811348

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install jnianalyzer

            You can download it from GitHub.
            You can use jnianalyzer like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/maaaaz/jnianalyzer.git

          • CLI

            gh repo clone maaaaz/jnianalyzer

          • sshUrl

            git@github.com:maaaaz/jnianalyzer.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Wrapper Libraries

            jna

            by java-native-access

            node-serialport

            by serialport

            lunchy

            by eddiezane

            ReLinker

            by KeepSafe

            pyserial

            by pyserial

            Try Top Libraries by maaaaz

            thc-hydra-windows

            by maaaazShell

            webscreenshot

            by maaaazPython

            androwarn

            by maaaazHTML

            nmaptocsv

            by maaaazPython

            CrackMapExecWin

            by maaaazPowerShell