Skip to content

Access the value passed into compiler.add_source(_, origin=<filename>) #454

@xorhex

Description

@xorhex

When iterating through the scan results, how does one access the origin field set when adding the rule to the compiler.source? I also looked in the Rules object, but didn't see where that was exposed.

compiler = yara_x.Compiler()
compiler.add_source("rule test_2 { condition: false }", origin="test.yar")
rules = compiler.build()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions