Skip to content

How to get all tokens as a list in py and c++ #275

@sae-as-me

Description

@sae-as-me

Hi,
may I ask how I can use yaramod to retrieve all tokens from the yara rule file(regardless of whether the rule is valid or complete)?
For example, the contents of my file are as follows:

rule abc {
    condition:
        xyz
}

and what I hope to get is:

['rule','abc','{','\n','condition',':','\n','xyz','\n','}']

Excuse me.

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