Code Monkey home page Code Monkey logo

hermes-dec's People

Contributors

p1-mmr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hermes-dec's Issues

How To Assemble?

There's No Option To Re Assemble & Recompiler
Fix This

Tried hbctool to reassemble

Error:
assert os.path.exists(f"{path}/metadata.json"), f"metadata.json not found."
AssertionError: metadata.json not found

SHA1 AssertionError

I've run ~/hermes-dec/parsers/hbc_file_parser.py file.js.hbc and it seems, it always returns the following error

  File "~/hermes-dec/parsers/hbc_file_parser.py", line 807, in <module>
    hbc_reader.read_whole_file(file_descriptor)
  File "~/hermes-dec/parsers/hbc_file_parser.py", line 763, in read_whole_file
    self.read_header_from_buffer() # Defines self.header
  File "~/hermes-dec/parsers/hbc_file_parser.py", line 488, in read_header_from_buffer
    assert sha1(file_data[:-SHA1_NUM_BYTES]).digest() == file_data[-SHA1_NUM_BYTES:]
AssertionError
  • find confirms it is Hermes JavaScript bytecode, version 90.
  • I'm on Python 3.10.5.

Recompile Options

Hello developers,

I would like to know if you have any option to return the code to index.android.boundle after changes in the hasm file ?

TypeError on Hermes version 94

Logs:

[...]
Address 256941: Line 17179891934 - Column 38654917786 - Statement 445715
  Address 256946: Line 17179891934 - Column 38654917784 - Statement 445715
  Address 256946: Line 19327375581 - Column 38654917789 - Statement 445715
  Address 256926: Line 19327375581 - Column 42949885084 - Statement 445715
  Address 256940: Line 19327375581 - Column 42949885115 - Statement 445715
Traceback (most recent call last):
  File "/home/kali/.local/bin/hbc-file-parser", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/kali/.local/share/pipx/venvs/hermes-dec/lib/python3.11/site-packages/hermes_dec/parsers/hbc_file_parser.py", line 915, in main
    print_debug_info(hbc_reader.sources_data_storage)
  File "/home/kali/.local/share/pipx/venvs/hermes-dec/lib/python3.11/site-packages/hermes_dec/parsers/debug_info_parser.py", line 64, in print_debug_info
    current_statement += statement_delta
TypeError: unsupported operand type(s) for +=: 'int' and 'NoneType'

Project RiP? ๐Ÿค”

When u add Reassembler option? Or Tell A Method How To Reassemble? ๐Ÿฅฒ
This disassembler function better than HBC TOOL.

Typo in README.md

Hello,

I wanted to reach out and make you aware of a typo I noticed in the file README.md:

~/hermes-dec/decompiler/hbc_decompiler.py assets/index.android.bundle /tmp/my_output_file.js

The folder which holds the decompilation tools is currently "decompilation", not "decompiler". As such, the command could be updated as follows:

~/hermes-dec/decompilation/hbc_decompiler.py assets/index.android.bundle /tmp/my_output_file.js

A very small issue overall, but I figured it may be worth bringing up.

Thank you, and I appreciate the hard work spent developing this tool!

character maps to <undefined> error on version 84

The full error message is UnicodeEncodeError: 'charmap' codec can't encode character '\u2502' in position 68: character maps to <undefined> which happens while printing instructions. As from the readme, you tested on the same version and it seems you have it worked. Any suggestions?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.