telnetlib and NT vs. AIX

dbeagle at my-deja.com dbeagle at my-deja.com
Tue Apr 18 09:27:19 EDT 2000


I am trying to figure out what the difference is
between telnet to Windows NT and AIX.  As you can
see below the calls made to each telnet server
are the same but for some reason (unknown to me)
after I enter username in the NT telnet session
it never returns asking for the password.
Testing on the AIX system worked as expected. The
printout from both sessions is shown below.

Thank you for your help
db

**************************************************
************
This is the attempt to log into NT.
**************************************************
************

C:\_work\logparse\telnet>c:\_langs\python\python
Python 1.5.2 (#0, Apr 13 1999, 10:51:12) [MSC 32
bit (Intel)] on win32
Copyright 1991-1995 Stichting Mathematisch
Centrum, Amsterdam
>>> import telnetlib
>>> tn = telnetlib.Telnet("WinNT4SVR_1")
>>> tn.set_debuglevel(10)
>>> tn.interact()
Telnet(WinNT4SVR_1,23): recv '\377\375\030\377
\375 \377\375#\377\375$'
Telnet(WinNT4SVR_1,23): IAC DO 253
Telnet(WinNT4SVR_1,23): IAC DO 253
Telnet(WinNT4SVR_1,23): IAC DO 253
Telnet(WinNT4SVR_1,23): IAC DO 253
Telnet(WinNT4SVR_1,23): recv '\377\373\003\377\375
\001\377\375\037\377\373\005\377\375!'
Telnet(WinNT4SVR_1,23): IAC WILL 251
Telnet(WinNT4SVR_1,23): IAC DO 253
Telnet(WinNT4SVR_1,23): IAC DO 253
Telnet(WinNT4SVR_1,23): IAC WILL 251
Telnet(WinNT4SVR_1,23): IAC DO 253
Telnet(WinNT4SVR_1,23): recv '\377\373\001'
Telnet(WinNT4SVR_1,23): IAC WILL 251
Telnet(WinNT4SVR_1,23): recv '\033[?7h\015
\012Welcome to WinNT4SVR_1\015\012(C) Copyright
1994-1'
?[?7h
Welcome to WinNT4SVR_1
(C) Copyright 1994-1Telnet(WinNT4SVR_1,23): recv
'998 Pragma Systems, Inc.\015\012\015\012login
name:
 '
998 Pragma Systems, Inc.

login name: username
Telnet(WinNT4SVR_1,23): send 'username\012'
Telnet(WinNT4SVR_1,23): recv 'u'
cTelnet(WinNT4SVR_1,23): recv 'sername'
ondtt
Telnet(WinNT4SVR_1,23): send '\012'

**************************************************
************
This is a far as I get on NT.  I can never get to
the password.
Below is the attempt to log into an AIX Sever.
**************************************************
************

>>> tn = telnetlib.Telnet("AIXSvr_2")
>>> tn.set_debuglevel(10)
>>> tn.interact()
Telnet(AIXSvr_2,23): recv '\377\376%\377\375\030'
Telnet(AIXSvr_2,23): IAC DONT 254
Telnet(AIXSvr_2,23): IAC DO 253
Telnet(AIXSvr_2,23): recv '\377\376\030\377\375
\030\377\373\001\377\373\003\377\375\037\377\374
\310\37
7\375\001\015\012\015\012telnet (AIXSvr_2)\015\012
\015\000\015\012\015\000'
Telnet(AIXSvr_2,23): IAC DONT 254
Telnet(AIXSvr_2,23): IAC DO 253
Telnet(AIXSvr_2,23): IAC WILL 251
Telnet(AIXSvr_2,23): IAC WILL 251
Telnet(AIXSvr_2,23): IAC DO 253
Telnet(AIXSvr_2,23): IAC WONT 252
Telnet(AIXSvr_2,23): IAC DO 253


telnet (AIXSvr_2)

Telnet(AIXSvr_2,23): recv '\015\012\015\012\015
\012\015\012\015\012\015\012\015\012\015\012\015
\012\01
5\012\015\012\015\012\015\012\015\012\015\012\015
\012\015\012\015\012\015\012\015\012\015\012\015
\01
2\015\012\015\012\015\012'

Telnet(AIXSvr_2,23): recv '\015\000AIX Version 4
\015\012\015\000(C) Copyrights by IBM and by ot'
AIX Version 4
(C) Copyrights by IBM and by otTelnet
(AIXSvr_2,23): recv 'hers 1982, 1996.\015\012\015
\000login: \377\
376\037\377\376\001'
Telnet(AIXSvr_2,23): IAC DONT 254
Telnet(AIXSvr_2,23): IAC DONT 254
hers 1982, 1996.
login: username
Telnet(AIXSvr_2,23): send 'username\012'
Telnet(AIXSvr_2,23): recv 'username\015\012'
username
Telnet(AIXSvr_2,23): recv "username's Password: "
username's Password: myPassword
Telnet(AIXSvr_2,23): send 'myPassword\012'
Telnet(AIXSvr_2,23): recv '\015\012'

Telnet(AIXSvr_2,23): recv
'*************************************************
*'
**************************************************
Telnet(AIXSvr_2,23): recv
'*************************
****\015\012*                  '
*****************************
*
Telnet(AIXSvr_2,23): recv
'
 '
Telnet(AIXSvr_2,23): recv '         *\015\012*

// Lots of garbage but the connection is made!!

Telnet(AIXSvr_2,23): recv
'AIXSvr_2:/u001/username>'
AIXSvr_2:/u001/username>exit




Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list