python telnet
<br />import telnetlib debugging = 0 rcfile = None myfile=open('info.txt','r') filecontent=myfile.read().split('#') for perhost in filecontent: usage=perhost.split(';') telnet_host=usage[0].split(':')[1] telnet_userid = usage[1].split(':')[1] telnet_passwd
原创
2011-03-10 18:52:00 ·
611 阅读 ·
0 评论