Apkinspector是一種工具,旨在提供對APK文件的郵政編碼結構的詳細見解,提供提取內容並解碼AndroidManifest.xml文件的功能。設置Apkinspector的原因是它在APK解析過程中遵守ZIP規範,從而消除了依賴外部庫的需求。這種獨立性允許Apkinspector具有高度適應性的,可以有效地模擬Android的安裝過程,該過程無法使用標準庫解析。主要目標是使用戶能夠對採用逃避技術的APK進行靜態分析,尤其是當常規方法無效時。
請查看此博客文章以獲取更多詳細信息。
可以通過PYPI獲得Apkinspector
pip install apkInspector
或者,您可以克隆此存儲庫,並在本地構建和安裝:
git clone https://github.com/erev0s/apkInspector.git
cd apkInspector
poetry build
pip install dist/apkInspector-Version_here.tar.gz
基於Docstrings創建的文檔,可通過Sphinx獲得:
https://erev0s.github.io/apkinspector/
Apkinspector提供具有相同名稱的命令行工具,並提供以下選項;
$ apkInspector -h
usage: apkInspector [-h] [-apk APK] [-f FILENAME] [-ll] [-lc] [-la] [-e] [-x] [-xa] [-m] [-sm SPECIFY_MANIFEST] [-a] [-v]
apkInspector is a tool designed to provide detailed insights into the zip structure of APK files, offering the capability to extract
content and decode the AndroidManifest.xml file.
options:
-h, --help show this help message and exit
-apk APK APK to inspect
-f FILENAME, --filename FILENAME
Filename to provide info for
-ll, --list-local List all files by name from local headers
-lc, --list-central List all files by name from central directory header
-la, --list-all List all files from both central directory and local headers
-e, --export Export to JSON. What you list from the other flags, will be exported
-x, --extract Attempt to extract the file specified by the -f flag
-xa, --extract-all Attempt to extract all files detected in the central directory header
-m, --manifest Extract and decode the AndroidManifest.xml
-sm SPECIFY_MANIFEST, --specify-manifest SPECIFY_MANIFEST
Pass an encoded AndroidManifest.xml file to be decoded
-a, --analyze Check an APK for static analysis evasion techniques
-v, --version Retrieves version information
Apkinspector的庫組件的設計考慮到可擴展性,允許其他工具無縫整合其功能。這種靈活性使開發人員能夠利用Apkinspector在自己的應用程序和工作流程中的功能。為了促進明確的理解和易用性,全面的DocString伴隨著所有主要方法,為其功能,預期論證和返回價值提供了寶貴的見解。這些詳細的解釋是無價的指南,確保開發人員可以快速掌握Apkinspector的核心特徵的內部運作,並將它們順利地納入他們的項目中。
命令行界面(CLI)用作庫如何採用的方法的實用說明。
請查看測試Apkinspector對一組頂級Play商店應用程序的結果
我們歡迎開源社區的捐款,以幫助改善和提高Apkinspector。無論您是開發人員,測試人員還是文檔愛好者,您的貢獻都很有價值。
應當牢記,Apkinspector是一個正在不斷發展的項目,正在進行的工作。因此,用戶應預測偶爾的錯誤,並隨著工具的繼續成熟並增強其功能,預計更新和升級。當我們共同努力改善和完善其功能時,您對您對Apkinspector的反饋和貢獻得到了高度讚賞。