{"id":16096510,"url":"https://github.com/deathmemory/dm_dex_parser","last_synced_at":"2025-04-05T21:13:35.966Z","repository":{"id":68881619,"uuid":"124015018","full_name":"deathmemory/dm_dex_parser","owner":"deathmemory","description":"解析 dex 文件，python 安装包的封装","archived":false,"fork":false,"pushed_at":"2018-03-08T08:11:58.000Z","size":30,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-11T23:55:02.046Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deathmemory.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-06T03:28:10.000Z","updated_at":"2022-02-25T09:12:58.000Z","dependencies_parsed_at":"2023-03-01T04:16:13.804Z","dependency_job_id":null,"html_url":"https://github.com/deathmemory/dm_dex_parser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deathmemory%2Fdm_dex_parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deathmemory%2Fdm_dex_parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deathmemory%2Fdm_dex_parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deathmemory%2Fdm_dex_parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deathmemory","download_url":"https://codeload.github.com/deathmemory/dm_dex_parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247399885,"owners_count":20932880,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-09T17:23:54.802Z","updated_at":"2025-04-05T21:13:35.938Z","avatar_url":"https://github.com/deathmemory.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dm_dex_parser\n解析 dex 文件，python 安装包的封装\n\n本项目是 [dex_parser](https://github.com/ondreji/dex_parser) 的引用，主要是加了层封装，可以作为第三方库导入 python 环境。\n\n# install\n\n`python setup.py install`\n\n# import \n\n`import dex_parser` or `from dex_parser import dex`\n\n# usage\n\n```python\ndef main():\n    if sys.argv \u003c 2:\n        print (\"Usages: %s dex_file\" % sys.argv[0])\n        quit()\n\n    filename = sys.argv[1]\n    # filename = \"D:\\\\classes.dex\"\n    dex = dex_parser(filename)\n    for key in dex.m_class_name_id:\n        if ('MobileAgent' in key):\n            clsid = dex.m_class_name_id[key]\n            print(dex.getclassmethod_count(clsid))\n            method_id, code_off = dex.getclassmethod(clsid, 0)\n            print(hex(code_off))\n            methodcode = method_code(dex, code_off)\n            methodcode.printf(dex)\n            method_id, code_off = dex.getclassmethod(clsid, virtrualmethod_idx= 0)\n            print(hex(code_off))\n            methodcode = method_code(dex, code_off)\n            methodcode.printf(dex)\n            print(dex.getmethodname(method_id))\n            print(dex.getmethodfullname(method_id))\n            print(dex.getmethodfullname1(method_id))\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeathmemory%2Fdm_dex_parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeathmemory%2Fdm_dex_parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeathmemory%2Fdm_dex_parser/lists"}