🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #253951

Re: telnet(1)-ing non-Telnet servers?

#253951
From: Ivan Shmakov
Date: Wed, 03 Apr 2013 14:56
59 lines
3656 bytes
>>>>> Barry Margolin <barmar@alum.mit.edu> writes:
>>>>> Ivan Shmakov <oneingray@gmail.com> wrote:
>>>>> Whiskers <catwheezel@operamail.com> writes:

[...]

 >>> ]$ telnet localhost nntp

 >> Won't telnet(1) go nuts should the article being fetched happen to
 >> contain an \xFF octet?  FWIW, I'd advocate for using nc(1) (AKA
 >> Netcat) here instead.  (Why, some of my hosts have no telnet(1)
 >> client installed at all.)

 > NNTP is a text protocol, binaries are sent encoded in ASCII (either
 > base64

	There also is the case of non-ASCII (as in: UTF-8) plain text.
	Which may be either encoded in 7-bit (either quoted-printable or
	Base64), or left "unencoded" 8-bit.

	My understanding is that the major NNTP implementations of today
	allow for 8-bit-clean transfer (with the obvious exception for
	\x00, \x0A, \x0D), and RFC 5537 seem to prohibit an NNTP
	transport from munging the content, whether the most significant
	bit is set or not.  (Although an implementation is still allowed
	to reject an article it isn't capable of passing through.)

	Consider, e. g.:

--cut: urn:ietf:rfc:5537 --
   Transports for Netnews articles MUST treat news articles as
   uninterpreted sequences of octets, excluding the values %d00 (which
   may not occur in Netnews articles), %d13, and %d10 (which MUST only
   appear in Netnews articles as a pair in that order and which,
   together, denote a line separator).  [...]
--cut: urn:ietf:rfc:5537 --

 > or uuencoded, I think).

	Somehow, I doubt MIME allows for uuencoded data.  And while such
	an encoding doesn't require MIME, I know of no good reason to
	use it instead of "properly MIMEd" Base64.

 > There shouldn't be any \xFF octets.

	Specifically, while UTF-8 doesn't seem to use \xFF, ISO-8859-1
	assigns it for LATIN SMALL LETTER Y WITH DIAERESIS, windows-1251
	for CYRILLIC SMALL LETTER YA, and so on.

 > Also, when telnet connects to a non-default port, it doesn't try to
 > negotiate TELNET options.  Does it still react to them if it receives
 > them?

	Frankly, I don't know for sure.  My guess is that it may vary
	between implementations.  I'd prefer to be on the "safe side,"
	however, which is: nc(1).

-- 
FSF associate member #7257	http://hfday.org/
Technical Details
Message-ID: <87r4iry86a.fsf@violet.siamics.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!rt.uk.eu.org!aioe.org!.POSTED!not-for-mail
References: <slrnkl884t.2no.notbob@nbleet.hcc.net> <874nfv7dwn.fsf@violet.siamics.net> <kj1qcp$i18$1@optima5.xanadu-bbs.net> <slrnkl9pt3.2mg.catwheezel@ID-107770.user.individual.net> <8738v7zwu4.fsf_-_@violet.siamics.net> <barmar-8C5837.10162703042013@news.eternal-september.org>

Show Full Headers
Complete Article Headers
Message-ID: <87r4iry86a.fsf@violet.siamics.net>
Subject: Re: telnet(1)-ing non-Telnet servers?
Date: Wed, 03 Apr 2013 14:56:29 +0000
From: Ivan Shmakov <oneingray@gmail.com>
References: <slrnkl884t.2no.notbob@nbleet.hcc.net> <874nfv7dwn.fsf@violet.siamics.net> <kj1qcp$i18$1@optima5.xanadu-bbs.net> <slrnkl9pt3.2mg.catwheezel@ID-107770.user.individual.net> <8738v7zwu4.fsf_-_@violet.siamics.net> <barmar-8C5837.10162703042013@news.eternal-september.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!rt.uk.eu.org!aioe.org!.POSTED!not-for-mail
Newsgroups: news.software.readers,comp.protocols.tcp-ip
Organization: Aioe.org NNTP Server
Lines: 59
NNTP-Posting-Host: 41vvMPMLxfEjizuK6lSUHw.user.speranza.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@aioe.org
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)
X-Notice: Filtered by postfilter v. 0.8.2
Cancel-Lock: sha1:4dR9I1sbVwm5A68YdYgG9471/ks=
X-Original-Bytes: 3441