curl-users
[ curl-Bugs-656542 ] Curl 7.10.2 breaks "read" loops in ksh
Date: Thu, 19 Dec 2002 14:56:17 -0800
Bugs item #656542, was opened at 2002-12-19 14:56
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=656542&group_id=976
Category: telnet
Group: bad behaviour
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Linus Nielsen (linus_nielsen)
Summary: Curl 7.10.2 breaks "read" loops in ksh
Initial Comment:
Curl 7.10.2 breaks out of "read" loops in ksh when using
it to telnet to port 22 in order to grab SSH banners.
Eg.
$ cat ./ssh_checker
#!/bin/ksh
while read TARGETHOST
do
curl -m 1 telnet://"$TARGETHOST":22
done
$ ./ssh_checker < list_of_target_ips
SSH-1.99-OpenSSH_3.1p1
Protocol mismatch.
$
Please note that this worked in curl versions prior to
7.9.8. It stopped working in curl v7.9.8 because the "-
m" parameter stopped working properly and curl would
just hang the script after connecting to port 22. Now
with v7.10.2 curl generates a "Protocol mismatch" error
which somehow manages to break out of a ksh read
loop when telnetting to port 22 (for the purpose of
grabbing SSH banners).
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=656542&group_id=976
-------------------------------------------------------
This SF.NET email is sponsored by: Geek Gift Procrastinating?
Get the perfect geek gift now! Before the Holidays pass you by.
T H I N K G E E K . C O M http://www.thinkgeek.com/sf/
Received on 2002-12-19