bruteforce

package
v0.0.49 Latest Latest
Warning

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

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

Documentation

Overview

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

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSHLibrary

type SSHLibrary struct{}

SSHLibrary implements the Library interface for SSH service brute force attempts. It provides functionality to attempt SSH authentication and analyze the results.

func (*SSHLibrary) AnalyzeResponse

func (SSHLib *SSHLibrary) AnalyzeResponse(response *bruteforcefern.ResponseUnion) *bruteforcefern.ResultInfo

AnalyzeResponse processes the SSH authentication response to determine success or failure. It checks for successful authentication messages and can detect rate limiting (TODO). Returns a ResultInfo struct indicating login success and rate limit status.

func (*SSHLibrary) BruteForce

BruteForce attempts to authenticate to an SSH server using the provided credentials. It handles both unauthenticated attempts (when credPair is nil) and authenticated attempts. Returns attempt information including timestamp, request/response details, and any errors.

type TelnetLibrary

type TelnetLibrary struct{}

TelnetLibrary implements the Library interface for Telnet service brute force attempts. It provides functionality to attempt Telnet authentication and analyze the results.

func (*TelnetLibrary) AnalyzeResponse

func (TelnetLib *TelnetLibrary) AnalyzeResponse(response *bruteforcefern.ResponseUnion) *bruteforcefern.ResultInfo

AnalyzeResponse processes the Telnet authentication response to determine success or failure. It checks for common success indicators in the response message (#, $, welcome). Returns a ResultInfo struct indicating login success and rate limit status.

func (*TelnetLibrary) BruteForce

BruteForce attempts to authenticate to a Telnet server using the provided credentials. It handles both unauthenticated attempts (when credPair is nil) and authenticated attempts. The function manages the Telnet protocol interaction, including reading prompts and sending credentials. Returns attempt information including timestamp, request/response details, and any errors.

Jump to

Keyboard shortcuts

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