Skip to content
/ APKFCG Public

Extract the function call graph from .apk file based on Androguard

Notifications You must be signed in to change notification settings

Gax-c/APKFCG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.pygenerateFCG.pymain.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.

About

Extract the function call graph from .apk file based on Androguard

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages