The Bitdefender disassembler Python wrapper
Build
Building and installing is easy:
python3 setup.py build
python3 setup.py install
Usage
Use it by importing the pybddisasm module:
import pybddisasm
ret, instr = pybddisasm.nd_decode_ex(code, def_code, def_data, def_stack)
Example
import pybddisasm
code = b"\x55\x48\x8b\x05\xb8\x13\x00\x00"
offset = 0
while offset < len(code):
_, instr = pybddisasm.nd_decode_ex(code[offset:], len(code[offset:]), pybddisasm.ND_CODE_64, pybddisasm.ND_DATA_64)
if instr is None:
break
_, text = pybddisasm.nd_to_text(instr, 0x0)
print(text)
offset += instr.Length
Pip
Use pip to install the package:
pip install pybddisasm
Release files for pybddisasm 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 7.6 MB
Release files / pybddisasm-0.3.0-cp311-cp311-win_amd64.whl
| Download URL | pybddisasm-0.3.0-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 280.8 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
830d52e49a8763b8de28ae37486936b354b04245c076988219ee61a15a7e108f
|
|
BLAKE2b-256 checksum How to use checksums |
70e7f16772aaf4dc5a1fa988ccec08812ab50121e48f52d58999af5a289ec1fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Release files / pybddisasm-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
| Download URL | pybddisasm-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
93d32162c80432fefa78311f95cc6ccb625c4eab8c7e7127604c44228a1a93d7
|
|
BLAKE2b-256 checksum How to use checksums |
f48fa507872ad3420ba1c6cce478e1e49ca4f0f343f856c317ffbfd9ffd6a88c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Release files / pybddisasm-0.3.0-cp310-cp310-win_amd64.whl
| Download URL | pybddisasm-0.3.0-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 280.8 kB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
c556565f5f294aa388e55f03f9fb7b11285771eb620346d641bfdd0c3151b463
|
|
BLAKE2b-256 checksum How to use checksums |
e68b1a6b72b55cc0e52712a944fec1dd7ee9a000b798e0010def9b447ddd89bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Release files / pybddisasm-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
| Download URL | pybddisasm-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
3fc241b4b00c9f7e7092043106e09d320c93495fad4882891bf42cc6aac688da
|
|
BLAKE2b-256 checksum How to use checksums |
3ed11a5ed328973d4801c9178b3f93e51ed30b05be43e876005a29cb473c74d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Release files / pybddisasm-0.3.0-cp39-cp39-win_amd64.whl
| Download URL | pybddisasm-0.3.0-cp39-cp39-win_amd64.whl |
|---|---|
| Size | 280.7 kB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
2f5a4a81003a0cb05e5822d54f5eac63874dc292e81a84ac82de4f0e68c97dd8
|
|
BLAKE2b-256 checksum How to use checksums |
ed47c65f252ab464b94ad492f945ec0cecc91cc847902863b472652898d80871
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Release files / pybddisasm-0.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
| Download URL | pybddisasm-0.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
0d6daac825190cee6196dc0e5fba748ef2ba4d70236754e79b78247df88d56c7
|
|
BLAKE2b-256 checksum How to use checksums |
26136b8837fc2208af65b099f14afd9d9f3ad9cafb265bf487c73ee84bc06136
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Release files / pybddisasm-0.3.0-cp38-cp38-win_amd64.whl
| Download URL | pybddisasm-0.3.0-cp38-cp38-win_amd64.whl |
|---|---|
| Size | 280.7 kB |
| Tags | CPython 3.8 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
8fef0f490055c4aa8b71635074f41f74546eadef17ee650b201b9932e47597bc
|
|
BLAKE2b-256 checksum How to use checksums |
2ba84cfc230e954ea0e7fbff5d4c4595099234624aaf782e1b88a2832c892437
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Release files / pybddisasm-0.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
| Download URL | pybddisasm-0.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.8 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
647337bf3872252972df0ce64e44f7426332323b6ddbb0ece95bb32282ea4a5e
|
|
BLAKE2b-256 checksum How to use checksums |
6570d952e6ddef8853b0677f6e728fdb8e0c23f563e41022cd9194fc0a09ad86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Release files / pybddisasm-0.3.0-cp37-cp37m-win_amd64.whl
| Download URL | pybddisasm-0.3.0-cp37-cp37m-win_amd64.whl |
|---|---|
| Size | 280.4 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Windows x86-64 |
|
SHA-256 checksum How to use checksums |
78db732837951886804303fa64c95b6ca40e3a13e3ab2d06a982e5c5858a8b8e
|
|
BLAKE2b-256 checksum How to use checksums |
1d31e9fe927d5fae3937ae4418a0f29575dccd3aed7bf8520937633b8ebf07fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Release files / pybddisasm-0.3.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
| Download URL | pybddisasm-0.3.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
a3f2e4fdf342866b0091d2797fd4783c83bf43c72efde1e53786d062d1777347
|
|
BLAKE2b-256 checksum How to use checksums |
c121d2f4ba9453703a467ce64a81bff2fe66fef4a53c407d6c5caecec28065eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|