Detector

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: MIT Imports: 9 Imported by: 0

README

Go Protocol Detector

Network protocol detector.

Not Stable Version !

May be refactored in future use.

Support Protocol

  • RDP
  • FTP
  • SSH

How to use

See detector_test.go

TODO

  • Support SFTP detector
  • Support VNC detector
  • Support Telnet detector

How to implement

[中文教程]

Thanks

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRDPNotFound    = errors.New("rdp not found")
	ErrSSHNotFound    = errors.New("ssh not found")
	ErrFTPNotFound    = errors.New("ftp not found")
	ErrTelnetNotFound = errors.New("telnet not found")
)

Functions

This section is empty.

Types

type Detector

type Detector struct {
	// contains filtered or unexported fields
}

func NewDetector

func NewDetector(timeOut time.Duration) *Detector

func (Detector) FTPCheck

func (d Detector) FTPCheck(host, port string) error

func (Detector) RDPCheck

func (d Detector) RDPCheck(host, port string) error

func (Detector) SSHCheck

func (d Detector) SSHCheck(host, port string) error

func (Detector) TelnetCheck added in v0.2.0

func (d Detector) TelnetCheck(host, port string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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