Python client for MalwareDB
Project description
Malware DB Python Client
This is a Python module for interacting with an instance of Malware DB.
Installation
Assuming you already have Malware DB checked out:
python3 -m venv mdb-venv
source mdb-venv/bin/activate
pip install maturin
cd client-py
maturin develop
Features
If using this crate with another library, be sure to use the rust_lib
feature flag to avoid creating the Malware DB client module type. This could be useful for reusing the functions defined in this crate with another Python module.
Use
- Import the module:
from malwaredb import MalwareDBClient
- Create a client object from one of three ways:
MalwareDBClient.from_file()
to use a configuration fileMalwareDBClient()
to have the client library find a configuration fileMalwareDBClient.connect(url, api_key, [cert_path])
to provide the URL, API key, and optional path for a certificate for encrypted communicationMalwareDBClient.login(url, username, password, save, [cert_path])
to provide the URL, user name, password, whether to save the configuration, and optional path for a certificate for encrypted communication
- Client functionality:
.get_file_bytes()
get a file from Malware DB.server_info()
get server information.submit_file()
submit a file to Malware DB.labels()
get available labels for samples.whoami()
get information about the user's account
- CaRT functionality:
malwaredb.cart.create_cart()
encodes bytes into aCaRT
bytesmalwaredb.cart.decode_cart()
decodesCaRT
bytes back into the original binary long with header and footer data. Seeclient-py/py_test/cart.py
.- Current limitations:
create_cart()
doesn't allow setting custom fields.decode_cart()
will not be able to return fields which aren't plain float, integer, or string types.
- See cart as an alternative
CaRT
module which is probably more feature-rich.
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
Built Distributions
File details
Details for the file malwaredb-0.1.0-cp313-cp313t-musllinux_1_2_x86_64.whl
.
File metadata
- Download URL: malwaredb-0.1.0-cp313-cp313t-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 2.4 MB
- Tags: CPython 3.13t, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
4d62f0bc1b6cf8d7999ee27ff962328feced73d73868a231d3cedfc614ba661e
|
|
MD5 |
e9a0ba9713bd15061ddaed5e369f4fb6
|
|
BLAKE2b-256 |
f54d00602f4055b873c409e9e687d647da4c310761000ef3c9ab158a4fcd45ab
|
File details
Details for the file malwaredb-0.1.0-cp313-cp313t-musllinux_1_2_ppc64le.whl
.
File metadata
- Download URL: malwaredb-0.1.0-cp313-cp313t-musllinux_1_2_ppc64le.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.13t, musllinux: musl 1.2+ ppc64le
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
5e00880c012a4b181f6bd4c9a74ad455c69a3eda451c5e8166887d08848fd337
|
|
MD5 |
dd665b2f26904e3405a8b92a5d81c746
|
|
BLAKE2b-256 |
e881350dcc933878ef3ca81ad41b8f668b5dddd420782720da998d73ac0d3276
|
File details
Details for the file malwaredb-0.1.0-cp313-cp313t-musllinux_1_2_aarch64.whl
.
File metadata
- Download URL: malwaredb-0.1.0-cp313-cp313t-musllinux_1_2_aarch64.whl
- Upload date:
- Size: 2.2 MB
- Tags: CPython 3.13t, musllinux: musl 1.2+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
ad300f5687bd4ae7042b5614d8a406618750f71c869d8dc70d06a2a5c36da47f
|
|
MD5 |
fcc1690ee8583ba201eb2a05df070735
|
|
BLAKE2b-256 |
a395e4996ee4db752ca248de3e902ab1ec82ab8a8a60a170bbbf53c71764a314
|
File details
Details for the file malwaredb-0.1.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: malwaredb-0.1.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.2 MB
- Tags: CPython 3.13t, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
2bdbf2f4e5a54b8378a08f3fa3568bb0f3c0def78987658f6e21e8961709113c
|
|
MD5 |
ded16f007eee86128ebbd6fcf5f1b686
|
|
BLAKE2b-256 |
fc7698b8daeb745d58bef69020d071f721202f49504b3e2485919f03b07a6f01
|
File details
Details for the file malwaredb-0.1.0-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
.
File metadata
- Download URL: malwaredb-0.1.0-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.13t, manylinux: glibc 2.17+ ppc64le
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
cd5ea70c94fe86349c59d460d03dc3fc0fbf1d5264eb914d94803e0270839263
|
|
MD5 |
f9d68dfc1c44ec0c30f7041994a57eec
|
|
BLAKE2b-256 |
7593c88ce42fd31c4076edc155324be0d9dc9bc4b7c2bd9a80170aed6e538abe
|
File details
Details for the file malwaredb-0.1.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: malwaredb-0.1.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.13t, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
67030c0ed17202bcb0004562253acb2e57288cf130c4050d4a999db1e2524c40
|
|
MD5 |
ae9716a1f79c8962fb7e5adf060470d5
|
|
BLAKE2b-256 |
8ae4c249e85d4a163627c8cd081102291acb38e2caff764dd51713b6dfb48dcf
|
File details
Details for the file malwaredb-0.1.0-cp313-abi3-win_arm64.whl
.
File metadata
- Download URL: malwaredb-0.1.0-cp313-abi3-win_arm64.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.13+, Windows ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
217aa80082823ff6f48770ee6105547681aabd10ee9a73ee3c2a76e00bfd0e0f
|
|
MD5 |
8b7210075fbf388ac93d289437de3213
|
|
BLAKE2b-256 |
017197658878cc967643ce08ae80202e1e3249486aa19200324d05bf287a4263
|
File details
Details for the file malwaredb-0.1.0-cp313-abi3-win_amd64.whl
.
File metadata
- Download URL: malwaredb-0.1.0-cp313-abi3-win_amd64.whl
- Upload date:
- Size: 2.1 MB
- Tags: CPython 3.13+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
2d57128b872af2f4206b51ab81c509ccf75b1bd2ed1e67a5a9185e071773840f
|
|
MD5 |
6d8ae7fa4d2d73bd0b1fb4c793ab5f43
|
|
BLAKE2b-256 |
268dc9da3307cd01d38c91faf4306f05f2969b9bc30ebc3f442376ae861034ba
|
File details
Details for the file malwaredb-0.1.0-cp313-abi3-win32.whl
.
File metadata
- Download URL: malwaredb-0.1.0-cp313-abi3-win32.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.13+, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
d5c019fd7b45ad4e381597bfda49012ccece0ec0e44679ea2339b0a498505db8
|
|
MD5 |
7be0bfd8acb1daa98b18999fdb2b6834
|
|
BLAKE2b-256 |
cb9765f8795eff20e29504390e6b03d2e97aa768371a136e791143e083e96f5b
|
File details
Details for the file malwaredb-0.1.0-cp313-abi3-macosx_11_0_arm64.whl
.
File metadata
- Download URL: malwaredb-0.1.0-cp313-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.13+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
8066e997ce4ff83f06f0ad75438ea353262e77e4cf594eb5815bb4a26cb9dbcb
|
|
MD5 |
0ed01167018d31b484a03b7747caca90
|
|
BLAKE2b-256 |
23443e75f3dedd9c62ce7df511d6d5ee8f240c56218b46ded1d4b60aebbbdca0
|
File details
Details for the file malwaredb-0.1.0-cp313-abi3-macosx_10_12_x86_64.whl
.
File metadata
- Download URL: malwaredb-0.1.0-cp313-abi3-macosx_10_12_x86_64.whl
- Upload date:
- Size: 2.1 MB
- Tags: CPython 3.13+, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
3722ace51dc7029bddd15b834c7ea17e179e658da55cab0572f080c66c6ccfd8
|
|
MD5 |
08567ce262a09ed1a94a011f42c584d9
|
|
BLAKE2b-256 |
29eb3313b155b755272e9c619b59db151ce3f1a04fd8f46007da93a1d2cba951
|
File details
Details for the file malwaredb-0.1.0-cp310-abi3-musllinux_1_2_x86_64.whl
.
File metadata
- Download URL: malwaredb-0.1.0-cp310-abi3-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 2.4 MB
- Tags: CPython 3.10+, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
595c6461fe2507f4d07ce314d3b9dd01c0f3777cd439dd75fe199db42b0889e8
|
|
MD5 |
e116fdfb6440b9634eefc22e0ff7f82b
|
|
BLAKE2b-256 |
c42fad96021918ae13317da5602a201bc161a4eb45450320553a37460cd126d2
|
File details
Details for the file malwaredb-0.1.0-cp310-abi3-musllinux_1_2_ppc64le.whl
.
File metadata
- Download URL: malwaredb-0.1.0-cp310-abi3-musllinux_1_2_ppc64le.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.10+, musllinux: musl 1.2+ ppc64le
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
7e388e4932af0dee48207fd0ea13cc1c0dec328ef6035ae5625bf1b21969fc8a
|
|
MD5 |
eef4e14988a78c4fe492b080378bb0ae
|
|
BLAKE2b-256 |
e467a46744b60a49f5a4a86286b5dfa556ca2119176f8c51682ca283ae265748
|
File details
Details for the file malwaredb-0.1.0-cp310-abi3-musllinux_1_2_aarch64.whl
.
File metadata
- Download URL: malwaredb-0.1.0-cp310-abi3-musllinux_1_2_aarch64.whl
- Upload date:
- Size: 2.2 MB
- Tags: CPython 3.10+, musllinux: musl 1.2+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
80d387f7e73d05f33ffb8c26549a254f7763a6af053cb6cde5a565a187054280
|
|
MD5 |
f19ed843bea9c33343cee2c1d0696348
|
|
BLAKE2b-256 |
9f79a1e0c9f5cdbb34640c0ddecdbb003a827938214ba30c1753b831d18a77cb
|
File details
Details for the file malwaredb-0.1.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: malwaredb-0.1.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.2 MB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
4bd7e5f52cafbee6fea193b3f0a4b6cbb691a7cf43f146a88a214c768e33e0ac
|
|
MD5 |
832dbf45c239fcb3db429c38cbd205b5
|
|
BLAKE2b-256 |
3f078dafe5a02680b8d95d90b9b2d8a1c1242b967bfb3e234ea780a1eb4b5863
|
File details
Details for the file malwaredb-0.1.0-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
.
File metadata
- Download URL: malwaredb-0.1.0-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ ppc64le
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
0e5addcab8af7c9dfdba4e1899fdfd52c8409f4735df6e65882590998a4969e6
|
|
MD5 |
d3aec05dd0833ae0133c8a1bc5221dee
|
|
BLAKE2b-256 |
9f09c8117a8c21c9f642e4348ac6da768d247f297c251fc5f31e2a7c55759d68
|
File details
Details for the file malwaredb-0.1.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: malwaredb-0.1.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 2.1 MB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
6a8fbe004017a5a9015e62befcdce933863bb367a9bdc4c383e5ade02f4735e7
|
|
MD5 |
558ae865545664b22b20200569e4ad5e
|
|
BLAKE2b-256 |
f36fb2aca9aeeaf9888c2653f94047e0d32ef1138bf1c2cd210e113d4da55790
|