mysql

package
v0.0.180 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PerformAuthentication

func PerformAuthentication(ctx context.Context, target, username, password, database, sslMode string, timeoutMs int) (bool, string, error)

PerformAuthentication attempts a single MySQL authentication and returns success, message, error. Honors:

  • database — optional initial database to SELECT after auth ("" = no DBName)
  • sslMode — DISABLE | PREFER | REQUIRE (case-insensitive; "" = driver default)

Used by both the spray module (which passes "" for database + sslMode) and the pentest service mysql cobra command (which threads --database / --ssl).

func PerformProbe added in v0.0.178

func PerformProbe(ctx context.Context, target string, timeoutMs int) *mysqlfern.ProbeResult

PerformProbe connects to a MySQL server and reads the initial handshake or error packet to extract server-info banner data. No credentials are required. It always returns a non-nil result; failures are recorded inside it.

func RunPentest added in v0.0.178

RunPentest performs MySQL pentest operations across all configured targets. It dispatches the requested actions (PROBE and/or AUTH) for each target and collects every per-target result into a single PentestMysqlReport.

Types

This section is empty.

Jump to

Keyboard shortcuts

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