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.1b0.tar.gz (20.1 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.1b0-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ohre-0.0.1b0.tar.gz
  • Upload date:
  • Size: 20.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.13.0 Windows/11

File hashes

Hashes for ohre-0.0.1b0.tar.gz
Algorithm Hash digest
SHA256 11ee828835e7d6ec75e5b0624549e2df49bf35ea8e87fb4097e1899ffd56a310
MD5 07353b1ad6c9c3e4ae0b73bbe54895ee
BLAKE2b-256 f183b5b980f64073eef44bb9d59c480237fa66252563e47e1db81295ddcab61d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ohre-0.0.1b0-py3-none-any.whl
  • Upload date:
  • Size: 22.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.13.0 Windows/11

File hashes

Hashes for ohre-0.0.1b0-py3-none-any.whl
Algorithm Hash digest
SHA256 f7abcf7c5d5ae1e91e274578ff5976f71361f85deb24690ae8d89b38b9b5fcbd
MD5 86edce9b04cabe476c704dc69887fafa
BLAKE2b-256 172c739c2f34da01b279014e853d2d477d1e0763f65cc7ad1926894c69a218b7

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