العودة إلى التحديثات
New releaseSep 10, 2026

hermes-decomp v0.2.3

أداة تحليل عكسي قوية تتيح لك هندسة تطبيقات React Native المحمولة عكسيًا عن طريق تحويل ملفاتها المترجمة من Hermes bytecode (.hbc) إلى JavaScript قابل للقراءة.

مشاركة

Hermes Bytecode Decompiler

Build

مفكك تجميع بلغة Rust لـ Hermes bytecode (.hbc)، محرك JavaScript الذي يعمل خلف React Native. يدعم HBC 40 إلى 99.

التثبيت

ملفات تنفيذية جاهزة (Linux / macOS / Windows) من Releases أو Actions:

لاحقة الملفالمنصة
linux-x86_64 / linux-arm64Linux
macos-arm64 / macos-x86_64macOS
windows-x86_64Windows

تتضمن الأرشيفات hermes-decomp و hermes-mcp. للتحقق: shasum -a 256 -c SHA256SUMS.

hermes-decomp update --check      # or --install / --version v0.1.7

من المصدر (Rust 1.70+):

git clone https://github.com/SymbioticSec/hermes-decomp.git
cd hermes-decomp && cargo build --release
# → target/release/hermes-decomp  target/release/hermes-mcp

البدء السريع

hermes-decomp info app.hbc
hermes-decomp disasm app.hbc --function 5 --info --show-offsets
hermes-decomp decompile app.hbc -o out.js          # progress on stderr
hermes-decomp decompile app.hbc --deep -o out.js   # recover more names, slower
hermes-decomp decompile app.hbc --function 42
hermes-decomp tui app.hbc
hermes-decomp xref app.hbc --query "loginWithToken"

Disassembly Example

Decompilation Example

ما الذي يفعله

المجالالأوامر (أبرزها)
القراءةinfo, disasm, decompile, tui, extract, modules, deps
التحليلxref, callgraph, graphviz, closures, debug, dump, bin-diff
أدوات مساعدة لهندسة عكسيةsecrets, frida-hooks
الكتابة (bytecode فقط)emit-hasm, asm, asm-check, patch-string, patch-function, inject-stub, create

الخيارات الكاملة والأمثلة → docs/USAGE.md.

ملاحظات:

  • يستخدم decompile للحزمة الكاملة ذاكرة تخزين مؤقت على القرص .hdcache لإعادة التحميل السريع. مرّر --no-cache للفرض.
  • أدوات الكتابة تقوم بترقيع bytecode / HASM. وهي لا تعيد ترجمة JavaScript المفكك.
  • decompile -o … يطبع مراحل المعالجة على stderr.

MCP والمكتبة

cargo build --release -p hbc-decomp-mcp

المساهمة

راجع CONTRIBUTING.md. يُرجى فتح issue قبل PR.

cargo build --release --workspace && cargo test --workspace

الموارد

الترخيص

MIT. راجع LICENSE.

الفئات