Merged code in the issue #157 does not work
まだ誰も着手していません。
評価
調査の方向性
Start by reproducing the issue with the two-rule YARA ruleset and the Python call yara.compile('bad_rule.yar', error_on_warning=True). Trace how the Python interface handles warnings from compilation and compare it with the command-line output. Done means error_on_warning reports both warnings instead of only the final warning.
索引モデルが issue の本文から書いたものです。
説明
Summary: the Issue #157 was about printing all the warnings with "error_on_warning" enabled. But at the example below we can see that it does not work at the newest version of yara-python.
Yara ruleset:
rule bad_rule1
{
meta:
author = "Rakovskij Stanislav / disasm.me"
date = "01.03.2021"
description = "Rule that uses bad wilecards to raise yara warning"
strings:
$ = {00 [32] 00}
condition:
any of them
}
rule bad_rule2
{
meta:
author = "Rakovskij Stanislav / disasm.me"
date = "01.03.2021"
description = "Rule that uses bad wilecards to raise yara warning"
strings:
$ = {00 [32] 00}
condition:
any of them
}
Output:
/m/d/test_yara_speed> ./yara64.exe bad_rule.yar random_100Mb.bin
bad_rule.yar(8): warning in rule "bad_rule1": $ is slowing down scanning
bad_rule.yar(20): warning in rule "bad_rule2": $ is slowing down scanning
bad_rule1 random_100Mb.bin
bad_rule2 random_100Mb.bin
/m/d/test_yara_speed> python3 -c "import yara; yara.compile('bad_rule.yar', error_on_warning=True)"
Traceback (most recent call last):
File "<string>", line 1, in <module>
yara.WarningError: bad_rule.yar(20): $ is slowing down scanning // <- expected two warnings - on lines 8 and 20, got only the last one.
/m/d/test_yara_speed [1]> ./yara64.exe -v
4.0.5
/m/d/test_yara_speed> python3 -m pip install yara-python
Requirement already satisfied: yara-python in /home/user/.local/lib/python3.8/site-packages (4.0.5)
- 主要言語
- C
- スター
- 754
- フォーク
- 190
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
VirusTotal/yara-python のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
VirusTotal/yara-python#263 · コメント 2 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 28/100
VirusTotal/yara-python#234 · コメント 2 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
VirusTotal/yara-python#218 · リアクション 3 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
VirusTotal/yara-python#216 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
VirusTotal/yara-python#212 · コメント 11 件 ·
VirusTotal/yara-python の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
BasedHardware/omi#19711 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
microsoft/ebpf-for-windows#5604 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
trezor/trezor-firmware#7985 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 2 日以内に返信