Python bindings for Detect It Easy (DIE).
Project description
DetectItEasy-Python
Native Python 3.8+ bindings for @horsicq's Detect-It-Easy
Install
From PIP
The easiest and recommended installation is through pip
.
pip install die-python
Using Git
git clone https://github.com/calladoum-elastic/die-python
cd die-python
Install Qt into the build
. It can be easily installed using aqt
as follow (here with Qt version 6.6.2):
python -m pip install aqtinstall --user -U
python -m aqt install-qt -O ./build linux desktop 6.6.2 gcc_64 # linux only
python -m aqt install-qt -O ./build windows desktop 6.6.2 win64_msvc2019_64 # windows only
python -m aqt install-qt -O ./build mac desktop 6.6.2 clang_64 # mac only
Then you can install the package
python -m pip install . --user -U
Quick start
import die, pathlib
print(die.scan_file("c:/windows/system32/ntdll.dll", die.ScanFlags.Deepscan))
'PE64'
print(die.scan_file("../upx.exe", die.ScanFlags.RESULT_AS_JSON, str(die.database_path/'db') ))
{
"detects": [
{
"filetype": "PE64",
"parentfilepart": "Header",
"values": [
{
"info": "Console64,console",
"name": "GNU linker ld (GNU Binutils)",
"string": "Linker: GNU linker ld (GNU Binutils)(2.28)[Console64,console]",
"type": "Linker",
"version": "2.28"
},
{
"info": "",
"name": "MinGW",
"string": "Compiler: MinGW",
"type": "Compiler",
"version": ""
},
{
"info": "NRV,brute",
"name": "UPX",
"string": "Packer: UPX(4.24)[NRV,brute]",
"type": "Packer",
"version": "4.24"
}
]
}
]
}
for db in die.databases():
print(db)
C:\Users\User\AppData\Roaming\Python\Python312\site-packages\die\db\db\ACE
C:\Users\User\AppData\Roaming\Python\Python312\site-packages\die\db\db\APK\PackageName.1.sg
C:\Users\User\AppData\Roaming\Python\Python312\site-packages\die\db\db\APK\SingleJar.3.sg
C:\Users\User\AppData\Roaming\Python\Python312\site-packages\die\db\db\APK\_APK.0.sg
C:\Users\User\AppData\Roaming\Python\Python312\site-packages\die\db\db\APK\_init
C:\Users\User\AppData\Roaming\Python\Python312\site-packages\die\db\db\Archive\_init
C:\Users\User\AppData\Roaming\Python\Python312\site-packages\die\db\db\archive-file
C:\Users\User\AppData\Roaming\Python\Python312\site-packages\die\db\db\arj
C:\Users\User\AppData\Roaming\Python\Python312\site-packages\die\db\db\Binary\Amiga loadable.1.sg
C:\Users\User\AppData\Roaming\Python\Python312\site-packages\die\db\db\Binary\archive.7z.1.sg
[...]
Licenses
Released under Apache 2.0 License and integrates the following repositories:
- Detect-It-Easy: MIT license
- die_library: MIT license
- qt: LGPL license
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 die_python-0.1.0-cp312-abi3-win_amd64.whl
.
File metadata
- Download URL: die_python-0.1.0-cp312-abi3-win_amd64.whl
- Upload date:
- Size: 12.7 MB
- Tags: CPython 3.12+, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1a6932a1fdda99f37676d7d3925595eb44f362632f2168163f14f5637f2734a |
|
MD5 | e43828b16294cf344534b67b522e5d2a |
|
BLAKE2b-256 | 6b38bd6680cb70bda9a72ce33fc712c7fedb9a1b6cc2a38200a2583efbc865f3 |
File details
Details for the file die_python-0.1.0-cp312-abi3-manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: die_python-0.1.0-cp312-abi3-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 62.0 MB
- Tags: CPython 3.12+, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec8756cd695415b0fe8eccb6b2475ba9bff1a5f677dc1e845325ceed7e7c2512 |
|
MD5 | 78c88099a5c842581791b03718954417 |
|
BLAKE2b-256 | e6f605232556517dfe283db1f035829cabc9c05d874354333b5027fd70423d53 |
File details
Details for the file die_python-0.1.0-cp312-abi3-macosx_13_0_x86_64.whl
.
File metadata
- Download URL: die_python-0.1.0-cp312-abi3-macosx_13_0_x86_64.whl
- Upload date:
- Size: 4.8 MB
- Tags: CPython 3.12+, macOS 13.0+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef51d19d7d91a8bd65abf56ff01adff6cc5289fd8ada2c4362398a76d7d490f4 |
|
MD5 | 0ecb02ffe7be2b5b1c86b9657181c4df |
|
BLAKE2b-256 | a17f608028ff106ea701836abac0628b6926a98f43f540639932e569872cf135 |
File details
Details for the file die_python-0.1.0-cp311-cp311-win_amd64.whl
.
File metadata
- Download URL: die_python-0.1.0-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 12.7 MB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 215896714c97b8b679685d2593afe0508f7af234630b0e591f5ad5ca133106b6 |
|
MD5 | 9feddee8323bbc604c566b79a1de6ec0 |
|
BLAKE2b-256 | 3ac88e737a795a04edd4fd096be6676f6e167a79200396e0b8a595d72a7c495d |
File details
Details for the file die_python-0.1.0-cp311-cp311-manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: die_python-0.1.0-cp311-cp311-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 62.0 MB
- Tags: CPython 3.11, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a0b9a46f8007d77939415422d573c5e659ce712b6cea2ed9f2c825580073ba4 |
|
MD5 | 2460abeca603671212d75195ca0fd5e8 |
|
BLAKE2b-256 | 894465ff9941fff91190197645c206f194cb435314de2328aab7608d57167a32 |
File details
Details for the file die_python-0.1.0-cp311-cp311-macosx_13_0_x86_64.whl
.
File metadata
- Download URL: die_python-0.1.0-cp311-cp311-macosx_13_0_x86_64.whl
- Upload date:
- Size: 4.8 MB
- Tags: CPython 3.11, macOS 13.0+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e4d49917ab727f3e89e42713b0b71ce5e45e29c1ad7885d5a92d2a5555fde40 |
|
MD5 | 73ab773f0254e95ab262499b87cc6e2d |
|
BLAKE2b-256 | 927f262118d1bfa02ef04aa0eef30381a1f9832ebb46a08e4f9f959254a18158 |
File details
Details for the file die_python-0.1.0-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: die_python-0.1.0-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 12.7 MB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4293a7ef32ff539db9abb011192b1ac007229ebb4f5f70cc09902ceea4a2635b |
|
MD5 | 70997daed05624bbbf418e0d499244fa |
|
BLAKE2b-256 | 5a0fbbc90dae172826d5e18241408ae93a98ce42d8bbb69a5fadba30afd9d973 |
File details
Details for the file die_python-0.1.0-cp310-cp310-manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: die_python-0.1.0-cp310-cp310-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 62.0 MB
- Tags: CPython 3.10, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 613b9edba2337179df1b52ea97dfdf2ba5da4da1864a3887ec098ffd274540a5 |
|
MD5 | f7f8077b99900b3381dd143a7b4e301f |
|
BLAKE2b-256 | b584dbaa740659a53a0a9fb9ac56d00eaeef911963e00acac07b9695b0bb2cca |
File details
Details for the file die_python-0.1.0-cp310-cp310-macosx_13_0_x86_64.whl
.
File metadata
- Download URL: die_python-0.1.0-cp310-cp310-macosx_13_0_x86_64.whl
- Upload date:
- Size: 4.8 MB
- Tags: CPython 3.10, macOS 13.0+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | afd9ccfb75adae7e785ac52287b6a017d31a46285cb64e060d6a2a34ad0c381c |
|
MD5 | 2e2ead34f1ed034fff64cd4e4539933a |
|
BLAKE2b-256 | 4265785a2528544392bcbb0b30fd8df47f52e3f7140defe00732663476d42b42 |
File details
Details for the file die_python-0.1.0-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: die_python-0.1.0-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 12.7 MB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1013431cc76e9de762f0d7c375699b7a5d6ba43cd812664fa9d891300476ba26 |
|
MD5 | be1fd769e5500c402b508f685954e48c |
|
BLAKE2b-256 | 069fe3d5e6d8f5cdcf835d35141008e2d678bf7929fb2471aeca9f16ea76cd94 |
File details
Details for the file die_python-0.1.0-cp39-cp39-manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: die_python-0.1.0-cp39-cp39-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 62.0 MB
- Tags: CPython 3.9, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6babc19fac759724b316bc1ee4d23ce03235c4aac9dccfb6f174281ebfd353c5 |
|
MD5 | 5328b60d4a06b5d63ad75e15bd4f3fb9 |
|
BLAKE2b-256 | 199fe79fec2684d94702df5d1b7d644394d62f249b72b7732eab34f66ac05e65 |
File details
Details for the file die_python-0.1.0-cp39-cp39-macosx_13_0_x86_64.whl
.
File metadata
- Download URL: die_python-0.1.0-cp39-cp39-macosx_13_0_x86_64.whl
- Upload date:
- Size: 4.8 MB
- Tags: CPython 3.9, macOS 13.0+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 721ab6005cab42dee9b318a1f2a7c8e4c3dc6e5290e20a3cb716991f6ddd75e0 |
|
MD5 | b129e2eb1f9c8e45e415bddc5218e709 |
|
BLAKE2b-256 | 24f124b70451ba377439ecf6a4d32b62bce0908416db2f202e36ddd00c877919 |
File details
Details for the file die_python-0.1.0-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: die_python-0.1.0-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 12.7 MB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21f58eb5da2dabc06c9487705e272cb89a7436f2637a6f79d839b9cb3cb1726c |
|
MD5 | ab775bc00ee550ba1be6dd416f057b71 |
|
BLAKE2b-256 | 53486440f0563de072d1d2e5564cf9eb20ec548e1c80259c7a96391b11a73aed |
File details
Details for the file die_python-0.1.0-cp38-cp38-manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: die_python-0.1.0-cp38-cp38-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 62.0 MB
- Tags: CPython 3.8, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31d064d6b7a31ac22529ad7cdf3be1de4e6dee7b005efdd9224e8a395f3b2b8e |
|
MD5 | 536a0e680853e5de17580b9d65903453 |
|
BLAKE2b-256 | a21dd867145eda785926e50de5a830a4ea9b6ead70b7159b6a47ce224d10a9ae |
File details
Details for the file die_python-0.1.0-cp38-cp38-macosx_13_0_x86_64.whl
.
File metadata
- Download URL: die_python-0.1.0-cp38-cp38-macosx_13_0_x86_64.whl
- Upload date:
- Size: 4.8 MB
- Tags: CPython 3.8, macOS 13.0+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f09c98d928a0f32c72b5bbed90fb40ba1afcb81b3ab3e362104a6cb23738b4ae |
|
MD5 | 0c2b7fcd674ff665ba9b7a8e7e6d90ce |
|
BLAKE2b-256 | e8674e6f24df104b24e9db79c5a88ae7e0d6df375382f8ae07d06f5e0c43c695 |