base

package
v0.0.0-...-85fbdb9 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OK = iota
	CONNECTION_REFUSE
	TIMEOUT
	MAX_FAILED_ATTEMPTS
)

Variables

Functions

func Check

func Check(e error)

func FakeAttack

func FakeAttack(c *Credential, params Parameters) (string, error)

func Read2Files

func Read2Files(
	userFile string,
	passFile string,
) <-chan *Credential

func StartAttacker

func StartAttacker(
	nWorkers int,
	attackFunc func(*Credential, *Parameters) (string, error),
	params *Parameters,
)

func Worker

func Worker(
	reqStream <-chan *RequestStructure,
	name string,
	params *Parameters,
	attackFunc func(*Credential, *Parameters) (string, error),
)

Types

type Credential

type Credential struct {
	User string
	Pass string
	Pos  string
}

type Parameters

type Parameters struct {
	AttackType string
	IpAddress  string
	ServerPort string
	TimeLimit  time.Duration

	UserFile         string
	PassFile         string
	FilterExcludeRes []string
	FilterIncludeRes []string
	FilterExcludeErr []string
	FilterIncludeErr []string
	// contains filtered or unexported fields
}

type RequestStructure

type RequestStructure struct {
	// contains filtered or unexported fields
}

type Result

type Result struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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