The Bitdefender disassembler Python wrapper
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Close
Hashes for pybddisasm-0.3.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 830d52e49a8763b8de28ae37486936b354b04245c076988219ee61a15a7e108f |
|
MD5 | a28137c8f1b4c45d2bac173dc871c070 |
|
BLAKE2b-256 | 70e7f16772aaf4dc5a1fa988ccec08812ab50121e48f52d58999af5a289ec1fc |
Close
Hashes for pybddisasm-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93d32162c80432fefa78311f95cc6ccb625c4eab8c7e7127604c44228a1a93d7 |
|
MD5 | 31615e9e255dc5fc0f1421f8c4631301 |
|
BLAKE2b-256 | f48fa507872ad3420ba1c6cce478e1e49ca4f0f343f856c317ffbfd9ffd6a88c |
Close
Hashes for pybddisasm-0.3.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c556565f5f294aa388e55f03f9fb7b11285771eb620346d641bfdd0c3151b463 |
|
MD5 | 37d5cd127d74555c297fc9f32895030e |
|
BLAKE2b-256 | e68b1a6b72b55cc0e52712a944fec1dd7ee9a000b798e0010def9b447ddd89bb |
Close
Hashes for pybddisasm-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fc241b4b00c9f7e7092043106e09d320c93495fad4882891bf42cc6aac688da |
|
MD5 | 9b1d78ff74d16545bce53cd891953396 |
|
BLAKE2b-256 | 3ed11a5ed328973d4801c9178b3f93e51ed30b05be43e876005a29cb473c74d3 |
Close
Hashes for pybddisasm-0.3.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f5a4a81003a0cb05e5822d54f5eac63874dc292e81a84ac82de4f0e68c97dd8 |
|
MD5 | 25bc9a2a5348543c97bf6c25a446d85a |
|
BLAKE2b-256 | ed47c65f252ab464b94ad492f945ec0cecc91cc847902863b472652898d80871 |
Close
Hashes for pybddisasm-0.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d6daac825190cee6196dc0e5fba748ef2ba4d70236754e79b78247df88d56c7 |
|
MD5 | 191a4c900047443e831fcf2285e48c82 |
|
BLAKE2b-256 | 26136b8837fc2208af65b099f14afd9d9f3ad9cafb265bf487c73ee84bc06136 |
Close
Hashes for pybddisasm-0.3.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fef0f490055c4aa8b71635074f41f74546eadef17ee650b201b9932e47597bc |
|
MD5 | 6fea749c9c3ae03805d025ffd859943c |
|
BLAKE2b-256 | 2ba84cfc230e954ea0e7fbff5d4c4595099234624aaf782e1b88a2832c892437 |
Close
Hashes for pybddisasm-0.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 647337bf3872252972df0ce64e44f7426332323b6ddbb0ece95bb32282ea4a5e |
|
MD5 | a6a2656b81e8334bd8f20774781dd2a6 |
|
BLAKE2b-256 | 6570d952e6ddef8853b0677f6e728fdb8e0c23f563e41022cd9194fc0a09ad86 |
Close
Hashes for pybddisasm-0.3.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78db732837951886804303fa64c95b6ca40e3a13e3ab2d06a982e5c5858a8b8e |
|
MD5 | 3435fe7bbecdce8ada0a584c8b7131a3 |
|
BLAKE2b-256 | 1d31e9fe927d5fae3937ae4418a0f29575dccd3aed7bf8520937633b8ebf07fd |
Close
Hashes for pybddisasm-0.3.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3f2e4fdf342866b0091d2797fd4783c83bf43c72efde1e53786d062d1777347 |
|
MD5 | 60c55a94d3b32de7bc70fdcd57c8671a |
|
BLAKE2b-256 | c121d2f4ba9453703a467ce64a81bff2fe66fef4a53c407d6c5caecec28065eb |