bruteforce

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2025 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttemptInfo

type AttemptInfo struct {
	Request   *RequestUnion  `json:"request,omitempty" url:"request,omitempty"`
	Response  *ResponseUnion `json:"response,omitempty" url:"response,omitempty"`
	Result    *ResultInfo    `json:"result,omitempty" url:"result,omitempty"`
	Timestamp time.Time      `json:"timestamp" url:"timestamp"`
	// contains filtered or unexported fields
}

func (*AttemptInfo) GetExtraProperties

func (a *AttemptInfo) GetExtraProperties() map[string]interface{}

func (*AttemptInfo) MarshalJSON

func (a *AttemptInfo) MarshalJSON() ([]byte, error)

func (*AttemptInfo) String

func (a *AttemptInfo) String() string

func (*AttemptInfo) UnmarshalJSON

func (a *AttemptInfo) UnmarshalJSON(data []byte) error

type BruteForceAttempt

type BruteForceAttempt struct {
	Target     string          `json:"target" url:"target"`
	Statistics *StatisticsInfo `json:"statistics,omitempty" url:"statistics,omitempty"`
	Attempts   []*AttemptInfo  `json:"attempts,omitempty" url:"attempts,omitempty"`
	// contains filtered or unexported fields
}

func (*BruteForceAttempt) GetExtraProperties

func (b *BruteForceAttempt) GetExtraProperties() map[string]interface{}

func (*BruteForceAttempt) String

func (b *BruteForceAttempt) String() string

func (*BruteForceAttempt) UnmarshalJSON

func (b *BruteForceAttempt) UnmarshalJSON(data []byte) error

type BruteForceReport

type BruteForceReport struct {
	Module             ModuleType           `json:"module" url:"module"`
	BruteForceAttempts []*BruteForceAttempt `json:"bruteForceAttempts,omitempty" url:"bruteForceAttempts,omitempty"`
	Errors             []string             `json:"errors,omitempty" url:"errors,omitempty"`
	// contains filtered or unexported fields
}

func (*BruteForceReport) GetExtraProperties

func (b *BruteForceReport) GetExtraProperties() map[string]interface{}

func (*BruteForceReport) String

func (b *BruteForceReport) String() string

func (*BruteForceReport) UnmarshalJSON

func (b *BruteForceReport) UnmarshalJSON(data []byte) error

type BruteForceRunConfig

type BruteForceRunConfig struct {
	Module           ModuleType `json:"module" url:"module"`
	Targets          []string   `json:"targets,omitempty" url:"targets,omitempty"`
	Usernames        []string   `json:"usernames,omitempty" url:"usernames,omitempty"`
	Passwords        []string   `json:"passwords,omitempty" url:"passwords,omitempty"`
	Timeout          int        `json:"timeout" url:"timeout"`
	Sleep            int        `json:"sleep" url:"sleep"`
	Retries          int        `json:"retries" url:"retries"`
	SuccessfulOnly   bool       `json:"successfulOnly" url:"successfulOnly"`
	StopFirstSuccess bool       `json:"stopFirstSuccess" url:"stopFirstSuccess"`
	// contains filtered or unexported fields
}

func (*BruteForceRunConfig) GetExtraProperties

func (b *BruteForceRunConfig) GetExtraProperties() map[string]interface{}

func (*BruteForceRunConfig) String

func (b *BruteForceRunConfig) String() string

func (*BruteForceRunConfig) UnmarshalJSON

func (b *BruteForceRunConfig) UnmarshalJSON(data []byte) error

type CredentialPair

type CredentialPair struct {
	Username string `json:"username" url:"username"`
	Password string `json:"password" url:"password"`
	// contains filtered or unexported fields
}

func (*CredentialPair) GetExtraProperties

func (c *CredentialPair) GetExtraProperties() map[string]interface{}

func (*CredentialPair) String

func (c *CredentialPair) String() string

func (*CredentialPair) UnmarshalJSON

func (c *CredentialPair) UnmarshalJSON(data []byte) error

type GeneralRequestInfo

type GeneralRequestInfo struct {
	Username string `json:"username" url:"username"`
	Password string `json:"password" url:"password"`
	Host     string `json:"host" url:"host"`
	Port     int    `json:"port" url:"port"`
	// contains filtered or unexported fields
}

func (*GeneralRequestInfo) GetExtraProperties

func (g *GeneralRequestInfo) GetExtraProperties() map[string]interface{}

func (*GeneralRequestInfo) String

func (g *GeneralRequestInfo) String() string

func (*GeneralRequestInfo) UnmarshalJSON

func (g *GeneralRequestInfo) UnmarshalJSON(data []byte) error

type GeneralResponseInfo

type GeneralResponseInfo struct {
	Message string `json:"message" url:"message"`
	// contains filtered or unexported fields
}

func (*GeneralResponseInfo) GetExtraProperties

func (g *GeneralResponseInfo) GetExtraProperties() map[string]interface{}

func (*GeneralResponseInfo) String

func (g *GeneralResponseInfo) String() string

func (*GeneralResponseInfo) UnmarshalJSON

func (g *GeneralResponseInfo) UnmarshalJSON(data []byte) error

type ModuleType

type ModuleType string
const (
	ModuleTypeSsh    ModuleType = "ssh"
	ModuleTypeTelnet ModuleType = "telnet"
)

func NewModuleTypeFromString

func NewModuleTypeFromString(s string) (ModuleType, error)

func (ModuleType) Ptr

func (m ModuleType) Ptr() *ModuleType

type RequestUnion

type RequestUnion struct {
	Type           string
	GeneralRequest *GeneralRequestInfo
}

func NewRequestUnionFromGeneralRequest

func NewRequestUnionFromGeneralRequest(value *GeneralRequestInfo) *RequestUnion

func (*RequestUnion) Accept

func (r *RequestUnion) Accept(visitor RequestUnionVisitor) error

func (RequestUnion) MarshalJSON

func (r RequestUnion) MarshalJSON() ([]byte, error)

func (*RequestUnion) UnmarshalJSON

func (r *RequestUnion) UnmarshalJSON(data []byte) error

type RequestUnionVisitor

type RequestUnionVisitor interface {
	VisitGeneralRequest(*GeneralRequestInfo) error
}

type ResponseUnion

type ResponseUnion struct {
	Type            string
	GeneralResponse *GeneralResponseInfo
}

func NewResponseUnionFromGeneralResponse

func NewResponseUnionFromGeneralResponse(value *GeneralResponseInfo) *ResponseUnion

func (*ResponseUnion) Accept

func (r *ResponseUnion) Accept(visitor ResponseUnionVisitor) error

func (ResponseUnion) MarshalJSON

func (r ResponseUnion) MarshalJSON() ([]byte, error)

func (*ResponseUnion) UnmarshalJSON

func (r *ResponseUnion) UnmarshalJSON(data []byte) error

type ResponseUnionVisitor

type ResponseUnionVisitor interface {
	VisitGeneralResponse(*GeneralResponseInfo) error
}

type ResultInfo

type ResultInfo struct {
	Login     bool `json:"login" url:"login"`
	Ratelimit bool `json:"ratelimit" url:"ratelimit"`
	// contains filtered or unexported fields
}

func (*ResultInfo) GetExtraProperties

func (r *ResultInfo) GetExtraProperties() map[string]interface{}

func (*ResultInfo) String

func (r *ResultInfo) String() string

func (*ResultInfo) UnmarshalJSON

func (r *ResultInfo) UnmarshalJSON(data []byte) error

type StatisticsInfo

type StatisticsInfo struct {
	NumUsernames  int                  `json:"numUsernames" url:"numUsernames"`
	NumPasswords  int                  `json:"numPasswords" url:"numPasswords"`
	NumSuccessful int                  `json:"numSuccessful" url:"numSuccessful"`
	NumFailed     int                  `json:"numFailed" url:"numFailed"`
	RunConfig     *BruteForceRunConfig `json:"runConfig,omitempty" url:"runConfig,omitempty"`
	// contains filtered or unexported fields
}

func (*StatisticsInfo) GetExtraProperties

func (s *StatisticsInfo) GetExtraProperties() map[string]interface{}

func (*StatisticsInfo) String

func (s *StatisticsInfo) String() string

func (*StatisticsInfo) UnmarshalJSON

func (s *StatisticsInfo) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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