Code:
import getpass
import telnetlib
import time
from os.path import isfile
sleept = 5 #wait for router to response
debug=0 # 0 : off 1: on
#host = raw_input("Enter Router IP:")
user = "cisco"  # raw_input("Enter your remote account: ")
password ="cisco"  #getpass.getpass()
hostname = ""#raw_input("If you know hostname of router enter (else leave blank):")
cmdprompt = hostname + ">"
if isfile("iplist.txt"):
    f=open("iplist.txt","r")
    data=f.read()
    iplist = data.split("\n")
else:
    print "File iplist.txt not found in current directory\n"
    #print "Using default ip address as ping targets\n"
    #iplist = ['192.168.1.1','192.168.1.2']
for host in iplist:
	print "Connecting to", host
	error = 0    
	try:
		tn = telnetlib.Telnet(host)
		data=tn.read_until(":",120)
	except:
		error = 1
        if error == 1:
		print "Connection Refused"
	elif tn:
		if debug: print "\nTrying to login\n"
		
		#print "Got:",data
		if "Username:" in data and user != "":
    			#tn.read_until("Username: ")
    			tn.write(user + "\n")
    			time.sleep(sleept)
    			data=tn.read_until(":",120)
                    
		if "Password:" in data:
    			#tn.read_until("Password:")
                        if debug: print "trying password"
    			tn.write(password + "\n")
    			if debug: print "send password"
    			"""
    			re = tn.read_very_lazy()
    			print "Got:",re
    			re = tn.read_very_eager()
    			res = re
    			while re != '':
                           re = tn.read_eager()
                           res = res + re
                        """
    			time.sleep(sleept)
                        #res=tn.read_until(cmdprompt,120)
    			res = tn.read_very_eager()
                        if debug: print res
                        if ">" in res:
                                print "Logged in with pass",password
                        if "#" in res:
                                print "Logged in to " + host + " with pass:",password," ***No Enable Password set"
                        if "Password:" in res or "% Authentication failed" in res:
                                print "Not able to login in",host
                        #tn.write("conf t")
                        #tn.write("exit\n")
		tn.close()
PSONT ask for UI or HOW to Run......... its not meant for script kiddies