Giter VIP home page Giter VIP logo

apkfcg's Introduction

A python script to extract the function call graph from .apk file

I use Androguard to initialize the call graph. If you are interested in Androguard, you can visit its repo.

Installation

download the repo

git clone https://github.com/Gax-c/APKFCG.git

install Androguard

First, make sure you have installed Androguard, if you have installed it, you can skip this slice.

If not, you can visit its repo for installation, or you can install it from this repo.

If you want to install Androguard from this repo, please follow the following steps:

cd androguard
pip install -r requirements.txt
python setup.py install 

Please make sure the version of your networkx is 2.5

The version of this androguard is 3.4.0

usage

The main components are initializeFCG.pyใ€generateFCG.pyใ€main.py

initializeFCG.py is used to initialize the FCG, which uses Androguard to generate the FCG.

generateFCG.pyis used to filter the FCG, you can use the parameter --CLASS, --METHOD, etc. to filter the FCG.

Finally the program will output the number of the nodes left, and three sets internalNode, externalNode, exsistingEdgewill be returned.

You can only use main.py to achieve the functions above.

example

python main.py app-debug.apk --CLASS

run above to get the FCG of app-debug.apk by class.

apkfcg's People

Contributors

gax-c avatar

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.