cli

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2022 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CLI any
)

Functions

func Execute

func Execute(ctx *kong.Context)

func Parse

func Parse(m string) *kong.Context

Types

type Benchmark

type Benchmark struct {
	Categories []string `` /* 173-byte string literal not displayed */
	OS         []string `name:"os" short:"O" help:"Only enum checks tested on the selected operative systems" enum:"${systems}" group:"Checks"`
	Tags       []string `name:"tags" short:"T" aliases:"tag" help:"Only enum checks with the selected tags" enum:"${tags}" group:"Checks"`

	Uncolorized bool `name:"uncolorized" help:"Uncolorized output" group:"Output"`
}

func (*Benchmark) AfterApply

func (b *Benchmark) AfterApply() error

type Doc

type Doc struct {
	Batch bool `name:"batch" help:"Don't ask for user input (select first coincidence)"`

	Args []string `arg:"" name:"Check title"`

	Theme  string `name:"theme" short:"t" help:"Theme to use" default:"default" enum:"default,demon,ascii" group:"Output"`
	Output string `name:"output" short:"o" default:"./quimera" help:"Select output path" group:"Output"`
	Silent bool   `name:"silent" help:"Silent stdout output" group:"Output"`
	Stdout bool   `name:"stdout" help:"Generate stdout output" group:"Output"`
	Raw    bool   `name:"raw" help:"Raw markdown without render" group:"Output"`
}

func (*Doc) AfterApply

func (d *Doc) AfterApply() error

type Enum

type Enum struct {
	Categories []string `name:"categories" short:"C" help:"Only enum checks with the selected categories" enum:"${categories}" group:"Checks"`
	OS         []string `name:"os" short:"O" help:"Only enum checks tested on the selected operative systems" enum:"${systems}" group:"Checks"`
	Tags       []string `name:"tags" short:"T" aliases:"tag" help:"Only enum checks with the selected tags" enum:"${tags}" group:"Checks"`
	SkipFailed bool     `name:"skip-failed" help:"Skip failed checks" group:"Checks"`

	Theme       string `name:"theme" short:"t" help:"Theme to use" default:"default" enum:"default,demon,ascii" group:"Output"`
	Output      string `name:"output" short:"o" default:"./quimera" help:"Select output path" group:"Output"`
	Html        bool   `name:"html" help:"Generate HTML output" group:"Output"`
	Json        bool   `name:"json" help:"Generate JSON output" group:"Output"`
	Markdown    bool   `name:"markdown" help:"Generate Markdown output" group:"Output"`
	Obsidian    bool   `name:"obsidian" help:"If Markdown, generate Obsidian output" group:"Output"`
	Silent      bool   `name:"silent" help:"Silent stdout output" group:"Output"`
	Stdout      bool   `name:"stdout" help:"Generate stdout output" group:"Output"`
	Uncolorized bool   `name:"uncolorized" help:"Uncolorized output" group:"Output"`

	Debug bool `name:"debug" help:"Show the returned JSON from the checks with errors"`
}

func (*Enum) AfterApply

func (e *Enum) AfterApply() error

type Mutant

type Mutant struct {
	Enum      *Enum      `cmd:"" help:"Enum the system for Privilege Escalation" group:"Quimera:"`
	Benchmark *Benchmark `cmd:"" help:"Benchmark checks test" group:"Quimera:"`
	Doc       *Doc       `cmd:"" help:"Read the manual from a specific Privilege Escalation check" group:"Quimera:"`
	Show      *Show      `cmd:"" help:"Show a specific Privilege Escalation check" group:"Quimera:"`
	Run       *Run       `cmd:"" help:"Run a specific Privilege Escalation check" group:"Quimera:"`
	Language  string     `name:"lang" short:"L" default:"en" help:"Select language" enum:"en,es"`
}

type Mutate

type Mutate struct {
	Arch string `name:"arch" short:"a" default:"amd64" help:"Select mutant arch" enum:"amd64,arm64" group:"Options"`

	Output string `name:"output" short:"o" default:"./mutant" help:"Select output path" group:"Output"`
}

func (*Mutate) AfterApply

func (m *Mutate) AfterApply() error

type Quimera

type Quimera struct {
	Mutate *Mutate `cmd:"" help:"Create a mutant" group:"Laboratory:"`
	Mutant
}

type Run

type Run struct {
	Batch bool `name:"batch" help:"Don't ask for user input (select first coincidence)"`

	Args []string `arg:"" name:"Check title"`

	Theme       string `name:"theme" short:"t" help:"Theme to use" default:"default" enum:"default,demon,ascii" group:"Output"`
	Output      string `name:"output" short:"o" default:"./quimera" help:"Select output path" group:"Output"`
	Json        bool   `name:"json" help:"Generate JSON output" group:"Output"`
	Markdown    bool   `name:"markdown" help:"Generate Markdown output" group:"Output"`
	Silent      bool   `name:"silent" help:"Silent stdout output" group:"Output"`
	Stdout      bool   `name:"stdout" help:"Generate stdout output" group:"Output"`
	Uncolorized bool   `name:"uncolorized" help:"Uncolorized output" group:"Output"`
}

func (*Run) AfterApply

func (r *Run) AfterApply() error

type Show

type Show struct {
	Batch bool `name:"batch" help:"Don't ask for user input (select first coincidence)"`

	Args []string `arg:"" name:"Check title"`

	Output string `name:"output" short:"o" default:"./quimera" help:"Select output path" group:"Output"`
	Silent bool   `name:"silent" help:"Silent stdout output" group:"Output"`
	Stdout bool   `name:"stdout" help:"Generate stdout output" group:"Output"`
}

func (*Show) AfterApply

func (s *Show) AfterApply() error

Jump to

Keyboard shortcuts

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