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.2a0.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.2a0-py3-none-any.whl (26.0 kB view details)

Uploaded Python 3

File details

Details for the file ohre-0.0.2a0.tar.gz.

File metadata

  • Download URL: ohre-0.0.2a0.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.2a0.tar.gz
Algorithm Hash digest
SHA256 d8526ba56ed253ee4d436b98745893fcca56e3224b4f2236e72e8e3719f6ea47
MD5 d29ae7fe8e0629835bea146bcd2dc743
BLAKE2b-256 442fda3b4f97a11067ca456c4b5ced7d4783ce3783f3a57413863a0b66e8ea1e

See more details on using hashes here.

File details

Details for the file ohre-0.0.2a0-py3-none-any.whl.

File metadata

  • Download URL: ohre-0.0.2a0-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.2a0-py3-none-any.whl
Algorithm Hash digest
SHA256 38701516ef03bc182c8ad05690f3b516d24b39f7121461a8cfb873601f1ed82c
MD5 64eb3eca7079d73669b27d95498e9456
BLAKE2b-256 2fa1121bb763e803094c48c28ab7342f634f90624174bcf7f8591a59c38335ac

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