Versions in this module Expand all Collapse all v0 v0.1.7 May 10, 2023 v0.0.0 May 10, 2023 Changes in this version + const EncryptModeNotSupported + const EncryptModeOff + const EncryptModeOn + const EncryptModeRequired + const EncryptModeUnknown + const PreloginEncryption + const PreloginFedAuthRequired + const PreloginInstance + const PreloginMARS + const PreloginNonce + const PreloginTerminator + const PreloginThreadID + const PreloginTraceID + const PreloginVersion + const TDSPacketTypeAttentionSignal + const TDSPacketTypeBulkLoadData + const TDSPacketTypeFederatedAuthToken + const TDSPacketTypePreTDS7Login + const TDSPacketTypePrelogin + const TDSPacketTypeRPC + const TDSPacketTypeSQLBatch + const TDSPacketTypeSSPI + const TDSPacketTypeTDS7Login + const TDSPacketTypeTabularResult + const TDSPacketTypeTransactionManagerRequest + const TDSStatusEOM + const TDSStatusIgnore + const TDSStatusNormal + const TDSStatusResetConnection + const TDSStatusResetConnectionSkipTran + var ErrBufferTooSmall = errors.New("buffer too small") + var ErrInvalidData = errors.New("received invalid data") + var ErrInvalidState = errors.New("operation cannot be performed in this state") + var ErrNoServerEncryption = errors.New("server doesn't support encryption") + var ErrServerRequiresEncryption = errors.New("server requires encryption") + var ErrTooLarge = errors.New("data too large") + func RegisterModule() + type Connection struct + PreloginOptions *PreloginOptions + func NewConnection(conn net.Conn) *Connection + func (connection *Connection) Close() error + func (connection *Connection) Handshake(flags *Flags) (EncryptMode, error) + func (connection *Connection) Login() + func (connection *Connection) SendTDSPacket(packetType uint8, body []byte) error + type EncryptMode byte + func (mode EncryptMode) MarshalJSON() ([]byte, error) + func (mode EncryptMode) String() string + type Flags struct + EncryptMode string + Verbose bool + func (flags *Flags) Help() string + func (flags *Flags) Validate(args []string) error + type Module struct + func (module *Module) Description() string + func (module *Module) NewFlags() interface{} + func (module *Module) NewScanner() zgrab2.Scanner + type PreloginOption []byte + type PreloginOptionToken uint8 + type PreloginOptions map[PreloginOptionToken]PreloginOption + func (options PreloginOptions) Encode() ([]byte, error) + func (options PreloginOptions) GetByteOption(token PreloginOptionToken) (byte, error) + func (options PreloginOptions) GetUint16Option(token PreloginOptionToken) (uint16, error) + func (options PreloginOptions) GetVersion() *ServerVersion + func (options PreloginOptions) HeaderSize() int + func (options PreloginOptions) MarshalJSON() ([]byte, error) + func (options PreloginOptions) Size() int + type ScanResults struct + EncryptMode *EncryptMode + InstanceName *string + PreloginOptions *PreloginOptions + TLSLog *zgrab2.TLSLog + Version string + type Scanner struct + func (s *Scanner) Protocol() string + func (scanner *Scanner) GetName() string + func (scanner *Scanner) GetTrigger() string + func (scanner *Scanner) Init(flags zgrab2.ScanFlags) error + func (scanner *Scanner) InitPerSender(senderID int) error + func (scanner *Scanner) Scan(target zgrab2.ScanTarget) (zgrab2.ScanStatus, interface{}, error) + type ServerVersion struct + BuildNumber uint16 + Major uint8 + Minor uint8 + func (version *ServerVersion) String() string + type TDSHeader struct + Length uint16 + SPID uint16 + SequenceNumber uint8 + Status uint8 + Type uint8 + Window uint8 + func (header *TDSHeader) Encode() []byte + type TDSPacket struct + Body []byte + func (packet *TDSPacket) Encode() ([]byte, error) + type TDSPacketType uint8