{"id":13484167,"url":"https://github.com/newdive/uzmap-resource-extractor","last_synced_at":"2025-03-27T16:30:33.085Z","repository":{"id":37405191,"uuid":"245428631","full_name":"newdive/uzmap-resource-extractor","owner":"newdive","description":"apicloud apk的资源解密提取器","archived":false,"fork":false,"pushed_at":"2022-07-13T15:15:36.000Z","size":18248,"stargazers_count":92,"open_issues_count":3,"forks_count":41,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-10-30T18:42:23.129Z","etag":null,"topics":["androidnativeemu","apicloud","python2","python3","reverse-engineering","unicorn","uzmap"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/newdive.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-06T13:36:12.000Z","updated_at":"2024-10-26T07:42:03.000Z","dependencies_parsed_at":"2022-07-13T15:59:20.613Z","dependency_job_id":null,"html_url":"https://github.com/newdive/uzmap-resource-extractor","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/newdive%2Fuzmap-resource-extractor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newdive%2Fuzmap-resource-extractor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newdive%2Fuzmap-resource-extractor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newdive%2Fuzmap-resource-extractor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/newdive","download_url":"https://codeload.github.com/newdive/uzmap-resource-extractor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245882181,"owners_count":20687842,"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":["androidnativeemu","apicloud","python2","python3","reverse-engineering","unicorn","uzmap"],"created_at":"2024-07-31T17:01:20.144Z","updated_at":"2025-03-27T16:30:32.747Z","avatar_url":"https://github.com/newdive.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# uzmap-resource-extractor\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)\n[![Python 3.x](https://img.shields.io/badge/python-3.x-blue.svg)](https://github.com/python/cpython/tree/master)\n\n\u003cbr\u003e\u003cu\u003e用于解密和提取apicloud apk下的资源文件(html, js ,css)\u003c/u\u003e\n### 背景\u0026说明 ###\n本人平时分析这类h5 app的时候，经常需要提取html, css, js等资源文件。  然而目前没有便捷的方法(有些通过xpose hook的方式提取，但比较麻烦)\n\u003cbr\u003e所以我针对同类app分析, 同时也对其中的libsec.so文件进行逆向，发现是使用rc4方式加密，而且密钥可以静态提取，所以写了这个工具方便快速提取资源文件\n\u003cbr\u003e项目的 [resources](https://github.com/newdive/resources) 文件夹中附带了apk和libsec.so的文件样本，供参考分析。 \n\u003cbr\u003e如果后续的加密方式有修改而导致不适用，可以提issue，也特别欢迎各位有志之士添砖加瓦\n\u003cbr\u003e这个工具仅供个人研究学习使用。 其它非法用途所造成的法律责任，一律与本项目无关。\n### Note ###\n\u003e **接入 [AndroidNativeEmu](https://github.com/AeonLucid/AndroidNativeEmu/) ，探索并尝试新的解密思路** \u003cbr\u003e\n\n- ```master``` 分支支持 ```python3.x```\u003cbr\u003e\n- [emu_support](https://github.com/newdive/uzmap-resource-extractor/tree/emu_support) 分支支持 **AndroidNativeEmu 解密方式** \u003cbr\u003e\n- ```python2``` 分支支持 ```python2.7```\u003cbr\u003e\n请根据具体需要选择相应分支\n\n### Setup ###\n先安装项目的依赖\n```\npip install -r requirements.txt\n```\n\n- 支持pycryptodome, 让解密更高效\n\n  ```\n  pip install -r optional-requirements.txt\n  ```\n\n### Usage ###\n```\npython main.py xxx.apk\n```\n支持参数列表通过 -h查看\n```\npython main.py -h\n```\n\n具体用例\n\n- 查看apk中的rc4密钥\n\n  ```python main.py -v xxx.apk ```\n  \n  输出信息说明\n   ```\n        package      : xxx.ooo.xxx              ==\u003e 应用包名\n        uz_version   : 1.3.13                   ==\u003e apicloud engine的版本号\n        encrypted    : False                    ==\u003e 资源是否加密\n        rc4Key       : xxxxxxxxxxxxxxxxxxxx     ==\u003e 资源加密用到的RC4密钥\n    ```\n\n- 解密并提取所有的资源文件(如果不指明输出路径 默认输出到apk所在的文件夹下)\n\n  ```python main.py -o 输出路径 xxx.apk ```\n  \n- 支持批量识别和解密 可以指定文件夹，会自动扫描文件夹下的所有 apicloud apk 并执行识别或解密\n\n   ```python main.py -v targetFolder```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnewdive%2Fuzmap-resource-extractor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnewdive%2Fuzmap-resource-extractor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnewdive%2Fuzmap-resource-extractor/lists"}