mssql

package
v0.0.174 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectMSSQLPublic

func ConnectMSSQLPublic(ctx context.Context, target, username, password string, timeoutMs int) (*sql.DB, error)

ConnectMSSQLPublic is an exported wrapper for use by spray operations.

func PerformAuthentication

func PerformAuthentication(ctx context.Context, target string, config *mssqlfern.PentestMssqlConfig) (*mssqlfern.AuthResult, *sql.DB, error)

PerformAuthentication attempts authentication against an MSSQL server using credentials from config. Returns the auth result and an open *sql.DB on first success (caller must close it), or nil if no success.

func PerformProbe

func PerformProbe(ctx context.Context, target string, config *mssqlfern.PentestMssqlConfig) (*mssqlfern.MssqlProbeResult, error)

PerformProbe connects to MSSQL and extracts server version/instance info without valid auth. The TDS protocol returns server information even on login failure.

func PerformQueries

func PerformQueries(ctx context.Context, target string, db *sql.DB, config *mssqlfern.MssqlQueryConfig) (*mssqlfern.MssqlQueryResultSet, error)

PerformQueries runs discovery queries against an authenticated MSSQL connection.

func RunPentest

RunPentest orchestrates MSSQL pentest operations (PROBE, AUTH, QUERY) for all targets in config.

Types

This section is empty.

Jump to

Keyboard shortcuts

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