Skip to content

Latest commit

 

History

History
302 lines (188 loc) · 7.28 KB

dotnet.rst

File metadata and controls

302 lines (188 loc) · 7.28 KB

dotnet module

3.6.0

The dotnet module allows you to create more fine-grained rules for .NET files by using attributes and features of the .NET file format. Let's see some examples:

import "dotnet"

rule not_exactly_five_streams
{
    condition:
        dotnet.number_of_streams != 5
}

rule blop_stream
{
    condition:
        for any i in (0..dotnet.number_of_streams - 1):
            (dotnet.streams[i].name == "#Blop")
}

Reference