mssql

package
v0.0.49 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VERSION         int  = 0
	ENCRYPTION      int  = 1
	INSTOPT         int  = 2
	THREADID        int  = 3
	MARS            int  = 4
	TRACEID         int  = 5
	FEDAUTHREQUIRED int  = 6
	NONCEOPT        int  = 7
	TERMINATOR      byte = 0xFF
)

Potential values for PLOptionToken

View Source
const MSSQL = "mssql"

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Version string
}

func DetectMSSQL

func DetectMSSQL(conn net.Conn, timeout time.Duration) (Data, bool, error)

type MSSQLPlugin

type MSSQLPlugin struct{}

func (*MSSQLPlugin) Name

func (p *MSSQLPlugin) Name() string

func (*MSSQLPlugin) PortPriority

func (p *MSSQLPlugin) PortPriority(port uint16) bool

func (*MSSQLPlugin) Priority

func (p *MSSQLPlugin) Priority() int

func (*MSSQLPlugin) Run

func (p *MSSQLPlugin) Run(conn net.Conn, timeout time.Duration, target plugins.Target) (*plugins.Service, error)

func (*MSSQLPlugin) Type

func (p *MSSQLPlugin) Type() plugins.Protocol

type OptionToken

type OptionToken struct {
	PLOptionToken  uint32
	PLOffset       uint32
	PLOptionLength uint32
	PLOptionData   []byte // the raw data associated with the option
}

Jump to

Keyboard shortcuts

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