module

package
v0.0.0-...-2c94dc4 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertType

func ConvertType(value string, ref *reflect.Value) error

Types

type Author

type Author struct {
	Name  string
	Email string
}

type Auxiliary

type Auxiliary struct {
	Module
	Meta Meta
	// contains filtered or unexported fields
}

func (*Auxiliary) Authors

func (m *Auxiliary) Authors() []Author

func (*Auxiliary) Category

func (m *Auxiliary) Category() Category

func (*Auxiliary) CheckSupported

func (m *Auxiliary) CheckSupported() bool

func (*Auxiliary) Description

func (m *Auxiliary) Description() string

func (*Auxiliary) Name

func (m *Auxiliary) Name() string

type Category

type Category int
const (
	CategoryExploit Category = iota
	CategoryAuxiliary
	CategoryPost
	CategoryPayload
)

func (Category) String

func (c Category) String() string

type Exploit

type Exploit struct {
	Module
	Meta Meta
}

func (*Exploit) Authors

func (m *Exploit) Authors() []Author

func (*Exploit) Category

func (m *Exploit) Category() Category

func (*Exploit) CheckSupported

func (m *Exploit) CheckSupported() bool

func (*Exploit) Description

func (m *Exploit) Description() string

func (*Exploit) Name

func (m *Exploit) Name() string

type Meta

type Meta struct {
	Name           string
	Description    string
	Authors        []Author
	CheckSupported bool
}

type Module

type Module interface {
	Name() string
	Description() string
	Category() Category
	Authors() []Author
	Run(c *ishell.Context) error
	CheckSupported() bool
}

type Option

type Option struct {
	Type        string
	Name        string
	Description string
	Required    bool
	Instance    *reflect.Value
}

func (*Option) IsValid

func (o *Option) IsValid() bool

func (*Option) SetRawValue

func (o *Option) SetRawValue(value any)

func (*Option) SetValue

func (o *Option) SetValue(value string)

func (*Option) Value

func (o *Option) Value() any

type Payload

type Payload struct {
	Module
	Meta Meta
}

func (*Payload) Authors

func (m *Payload) Authors() []Author

func (*Payload) Category

func (m *Payload) Category() Category

func (*Payload) CheckSupported

func (m *Payload) CheckSupported() bool

func (*Payload) Description

func (m *Payload) Description() string

func (*Payload) Name

func (m *Payload) Name() string

type Post

type Post struct {
	Module
	Meta Meta
}

func (*Post) Authors

func (m *Post) Authors() []Author

func (*Post) Category

func (m *Post) Category() Category

func (*Post) CheckSupported

func (m *Post) CheckSupported() bool

func (*Post) Description

func (m *Post) Description() string

func (*Post) Name

func (m *Post) Name() string

Jump to

Keyboard shortcuts

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