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 Attack ¶
func Attack(ctx context.Context, config *bruteforcefern.PentestBruteForceConfig) (*bruteforcefern.PentestBruteForceReport, error)
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 ¶
func (e *Engine) Run(ctx context.Context, target string, credPair *bruteforcefern.CredentialPair, config *bruteforcefern.PentestBruteForceConfig) ([]*bruteforcefern.AttemptInfo, bool, []string)
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.PentestBruteForceConfig) (*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.