bongtrop / hbctool

Hermes Bytecode Reverse Engineering Tool (Assemble/Disassemble Hermes Bytecode)
MIT License
461 stars 81 forks source link

FYI : updates version 84,85,89 and test corrections #23

Open anantshri opened 2 years ago

anantshri commented 2 years ago

Hi @bongtrop Thanks for the nice tool.

I have been working on updating few things here : https://github.com/cyfinoid/hbctool

I see 84,85 support got merged recently hence cant open a clear pull request. Following changes are available in my branch if you want to cherrypick

  1. Version support added 84 (via niosega), 85,89,83
  2. Test cases are now running some fixing was needed
  3. Added a readme on how to add new versions.

Feel free to pick and choose

bongtrop commented 2 years ago

Awesome contribution. I'm working on it. I will merge it soon.

bongtrop commented 2 years ago

I'm working on it at #25.

amirhoseinsb commented 1 year ago

Not Working script for me

[*] Disassemble 'index.android.bundle' to 'test_hasm' path Traceback (most recent call last): File "/home/amir/.local/bin/hbctool", line 8, in sys.exit(main()) File "/home/amir/.local/lib/python3.10/site-packages/hbctool/init.py", line 61, in main disasm(args[''], args['']) File "/home/amir/.local/lib/python3.10/site-packages/hbctool/init.py", line 33, in disasm hbco = hbc.load(f) File "/home/amir/.local/lib/python3.10/site-packages/hbctool/hbc/init.py", line 29, in load assert version in HBC, f"The HBC version ({version}) is not supported." AssertionError: The HBC version (85) is not supported.