Documentation ¶
Index ¶
Constants ¶
const AO byte = 245
const AUTHOPT byte = 37
const AYT byte = 246
const ApproxMsgSizeNeg byte = 4
const BRK byte = 243
const BYTEMACRO byte = 19
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]
const CHARSET byte = 42
const COMPORT byte = 44
const DM byte = 242
const DO byte = 253
const DONT byte = 254
const DataEntryTerm byte = 20
const EC byte = 247
const ECHO byte = 1
https://users.cs.cf.ac.uk/Dave.Marshall/Internet/node141.html
const EL byte = 248
const ENCOPT byte = 38
const ENVVAR byte = 36
const EOR byte = 25
const EXTASCII byte = 17
const ForX byte = 49
const GA byte = 249
const IAC byte = 255
https://www.rfc-editor.org/rfc/rfc854
const IP byte = 244
const KERMIT byte = 47
const LINEMODE byte = 34
const LOGOUT byte = 18
const NEWENVOPT byte = 39
const NOP byte = 241
const OM byte = 27
const OUTCRD byte = 10
const OUTFFD byte = 13
const OUTHTD byte = 12
const OUTHTS byte = 11
const OUTLD byte = 16
const OUTLINEWIDTH byte = 8
const OUTPAGESIZE byte = 9
const OUTVT byte = 14
const OUTVTD byte = 15
const RECON byte = 2
const REMOTEFLOWCTRL byte = 33
const RemoteCtrlTE byte = 7
const SB byte = 250
const SE byte = 240
const SENDURL byte = 48
const STATUS byte = 5
const SUPDUP byte = 21
const SUPPRESSGOAHEAD byte = 3
const SendLoc byte = 23
const SupdupOut byte = 22
const T3270 byte = 29
const TACAS byte = 26
const TELNET = "telnet"
const TELPL byte = 138
const TELPRAGMA byte = 140
const TELSSPI byte = 139
const TERMLOCN byte = 28
const TERMSPEED byte = 32
const TERMTYPE byte = 24
const TIMINGMARK byte = 6
const TN327 byte = 40
const TRSP byte = 43
const TSLE byte = 45
const TSTLS byte = 46
const WILL byte = 251
const WINDOWSIZE byte = 31
const WONT byte = 252
const X3PAD byte = 30
const XAUTH byte = 41
const XDISP byte = 35
Variables ¶
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, }
var TelnetOptionsMap = map[byte]bool{ ECHO: true, SUPPRESSGOAHEAD: true, STATUS: true, TIMINGMARK: true, TERMTYPE: true, WINDOWSIZE: true, TERMSPEED: true, REMOTEFLOWCTRL: true, LINEMODE: true, ENVVAR: true, BinTransmission: true, RECON: true, ApproxMsgSizeNeg: true, RemoteCtrlTE: true, OUTLINEWIDTH: true, OUTPAGESIZE: true, OUTCRD: true, OUTHTS: true, OUTHTD: true, OUTFFD: true, OUTVT: true, OUTVTD: true, OUTLD: true, EXTASCII: true, LOGOUT: true, BYTEMACRO: true, DataEntryTerm: true, SUPDUP: true, SupdupOut: true, SendLoc: true, EOR: true, TACAS: true, OM: true, TERMLOCN: true, T3270: true, X3PAD: true, XDISP: true, AUTHOPT: true, ENCOPT: true, NEWENVOPT: true, TN327: true, XAUTH: true, CHARSET: true, TRSP: true, COMPORT: true, TSLE: true, TSTLS: true, KERMIT: true, SENDURL: true, ForX: true, TELPL: true, TELSSPI: true, TELPRAGMA: 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, config plugins.PluginConfig) (*plugins.PluginResults, error)
func (*TELNETPlugin) Type ¶
func (p *TELNETPlugin) Type() plugins.Protocol