A simple python program based on smalisca.
It's used to track ways of function call in an apk and will generate a flow chart afterwards so analyzers can track the root of a certain method in an apk.
-
Decompile an APK through a tool like AndroidKiller or APKtools to generate smali file directories
-
Run TrackCrypto with command like
python cmd.py -f [filelocation] –db [databasename] -s [startclass] -o [outputlocation] -m [startmethod]
-
Generate the flow chart with sfdp command.
Args | Functions |
---|---|
-f | Smali File Location |
--db | Generated Database Name |
-s | Start Class Name |
-o | Output Location |
-m | Start Method Name |
Built on windows10. Not tested on Linux.
- python3.7.6
- MySQL&SqlAlchemy
- Graphviz
- Add multithread to speed up the analyzing process
- Find another way to help handle the complicate image
- It may take about 60 mins to generate a 40M apk(that's why we need multithread).
- It's a buggy program for my undergraduate essays so there are plenty of rooms to improve.