{"id":13717377,"url":"https://github.com/bongtrop/hbctool","last_synced_at":"2026-03-02T10:07:43.343Z","repository":{"id":41420082,"uuid":"328308991","full_name":"bongtrop/hbctool","owner":"bongtrop","description":"Hermes Bytecode Reverse Engineering Tool (Assemble/Disassemble Hermes Bytecode)","archived":false,"fork":false,"pushed_at":"2023-12-10T21:12:57.000Z","size":36562,"stargazers_count":543,"open_issues_count":15,"forks_count":90,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-11-13T22:28:52.440Z","etag":null,"topics":["hermes-bytecode","hermes-engine","javascript-engine","react-native","reverse-engineering"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bongtrop.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-10T05:15:31.000Z","updated_at":"2025-11-12T09:14:09.000Z","dependencies_parsed_at":"2024-11-14T05:41:53.502Z","dependency_job_id":null,"html_url":"https://github.com/bongtrop/hbctool","commit_stats":{"total_commits":38,"total_committers":7,"mean_commits":5.428571428571429,"dds":0.5,"last_synced_commit":"bfa25404f7ad4691041e19a0c3525cf43b607b82"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/bongtrop/hbctool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bongtrop%2Fhbctool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bongtrop%2Fhbctool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bongtrop%2Fhbctool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bongtrop%2Fhbctool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bongtrop","download_url":"https://codeload.github.com/bongtrop/hbctool/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bongtrop%2Fhbctool/sbom","scorecard":{"id":247607,"data":{"date":"2025-08-11","repo":{"name":"github.com/bongtrop/hbctool","commit":"389b351bfdd988e93da5cce1a9e3bfd860548e7a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Code-Review","score":3,"reason":"Found 5/16 approved changesets -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":6,"reason":"binaries present in source code","details":["Warn: binary detected: hbctool/hbc/hbc59/example/index.android.bundle:1","Warn: binary detected: hbctool/hbc/hbc62/example/index.android.bundle:1","Warn: binary detected: hbctool/hbc/hbc74/example/index.android.bundle:1","Warn: binary detected: hbctool/hbc/hbc76/example/index.android.bundle:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 20 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}}]},"last_synced_at":"2025-08-17T07:53:55.263Z","repository_id":41420082,"created_at":"2025-08-17T07:53:55.263Z","updated_at":"2025-08-17T07:53:55.263Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29998225,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T09:59:02.300Z","status":"ssl_error","status_checked_at":"2026-03-02T09:59:02.001Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["hermes-bytecode","hermes-engine","javascript-engine","react-native","reverse-engineering"],"created_at":"2024-08-03T00:01:21.447Z","updated_at":"2026-03-02T10:07:43.306Z","avatar_url":"https://github.com/bongtrop.png","language":"Python","funding_links":[],"categories":["Reverse Engineering Tools"],"sub_categories":["Metadata Tools"],"readme":"# hbctool \n\n[![Python 3.x](https://img.shields.io/badge/python-3.x-yellow.svg)](https://python.org) [![PyPI version](https://badge.fury.io/py/hbctool.svg)](https://badge.fury.io/py/hbctool) [![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](/LICENSE)\n\nA command-line interface for disassembling and assembling the Hermes Bytecode.\n\nSince the React Native team created their own JavaScript engine (named Hermes) for running the React Native application, the JavaScript source code is often compiled to the Hermes bytecode. In the penetration test project, I found that some React Native applications have already been migrated to the Hermes engine. It is really head for me to analyze or patch those applications. Therefore, I created hbctool for helping any pentester to test the Hermes bytecode.\n\n\u003e [Hermes](https://hermesengine.dev/) is an open-source JavaScript engine optimized for running React Native apps on Android. For many apps, enabling Hermes will result in improved start-up time, decreased memory usage, and smaller app size. At this time Hermes is an opt-in React Native feature, and this guide explains how to enable it.\n\nSpecial thanks to [ErbaZZ](https://github.com/ErbaZZ) and [Jusmistic](https://github.com/Jusmistic) for helping me research and develop this tool.\n\nFor more information, please visit:\n\n[https://suam.wtf/posts/react-native-application-static-analysis-en/](https://suam.wtf/posts/react-native-application-static-analysis-en/)\n\n## Screenshot\n\n![hbctool Example](/image/hbctool_example.gif)\n\nThis video with MP4 format can be found at [/image/hbctool_example.mp4](/image/hbctool_example.mp4).\n\n## Installation\n\nTo install hbctool, simply use pip:\n\n```\npip install hbctool\n```\n\n## Usage\n\nPlease run `hbctool --help` to show the usage.\n\n```\nhbctool --help   \nA command-line interface for disassembling and assembling\nthe Hermes Bytecode.\n\nUsage:\n    hbctool disasm \u003cHBC_FILE\u003e \u003cHASM_PATH\u003e\n    hbctool asm \u003cHASM_PATH\u003e \u003cHBC_FILE\u003e\n    hbctool --help\n    hbctool --version\n\nOperation:\n    disasm              Disassemble Hermes Bytecode\n    asm                 Assemble Hermes Bytecode\n\nArgs:\n    HBC_FILE            Target HBC file\n    HASM_PATH           Target HASM directory path\n\nOptions:\n    --version           Show hbctool version\n    --help              Show hbctool help manual\n\nExamples:\n    hbctool disasm index.android.bundle test_hasm\n    hbctool asm test_hasm index.android.bundle\n```\n\n\u003e For Android, the HBC file normally locates at `assets` directory with `index.android.bundle` filename.\n\n## Support\n\nhbctool currently supports the following Hermes Bytecode version:\n\n- [Hermes Bytecode version 59](/hbctool/hbc/hbc59/)\n- [Hermes Bytecode version 62](/hbctool/hbc/hbc62/)\n- [Hermes Bytecode version 74](/hbctool/hbc/hbc74/)\n- [Hermes Bytecode version 76](/hbctool/hbc/hbc76/)\n\n## Contribution\n\nFeel free to create an issue or submit the merge request. Anyway you want to contribute this project. I'm very happy about it.\n\nHowever, please run the unit test before submiting the pull request.\n\n```\ncd hbctool\npython test.py\n```\n\nI use poetry to build this tool. To build it yourself, simply execute:\n\n1. `poetry install`\n2. `poetry build`\n4. `pip install --force-reinstall dist/hbctool-\u003cVERSION\u003e-py3-none-any.whl`\n\n## Next Step\n\n- Add the other Hermes bytecode versions\n- Create a class abstraction\n- Support overflow patching\n- Do all TODO, NOTE, FIXME in source code\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbongtrop%2Fhbctool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbongtrop%2Fhbctool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbongtrop%2Fhbctool/lists"}