Article View: aus.computers.linux
Article #816using netcat with pesky newsserver
From: John Savage
Date: Sat, 20 Jun 2009 09:15
Date: Sat, 20 Jun 2009 09:15
37 lines
2538 bytes
2538 bytes
I'm trying to use netcat to automate a telnet session to a newsserver
and it's proving difficult. Here's how the session goes using telnet:
$ telnet eu.usenet-news.net 119
Trying 69.16.176.253...
Connected to newsfarm.ams2.highwinds-media.com.
Escape character is '^]'.
200 (newsfe09.ams2) -- Welcome (Tornado v1.2.7.560)
authinfo user xxx
381 More Authentication Required
.....etc
Here's as far as it goes using netcat:
# { echo authinfo user XYZ;echo authinfo pass XYZ;
} | netcat -i 1 -w 5 eu.usenet-news.net 119
200 (newsfe23.ams2) -- Welcome (Tornado v1.2.7.560)
#
Now, this could be termed a "problem" server. Not all so-called
"telnets" will correctly connect to it. For example, the "telnet"
on Puppy Linux gets no further than what I've shown above for
netcat. Puppy's telnet hangs right after the 200 (newsfe23....)
line and doesn't make use of the authinfo line or any further.
I've tried a couple of netcats, on two linuxes, all 3 netcats get
stuck identically with this particular newsserver.
So I installed putty. Using putty, I need to set it to "raw"
in order to have it correctly connect to this server and accept
authinfo data, otherwise it hangs in the same way as do the
netcats. (For most servers, putty needs to be set to "telnet".)
Can anyone see a setting I can resort to in netcat to achieve
the equivalent in netcat of putty's raw mode?
--
John Savage (my news address is not valid for email)
Technical Details
Message-ID:
<0906200192042.20Jun09$rookswood@suburbian.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsfeed.sovam.com!goblin3!goblin.stu.neva.ru!exi-transit.telstra.net!pit-in1.telstra.net!news.telstra.net!news-south.connect.com.au!!emusShow Full Headers
Complete Article Headers
X-Google-Thread: cfc73a2246,3aabcee40a190dee,start X-Google-Attributes: gidcfc73a2246,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsfeed.sovam.com!goblin3!goblin.stu.neva.ru!exi-transit.telstra.net!pit-in1.telstra.net!news.telstra.net!news-south.connect.com.au!!emus From: John Savage <rookswood@suburbian.com.au> Newsgroups: aus.computers.linux Subject: using netcat with pesky newsserver Date: Sat, 20 Jun 2009 09:15:53 +0000 (UTC) Organization: Gumleaf Smoke Signal Productions Lines: 37 Message-ID: <0906200192042.20Jun09$rookswood@suburbian.com> NNTP-Posting-Host: news.ozonline.com.au X-Trace: news-01.bur.connect.com.au 1245489353 13713 203.4.248.42 (20 Jun 2009 09:15:53 GMT) X-Complaints-To: abuse@connect.com.au NNTP-Posting-Date: Sat, 20 Jun 2009 09:15:53 +0000 (UTC) Cache-Post-Path: kangaroo.ozonline.com.au!unknown@34.14.194.203.dial.dynamic.acc07-kent-syd.comindico.com.au X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/)