Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update_clamav_signatures.py: do not process comments #46

Merged
merged 1 commit into from
Jul 27, 2021

Conversation

jeromeleonard
Copy link
Contributor

the program fails if a line starting with '#' is found in .ldb files:

root@3450da1b008d:/Manalyze# bin/yara_rules/update_clamav_signatures.py
Downloading: main.cvd Bytes: 168205379
Rule Win.Trojan.EOL-1 seems to be malformed. Skipping...
Traceback (most recent call last):
  File "/Manalyze/bin/yara_rules/update_clamav_signatures.py", line 166, in <module>
    update_signatures(URL_MAIN, args.skipdownload)
  File "/Manalyze/bin/yara_rules/update_clamav_signatures.py", line 138, in update_signatures
    parse_ldb("%s.ldb" % file_basename, "clamav.yara", file_basename != "main")
  File "/Manalyze/bin/yara_rules/parse_clamav.py", line 323, in parse_ldb
    for block in data[1].split(","):
IndexError: list index out of range

@JusticeRage
Copy link
Owner

Thanks a lot for taking the time to fix this!

@JusticeRage JusticeRage merged commit 6397357 into JusticeRage:master Jul 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants