如何从Android APK生成调用图? [英] How to generate call graph from android APK?

查看:473
本文介绍了如何从Android APK生成调用图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从Google Play下载了一些Android应用程序。我有 Smali 代码通过逆向工程工具 apktool 。我想为这些应用程序生成调用图。我已经看到很多关于堆栈溢出和谷歌的链接,大多数建议的工具要么是 c / c ++ ,要么是 Java ,他们当然需要我没有的源代码。

I have downloaded a few Android applications from Google Play. I have got Smali code through reverse engineering tool apktool .I want to generate call graphs for these applications. I have seen many links on stack overflow and Google, most of the suggested tools are either for c/c++ or if they are for Java, they need source code which I don't have, of course.

有没有办法自动生成调用图?谢谢。

Is there any way to generate call graphs automatically? Thanks.

推荐答案

apkinspector - http://code.google.com/p/apkinspector/

apkinspector - http://code.google.com/p/apkinspector/

此项目的目标是帮助分析师和逆向工程师可视化已编译的Android软件包及其相应的DEX代码。 APKInspector为用户提供分析功能和图形功能,以深入了解恶意应用程序:

The goal of this project is to aide analysts and reverse engineers to visualize compiled Android packages and their corresponding DEX code. APKInspector provides both analysis functions and graphic features for the users to gain deep insight into the malicious apps:


  • CFG

  • 调用图

  • 静态检测

  • 权限分析

  • Dalvik代码

  • Smali代码

  • Java代码

  • APK信息

  • CFG
  • Call Graph
  • Static Instrumentation
  • Permission Analysis
  • Dalvik codes
  • Smali codes
  • Java codes
  • APK Information

我试图在我的电脑上安装apkinspector(Debian 6.0):

I've tried to install apkinspector in my computer (Debian 6.0):

sudo aptitude install libxext-dev
source compile python-qt and python-sip

http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.9.4/

sudo aptitude install python-tk

easy_install ipython
(sudo aptitude install python-pip & sudo pip install ipython)

vi androguard/androlyze.py
change "import IPython.ipapi" to "import IPython.core.ipapi"
change "from IPython import IPShellEmbed" to "import IPython"
change "IPShellEmbed" to "IPython.embed"

但不幸的是它无法使用!!!

But unfortunately it cannot be used!!!

因此我尝试使用Ruby编写自己的工具,可以在这里

thus I tried to write my own tool using Ruby, which can be found in here

这篇关于如何从Android APK生成调用图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆