httpbrute

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package httpbrute @Author bcy2007 2023/6/20 14:54

Package httpbrute @Author bcy2007 2023/6/20 15:08

Package httpbrute @Author bcy2007 2023/6/21 11:05

Package httpbrute @Author bcy2007 2023/6/20 15:08

Package httpbrute @Author bcy2007 2023/6/20 14:47

Package httpbrute @Author bcy2007 2023/6/20 16:15

Index

Constants

View Source
const (
	UrlChangeMode     loginDetectMode = 0
	HtmlChangeMode    loginDetectMode = 1
	DefaultChangeMode loginDetectMode = -1
)

Variables

This section is empty.

Functions

func ElementsFilter

func ElementsFilter(elements *core.GeneralElements, keyword string) *core.GeneralElement

func HttpBruteForce

func HttpBruteForce(urlStr string, opts ...BruteConfigOpt) (chan Result, error)

Types

type BruteConfig

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

func NewBruteConfig

func NewBruteConfig() *BruteConfig

type BruteConfigOpt

type BruteConfigOpt func(*BruteConfig)

func WithButtonSelector

func WithButtonSelector(buttonSelector string) BruteConfigOpt

func WithCaptchaImgSelector

func WithCaptchaImgSelector(captchaImgSelector string) BruteConfigOpt

func WithCaptchaMode

func WithCaptchaMode(captchaMode string) BruteConfigOpt

func WithCaptchaSelector

func WithCaptchaSelector(captchaSelector string) BruteConfigOpt

func WithCaptchaUrl

func WithCaptchaUrl(captchaUrl string) BruteConfigOpt

func WithExePath

func WithExePath(exePath string) BruteConfigOpt

func WithExtraWaitLoadTime

func WithExtraWaitLoadTime(time int) BruteConfigOpt

func WithLoginDetectMode

func WithLoginDetectMode(detectMode loginDetectMode, degree ...float64) BruteConfigOpt

func WithPassword

func WithPassword(password ...string) BruteConfigOpt

func WithPasswordSelector

func WithPasswordSelector(passwordSelector string) BruteConfigOpt

func WithPasswords

func WithPasswords(passwords []string) BruteConfigOpt

func WithProxy

func WithProxy(proxy string, details ...string) BruteConfigOpt

func WithResultChannel

func WithResultChannel(ch chan Result) BruteConfigOpt

func WithUsername

func WithUsername(username ...string) BruteConfigOpt

func WithUsernameSelector

func WithUsernameSelector(usernameSelector string) BruteConfigOpt

func WithUsernames

func WithUsernames(usernames []string) BruteConfigOpt

func WithWsAddress

func WithWsAddress(wsAddress string) BruteConfigOpt

type BruteForceCore

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

func NewBruteForce

func NewBruteForce(urlStr string, opts ...BruteConfigOpt) *BruteForceCore

func (*BruteForceCore) Start

func (bruteForce *BruteForceCore) Start() error

type BruteResult

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

func (*BruteResult) Base64

func (bruteResult *BruteResult) Base64() string

func (*BruteResult) Info

func (bruteResult *BruteResult) Info() string

func (*BruteResult) Password

func (bruteResult *BruteResult) Password() string

func (*BruteResult) Status

func (bruteResult *BruteResult) Status() bool

func (*BruteResult) Username

func (bruteResult *BruteResult) Username() string

type Result

type Result interface {
	Username() string
	Password() string
	Status() bool

	Info() string
	Base64() string
}

type SimulatorCore

type SimulatorCore interface {
	Start() error
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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