Hello,I have written this script to telnet from Ubuntu system to windows7 running system. This script goes fine upto login name, then it takes the password but it is not able to process the password. Although it looks as if the password has reached other side but in real it doesn't reach, as we can see it doesn't enter the 'C:>'prompt. Later I have given a command, even the command is not getting processed. Can anyone please tell me whats wrong with this script or why I am unable to get into winndows machine ???? Thanks !!!!!!!
import telnetlib
import sys
import time
import os
tn = telnetlib.Telnet('192.168.10.15')
#tn.interact()
tn.set_debuglevel(9)
tn.read_until('Service',15)
tn.read_until('\n\rlogin: ',5)
time.sleep(2)
tn.write('admin\n')
#tn.write('\n')
tn.read_until('password:',5)
time.sleep(2)
tn.write('password')
#tn.write('\n')
#time.sleep(5)
tn.read_until('>',15)
tn.write('help')
time.sleep(2)
str_All = tn.read_some()
print "666666666 "+str_All+" 66666666 \n"
str_All = tn.read_eager()
print "666666666 "+str_All+" 66666666 \n"
str_All = tn.read_some()
print "666666666 "+str_All+" 66666666 \n"
str_All = tn.read_some()
print "666666666 "+str_All+" 66666666 \n"