-
-
Notifications
You must be signed in to change notification settings - Fork 430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request. Encoder from supplied string. #335
Comments
We can keep it as a feature request :-) I already thought about including a basic parser at some point. |
You can also check out this implementation, perhaps it will be enough for your needs: bfd1b12 |
I'm not sure? Can it accept asm string like:
And convert that into bytes/hex? |
When I run Formatter01.exe, I get:
I'm wanting the reverse. I want to take assembly code as a string and convert that into bytes. Bytes that can be printed out as hex. Both in 32 bit and/or in 64 bit.
https://github.com/zyantific/zydis/blob/master/tools/ZydisDisasm.c Basically, a tool that does the same thing only in reverse would be perfect. |
It parses string to encoder request which can be passed directly to the encoder. I've never tried it out and I'm not sure if it's compatible with latest version of the encoder (but I think it should be). Linked commit for some reason has its example code in place of original Formatter example (bit confusing I know). Your output is clearly from the original. |
I'm not seeing going from asm code (as a string) converted to bytes (printed out as hex) in the code. But maybe your right and I'm just being dense or misunderstanding. |
It seems that example supplied just parses the string, so you would have to call |
Sounds like you are probably onto something (I'm just being too air-brained to connect the dots). I'll have to revisit that later when I have some more time to sink my teeth into it. |
I just need it. Is there a solution? |
Is there a way to take a string instruction and convert that to bytes? The encoder does this but not from a supplied string.
For example, if supplied a string containing
inc DWORD PTR [eax]
, the returned/printed data would be67 ff 00
(assuming Windows x86_64)The text was updated successfully, but these errors were encountered: