如何扫描安卓应用中所有的activity、service、rec
2022-05-26 本文已影响0人
Dakini_Wind
基于androguard/androguard
使用python扫描apk文件
from androguard.core.bytecodes import apk
from collections import deque
def analyze(apk_path):
string_activities = '*'
a = apk.APK(apk_path)
for tag in [
"activity",
"activity-alias",
"service",
"receiver",
"provider",
]:
print("type:", tag)
for item in a.find_tags(tag):
print(item.get(a._ns("name"), ""))
if __name__ == "__main__":
analyze('taobao4android_1609139227984.apk')