Merged code in the issue #157 does not work
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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)
- Ngôn ngữ chính
- C
- Star
- 754
- Fork
- 190
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Chúng tôi chưa kiểm tra các tệp thiết lập môi trường của dự án này. Hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của VirusTotal/yara-python
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
VirusTotal/yara-python#263 · 2 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 28/100
VirusTotal/yara-python#234 · 2 bình luận ·
-
Missing python interface fileĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
VirusTotal/yara-python#218 · 3 reaction ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
VirusTotal/yara-python#216 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
VirusTotal/yara-python#212 · 11 bình luận ·
Tất cả issue của VirusTotal/yara-python
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
johnsonjh/emu2-cpm86#68 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Zenmap CrashĐang mởZenmap
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
fastfetch-cli/fastfetch#2619 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Template: Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
betaflight/betaflight#15759 ·
Maintainer thường phản hồi trong vòng 1 ngày