This python3 script that attempts to parse arbitrary binary input into x86 assembly code (only a subset of operations supported).
https://github.com/wagoodman/mini-x86-disassembler.git
This python3 script (main.py) attempts to parse arbitrary binary input
into x86 assembly code.
./main.py --linear-sweep -b <path-to-binary-file>
./main.py --recursive-descent -b <path-to-binary-file>
./main.py --linear-sweep --test-examples
./main.py ... -v or ./main ... -vv
retn 16-bit instruction.
-v to your command. Add another -v for more verbosity.
usage: main.py [-h] [-b BINARY] [-v] [--recursive-descent] [--linear-sweep]
[--test-examples] [--test-unit]
optional arguments:
-h, --help show this help message and exit
-b BINARY, --binary BINARY
Disassemble the given binary file.
-v, --verbosity Show verbosity. Add more -v's to show more detail
--recursive-descent Use the recursive descent method.
--linear-sweep Use the linear sweep method.
--test-examples Disassemble the class examples (example1, example2,
ex2)
--test-unit Disassemble unit examples (one instruction at a time)