bruteforce

package
v0.0.48 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package bruteforce implements password brute force functionality for various network services.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBuiltInWordlists added in v0.0.45

func GetBuiltInWordlists(service, size string) ([]string, []string, error)

GetBuiltInWordlists loads built-in username and password wordlists based on service type and size. It returns slices of usernames and passwords from the appropriate wordlist files.

Types

type Engine

type Engine struct {
	Library Library
}

Engine provides a wrapper around service-specific brute force libraries. It manages the execution of brute force attempts and result collection.

func (*Engine) Run

Run executes brute force attempts against a target using the configured library. It handles retries, sleep intervals, and success detection. Returns a list of attempt results, success status, and any errors encountered.

type Library

type Library interface {
	BruteForce(host string, port int, credPair *bruteforcefern.CredentialPair, config *bruteforcefern.PentestServiceBruteForceConfig) (*bruteforcefern.AttemptInfo, []string)
	AnalyzeResponse(response *bruteforcefern.ResponseUnion) *bruteforcefern.ResultInfo
}

Library defines the interface for service-specific brute force implementations. Each service type (SSH, Telnet) must implement this interface to provide authentication attempt functionality and response analysis.

type WordlistFiles added in v0.0.45

type WordlistFiles struct {
	UsernameFile string
	PasswordFile string
}

WordlistFiles maps service types and sizes to their corresponding username and password file paths

Directories

Path Synopsis
Package bruteforce implements password brute force functionality for various network services.
Package bruteforce implements password brute force functionality for various network services.

Jump to

Keyboard shortcuts

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