utils

package
v0.0.0-...-8d0f603 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultMaxConcurrent = 60

Variables

This section is empty.

Functions

func ExtractLinesFromFileOrString

func ExtractLinesFromFileOrString(s string) (o []string)

func ExtractTargets

func ExtractTargets(list []string) []string

func GeneratePassword

func GeneratePassword(n int) string

func StringToUTF16

func StringToUTF16(s string) string

func WriteLines

func WriteLines(lines []string, path string) error

Types

type Credential

type Credential struct {
	Username string
	Password string
	Hash     string
}

func NewCredentialsClusterBomb

func NewCredentialsClusterBomb(users []string, passwords []string) (out []Credential)

func NewCredentialsDispacher

func NewCredentialsDispacher(users, passwords, ntlm string, strategy Strategy) []Credential

func NewCredentialsNTLM

func NewCredentialsNTLM(users []string, hash string) (out []Credential)

func NewCredentialsPitchFork

func NewCredentialsPitchFork(users []string, passwords []string) (out []Credential)

func (*Credential) String

func (c *Credential) String() string

func (*Credential) StringWithDomain

func (c *Credential) StringWithDomain(domain string) string

type Strategy

type Strategy int
const (
	Clusterbomb Strategy = iota
	Pitchfork
)

Jump to

Keyboard shortcuts

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