mssql

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: Apache-2.0 Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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