January 18, 2025

APKDeeplens-自动对APK进行安全评估-顺便出个报告

APKDeepLens

APKDeepLens 是一个基于 Python 的工具,旨在扫描 Android 应用程序(APK 文件)是否存在安全漏洞。它专门针对 OWASP Top 10 移动漏洞,为开发人员、渗透测试人员和安全研究人员提供一种简单有效的方法来评估 Android 应用程序的安全状况。

图像

特征

APKDeepLens 是一个基于 Python 的工具,可对 APK 文件执行各种操作。其主要特点包括:

安装

要使用 APKDeepLens,您需要在系统上安装 Python 3.8 或更高版本。然后,您可以使用以下命令安装 APKDeepLens:

对于Linux

1
2
3
4
5
6
git clone https://github.com/d78ui98/APKDeepLens/tree/main
cd /APKDeepLens
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python APKDeepLens.py --help

对于 Windows

1
2
3
4
5
6
git clone https://github.com/d78ui98/APKDeepLens/tree/main
cd \APKDeepLens
python3 -m venv venv
.\venv\Scripts\activate
pip install -r .\requirements.txt
python APKDeepLens.py --help

#使用手动下载方式

1
2
3
4
5
6
7
8
9
10
11
https://github.com/d78ui98/APKDeepLens #打开链接
#选择code
#选择Download zip
#解压
#打开终端
cd 解压目录
python -m pip install -r requirements.txt #安装环境
python -m venv venv #进入虚拟环境
.\venv\Scripts\activate #进入虚拟环境
python -m pip install -r .\requirements.txt #安装库
python APKDeepLens.py --help #查看帮助

用法

要简单地扫描 APK,请使用以下命令。使用参数提及 apk 文件-apk。扫描完成后,详细报告将显示在控制台中。

1
python3 APKDeepLens.py -apk file.apk

如果您已经提取了源代码并希望提供其路径以进行更快的扫描,您可以使用以下命令。使用参数提及 android 应用程序的源代码-source

1
python3 APKDeepLens.py -apk file.apk -source <source-code-path>

要在扫描后生成详细的 PDF 和 HTML 报告,您可以传递-report如下所述的参数。

1
python3 APKDeepLens.py -apk file.apk -report

About this Post

This post is written by 杨CC, licensed under CC BY-NC 4.0.

#信息收集-综合类