备注

  • androguard 项目首页
  • 目前整个项目都已经切换到python3了
  • 整个项目都是完全基于python3实现的
  • androguard 主程序安装十分简单,只要pip就行
  • 本章节主要介绍如何安装 gui版本
  • 吐槽一下:py和qt两个经常导致兼容性问题,但是androguard官方没有给一个标准方案
  • gui目前处于随时不可用状态

0x1 安装主程序

  • 依赖python3
  • androguard 的图形化模块使用qt实现,因此需要安装pyqt
  • 这里使用 国内源加速安装
apt install -y python3-pip
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple -U androguard

0x2 安装qt插件

  1. 主程序安装完成后可以直接使用 androguard gui来启动gui界面
  2. 打开gui窗口时会先后爆一下的错误
No PyQT5 found! Exiting...
No pyperclip found! Exiting...

上面这些错误提示了程序需要的插件,使用如下指令安装

pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple -U pyqt5
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple -U pyperclip

0x3 修复xcb错误

  1. 到目前为止已经安装了 gui所有的以来但是实际上还是无法运行 gui
  2. 打开gui窗口时 十有八九会报xcb错误,具体的错误如下
root@dev-ub20:~# androguard gui
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

已放弃 (核心已转储)
  • 坑爹你也许会按照提示去安装各种xcb的python库
  • 实际上上面列出来的没一个能用:sob:
  • 实际上只能通过 ubuntu官方源来安装:joy:
  • 安装代码如下
apt install qt5dxcb-plugin -y

0x4 打开 gui

  1. 首先登陆ubuntu的图形窗口
  2. 在非root模式下使用如下指令 启动图形窗口
androguard gui

androguard.png

Last modification:November 19, 2020
如果觉得我的文章对你有用,请随意赞赏