telnet

package
v1.1.13 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 5 Imported by: 8

Documentation

Index

Constants

View Source
const AO byte = 245
View Source
const AUTHOPT byte = 37
View Source
const AYT byte = 246
View Source
const ApproxMsgSizeNeg byte = 4
View Source
const BRK byte = 243
View Source
const BYTEMACRO byte = 19
View Source
const BinTransmission byte = 0

https://www.iana.org/assignments/telnet-options/telnet-options.xhtml Binary Transmission [RFC856] Reconnection [NIC 15391 of 1973] Approx Message Size Negotiation [NIC 15393 of 1973] Remote Controlled Trans and Echo [RFC726] Output Line Width [NIC 20196 of August 1978] Output Page Size [NIC 20197 of August 1978] Output Carriage-Return Disposition [RFC652] Output Horizontal Tab Stops [RFC653] Output Horizontal Tab Disposition [RFC654] Output Formfeed Disposition [RFC655] Output Vertical Tabstops [RFC656] Output Vertical Tab Disposition [RFC657] Output Linefeed Disposition [RFC658] Extended ASCII [RFC698] Logout [RFC727] Byte Macro [RFC735] Data Entry Terminal [RFC1043][RFC732] SUPDUP [RFC736][RFC734] SUPDUP Output [RFC749] Send Location [RFC779] End of Record [RFC885] TACACS User Identification [RFC927] Output Marking [RFC933] Terminal Location Number [RFC946] Telnet 3270 Regime [RFC1041] X.3 PAD [RFC1053] X Display Location [RFC1096] Authentication Option [RFC2941] Encryption Option [RFC2946] New Environment Option [RFC1572] TN3270E [RFC2355] XAUTH [Rob_Earhart] CHARSET [RFC2066] Telnet Remote Serial Port (RSP) [Robert_Barnes] Com Port Control Option [RFC2217] Telnet Suppress Local Echo [Wirt_Atmar] Telnet Start TLS [Michael_Boe] KERMIT [RFC2840] SEND-URL [David_Croft] FORWARD_X [Jeffrey_Altman] TELOPT PRAGMA LOGON [Steve_McGregory] TELOPT SSPI LOGON [Steve_McGregory] TELOPT PRAGMA HEARTBEAT [Steve_McGregory]

View Source
const CHARSET byte = 42
View Source
const COMPORT byte = 44
View Source
const DM byte = 242
View Source
const DO byte = 253
View Source
const DONT byte = 254
View Source
const DataEntryTerm byte = 20
View Source
const EC byte = 247
View Source
const ECHO byte = 1

https://users.cs.cf.ac.uk/Dave.Marshall/Internet/node141.html

View Source
const EL byte = 248
View Source
const ENCOPT byte = 38
View Source
const ENVVAR byte = 36
View Source
const EOR byte = 25
View Source
const EXTASCII byte = 17
View Source
const ForX byte = 49
View Source
const GA byte = 249
View Source
const IAC byte = 255

https://www.rfc-editor.org/rfc/rfc854

View Source
const IP byte = 244
View Source
const KERMIT byte = 47
View Source
const LINEMODE byte = 34
View Source
const LOGOUT byte = 18
View Source
const NEWENVOPT byte = 39
View Source
const NOP byte = 241
View Source
const OM byte = 27
View Source
const OUTCRD byte = 10
View Source
const OUTFFD byte = 13
View Source
const OUTHTD byte = 12
View Source
const OUTHTS byte = 11
View Source
const OUTLD byte = 16
View Source
const OUTLINEWIDTH byte = 8
View Source
const OUTPAGESIZE byte = 9
View Source
const OUTVT byte = 14
View Source
const OUTVTD byte = 15
View Source
const RECON byte = 2
View Source
const REMOTEFLOWCTRL byte = 33
View Source
const RemoteCtrlTE byte = 7
View Source
const SB byte = 250
View Source
const SE byte = 240
View Source
const SENDURL byte = 48
View Source
const STATUS byte = 5
View Source
const SUPDUP byte = 21
View Source
const SUPPRESSGOAHEAD byte = 3
View Source
const SendLoc byte = 23
View Source
const SupdupOut byte = 22
View Source
const T3270 byte = 29
View Source
const TACAS byte = 26
View Source
const TELNET = "telnet"
View Source
const TELPL byte = 138
View Source
const TELPRAGMA byte = 140
View Source
const TELSSPI byte = 139
View Source
const TERMLOCN byte = 28
View Source
const TERMSPEED byte = 32
View Source
const TERMTYPE byte = 24
View Source
const TIMINGMARK byte = 6
View Source
const TN327 byte = 40
View Source
const TRSP byte = 43
View Source
const TSLE byte = 45
View Source
const TSTLS byte = 46
View Source
const WILL byte = 251
View Source
const WINDOWSIZE byte = 31
View Source
const WONT byte = 252
View Source
const X3PAD byte = 30
View Source
const XAUTH byte = 41
View Source
const XDISP byte = 35

Variables

View Source
var TelnetCommandMap = map[byte]bool{
	IAC:  true,
	DONT: true,
	DO:   true,
	WONT: true,
	WILL: true,
	SE:   true,
	NOP:  true,
	DM:   true,
	BRK:  true,
	IP:   true,
	AO:   true,
	AYT:  true,
	EC:   true,
	EL:   true,
	GA:   true,
	SB:   true,
}

https://users.cs.cf.ac.uk/Dave.Marshall/Internet/node141.html https://www.iana.org/assignments/telnet-options/telnet-options.xhtml

Functions

This section is empty.

Types

type TELNETPlugin

type TELNETPlugin struct{}

func (*TELNETPlugin) Name

func (p *TELNETPlugin) Name() string

func (*TELNETPlugin) PortPriority

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

func (*TELNETPlugin) Priority

func (p *TELNETPlugin) Priority() int

func (*TELNETPlugin) Run

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

func (*TELNETPlugin) Type

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

Jump to

Keyboard shortcuts

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