|
|
@ -19,6 +19,26 @@ from pybddisasm.bddisasm import *
|
|
|
|
instr = nd_decode_ex2(buff, arch, arch, arch, vendor, current_rip)
|
|
|
|
instr = nd_decode_ex2(buff, arch, arch, arch, vendor, current_rip)
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Example
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```python
|
|
|
|
|
|
|
|
from pybddisasm.bddisasm import *
|
|
|
|
|
|
|
|
from sys import *
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
buff = b"\x55\x48\x8b\x05\xb8\x13\x00\x00"
|
|
|
|
|
|
|
|
offset = 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
while offset < getsizeof(buff):
|
|
|
|
|
|
|
|
instr = nd_decode_ex2(buff[offset:], 64, 64, 64)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if instr is None:
|
|
|
|
|
|
|
|
break
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print(instr.Text)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
offset += instr.Length
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## Pip
|
|
|
|
## Pip
|
|
|
|
|
|
|
|
|
|
|
|
Use pip to install the package:
|
|
|
|
Use pip to install the package:
|
|
|
|