美文网首页
如何扫描安卓应用中所有的activity、service、rec

如何扫描安卓应用中所有的activity、service、rec

作者: Dakini_Wind | 来源:发表于2022-05-26 12:34 被阅读0次

    基于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')
    

    相关文章

      网友评论

          本文标题:如何扫描安卓应用中所有的activity、service、rec

          本文链接:https://www.haomeiwen.com/subject/vxmuprtx.html