The official Python library for YARA-X. Supports Python 3.8+ in Linux, MacOS and Windows.
import ezyara
rules = ezyara.compile('''
rule test {
strings:
$a = "foobar"
condition:
$a
}''')
results = rules.scan(b"foobar")
assert results.matching_rules[0].identifier == "test"
assert results.matching_rules[0].patterns[0].identifier == "$a"
assert results.matching_rules[0].patterns[0].matches[0].offset == 0
assert results.matching_rules[0].patterns[0].matches[0].length == 6
For more information about how to use this library, please check the documentation.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ezyara-0.4.1.tar.gz
(493.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ezyara-0.4.1.tar.gz.
File metadata
- Download URL: ezyara-0.4.1.tar.gz
- Upload date:
- Size: 493.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
maturin/1.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50557f45b860121953c03e705f13148982906839b5462a49119d77d9e81f9eac
|
|
| MD5 |
d82ab89a06e05b65def3bbcfffad348f
|
|
| BLAKE2b-256 |
8f4b7591de196075d1879f6e57bb2ed37c9f0fff575e6dccc37c95fd6150bb74
|
File details
Details for the file ezyara-0.4.1-cp38-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: ezyara-0.4.1-cp38-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 6.2 MB
- Tags: CPython 3.8+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via:
maturin/1.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ff194a15d55743a134b5b3fdfc2cddc2735b77be2e06b9cc57f527b836e3d36
|
|
| MD5 |
dd86b7a8417bcc0a7bdf9290b9a08534
|
|
| BLAKE2b-256 |
e03d10aee84eeba5bae34d15ae355f27a832de59b230c499a1374060315183b0
|