keystone
keystone copied to clipboard
Keystone assembler framework: Core (Arm, Arm64, Hexagon, Mips, PowerPC, Sparc, SystemZ & X86) + bindings
The 64 bit address gets cut off resulting in wrong bytecode. Here is an example of what's happening: >>> ks = keystone.Ks(keystone.KS_ARCH_X86, keystone.KS_MODE_64) >>> ks.asm("inc dword ptr [0x1456b56dc]", 0xc19b0023, True)...
pop with register memory addresses is not working at all for me. In some failures, no exception is thrown, it just returns an empty result. push seems to work as...
Seeing `KS_ERR_ASM_MNEMONICFAIL` and `KS_ERR_ASM_INVALIDOPERAND` is not particularly helpful if I don't know which mnemonic/operand is causing such a fuss: both which mnemonic/operand is invalid, and ideally a line number would...
Version: 0.9.2 Instruction: ```Python keystone.Ks(keystone.KS_ARCH_ARM64, keystone.KS_MODE_LITTLE_ENDIAN).asm("bl 0xfffffffffffffff0", 0xfffffffffffff000, True)[0] ``` Expected: ```Python b"\xfc\xff\xff\x97" ``` Actual: ```Python b"\xfc\x03\x00\x94" ```
Assembly instruction vsha512h,vsha512h2, vsha512su0 and vsha512su1 haven't been supported yet.
### Description Keystone does not seem to handle instructions with the "o" prefix. The only difference between an "add" and an "addo" instruction for instance is that the OE flag...
``` $ rasm2 -a x86.ks -b 64 "bnd jmp 0x22" ks_asm: (bnd jmp 0x22) Invalid operand (KS_ERR_ASM_INVALIDOPERAND) ks_asm: (bnd jmp 0x22) Invalid operand (KS_ERR_ASM_INVALIDOPERAND) ks_asm: (bnd jmp 0x22) Invalid operand...
```python from keystone import * ks = Ks(KS_ARCH_X86, KS_MODE_64) lol = ks.asm("bnd jmp qword ptr [rip + 0x1ec6b]") print(lol) ``` hmm it throws ```python Traceback (most recent call last): File...
:-)