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 ¶
func (SSHLib *SSHLibrary) BruteForce(host string, port int, credPair *bruteforcefern.CredentialPair, config *bruteforcefern.PentestServiceBruteForceConfig) (*bruteforcefern.AttemptInfo, []string)
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 ¶
func (TelnetLib *TelnetLibrary) BruteForce(host string, port int, credPair *bruteforcefern.CredentialPair, config *bruteforcefern.PentestServiceBruteForceConfig) (*bruteforcefern.AttemptInfo, []string)
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.