Skip to main content

ohre is a analyze and reverse tool of HarmonyOS APP package.

Project description

OHRE

stars watchers updated time last-commit created time visits license maintained

A Open HarmonyOS app/hap package analyze and REverse tool, compatible with HarmonyOS NEXT. Maybe pronounced like "ōli".

With ohre, you can (or will can) perform the following operations on a HarmonyOS app package (.app or .hap): file operations, information analysis, resource analysis, sensitive information detection, vulnerability detection, reverse analysis, etc.

tag: HarmonyOS, Open HarmonyOS, HarmonyOS NEXT, 鸿蒙 OS, hap, app

Features

OHRE is a full python3 tool to play with HarmonyOS .app and .hap files.

  • .app
  • .hap
  • pack.json
  • module.json
  • resources analysis: resources.index, resources\base\*, etc
  • Code file leakage detection: pattern of file names in a specific path, either in white or black
  • Built-in and self-defined vulnerability and sensitive information detection rules based on yara
  • xxx.abc (in progress)
  • xxx.so (in progress)

Because it is still under testing, the debug log will be placed in pwd by default, which is one of the requirements for creating a new issue.

Installation

As far as we know ohre is platform-independent, which means it can be used under Windows, Linux, and macOS with any CPU architecture.

pip install yara-python
pip install ohre # install from pip release version # for all users

# install as a python package locally # for debug and developers
pip install -e . # in the same folder as setup.py and .git

How to Use

ohre_demo.py is a demo that shows almost all usages. Check it and then maybe check the wiki(TBD).

python ohre_demo.py xxx.hap # run demo with HarmonyOS hap
python ohre_demo.py xxx.app # run demo with HarmonyOS app
python ohre_demo.py xxx.hap --resource_analysis # run demo with HarmonyOS hap and resource analysis

Contacts

Please new an issue, participate in the discussion or make a PR.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ohre-0.0.1rc0.tar.gz (24.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ohre-0.0.1rc0-py3-none-any.whl (26.0 kB view details)

Uploaded Python 3

File details

Details for the file ohre-0.0.1rc0.tar.gz.

File metadata

  • Download URL: ohre-0.0.1rc0.tar.gz
  • Upload date:
  • Size: 24.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.9.6 Darwin/24.1.0

File hashes

Hashes for ohre-0.0.1rc0.tar.gz
Algorithm Hash digest
SHA256 1d10357b08309be24406ed4f22efce5c695d54c6e73ebec4d1bdc6727d728d73
MD5 7b3b307ac86910530a3d53dff42415fe
BLAKE2b-256 cb5598a113b9b1860107df8f58aa6b6051a1d617863216925c7e6365cda90b35

See more details on using hashes here.

File details

Details for the file ohre-0.0.1rc0-py3-none-any.whl.

File metadata

  • Download URL: ohre-0.0.1rc0-py3-none-any.whl
  • Upload date:
  • Size: 26.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.9.6 Darwin/24.1.0

File hashes

Hashes for ohre-0.0.1rc0-py3-none-any.whl
Algorithm Hash digest
SHA256 51b04b021167fec9c0f870a712d5a2bc75548a0e23270d77917797f18058982c
MD5 52007d3e36bb24d415be66e8db005cc9
BLAKE2b-256 d4bc195c7344fe012c76ba85e3895cbf1761bdd20cd9756daca26e4a6ebf742f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page