Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Python 3 tool to parse Yara rules (extension of yarabuilder)

License

Notifications You must be signed in to change notification settings

BitsOfBinary/yaraparser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

10 Commits

Repository files navigation

yaraparser

Python 3 tool to parse Yara rules (extension of yarabuilder)

NOTE: this is still in early development (lots of edge cases to work out still)

Installation

yarabuilder requires Python 3+:

python setup.py install

Usage

Via the command line:

$ yaraparser --help
usage: yaraparser [-h] --file FILE
Parse Yara rules into a dictionary or Python object
optional arguments:
 -h, --help show this help message and exit
 --file FILE File containing Yara rules to parse

Via Python:

>>> import yaraparser
>>>
>>> rules = yaraparser.ParsedYaraRules()
>>>
>>> with open("test.yar", "r") as infile:
... raw_rules = infile.read()
...
>>> rules.parse_yara_rules(raw_rules)
>>>
>>> print(rules.get_yara_rules())

About

Python 3 tool to parse Yara rules (extension of yarabuilder)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /