rules

package
v0.0.0-...-b5b2af5 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RuleFS embed.FS

Functions

func Open

func Open(name string) (fs.File, error)

func Readfile

func Readfile(name string) ([]byte, error)

Types

type Config

type Config struct {
	Rules []*Rule `toml:"privilege-esclation"`
}

func GetRuleFromFile

func GetRuleFromFile() (*Config, error)

type Exp

type Exp struct {
	Exp string `toml:"exp"`
}

type Exps

type Exps struct {
	Shell                      []*Exp `toml:"shell"`
	Command                    []*Exp `toml:"command"`
	ReverseShell               []*Exp `toml:"reverse-shell"`
	NonInteractiveReverseShell []*Exp `toml:"non-interactive-reverse-shell"`
	BindShell                  []*Exp `toml:"bind-shell"`
	NonInteractiveBindShell    []*Exp `toml:"non-interactive-bind-shell"`
	FileUpload                 []*Exp `toml:"file-upload"`
	FileDownload               []*Exp `toml:"file-download"`
	FileWrite                  []*Exp `toml:"file-write"`
	FileRead                   []*Exp `toml:"file-read"`
	LibraryLoad                []*Exp `toml:"library-load"`
	SUID                       []*Exp `toml:"suid"`
	Sudo                       []*Exp `toml:"sudo"`
	Capabilities               []*Exp `toml:"capabilities"`
	LimitedSUID                []*Exp `toml:"limited-suid"`
}

type Rule

type Rule struct {
	Name        string   `toml:"Name"`
	Description string   `toml:"Description"`
	Tags        []string `toml:"Tags"`
	Exps        Exps     `toml:"exps"`
}

Jump to

Keyboard shortcuts

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