generator

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RuleOpts

type RuleOpts struct {
	Sid        int
	Msg        string
	Classtype  string
	References []string
	Metadata   []string
}

RuleOpts allow the user to add custom values to the generated rule

func (RuleOpts) GenerateDNSQueryRule

func (r RuleOpts) GenerateDNSQueryRule(domain string) (gonids.Rule, error)

GenerateDNSQueryRule generates a Suricata rule that alerts on a dns query for a domain

func (RuleOpts) GenerateIPTrafficRule

func (r RuleOpts) GenerateIPTrafficRule(nets []string) ([]gonids.Rule, error)

GenerateIPTrafficRule generates Suricata rules that alerts on inbound/outbound traffic from a IP/CIDR

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL