A console for assemble/disassemble code using capstone/keystone
- Capstone python binding: http://www.capstone-engine.org/documentation.html
- Keystone python binding: http://www.keystone-engine.org/docs/
- ansicolors python module: pip install ansicolors
(ratone)> asm
Assemble instructions
usage: asm [-i INPUT_FILE] [-o OUTPUT_FILE] [-c CODE] [-x]
optional arguments:
-h, --help show this help message and exit
-i INPUT_FILE Input file
-o OUTPUT_FILE Output file
-c CODE Instruction/s
-x Interactive
(ratone)> disas
Disassemble instructions
usage: disas [-h] [-b BASE_ADDR] [-i INPUT_FILE] [-o OUTPUT_FILE]
[-c HEXCODE]
optional arguments:
-h, --help show this help message and exit
-b BASE_ADDR Base address
-i INPUT_FILE Input file
-o OUTPUT_FILE Output file
-c HEXCODE Hex code
(ratone)>
usage: set <opt> <value>
- output: json, string, hex, c, b64
- arch: ppc, x16, x86, x64, ppc64, mips64, sparc, arm_t, arm64, mips32, hexagon, systemz, arm
- syntax: intel, nasm, masm, att