AlkantarClanX12

Your IP : 18.191.87.157


Current Path : /lib64/python2.7/Demo/sockets/
Upload File :
Current File : //lib64/python2.7/Demo/sockets/telnet.pyo

�
Afc@s�ddlZddlZddlZddlTdZed�Zed�Zed�Zed�Z	ed�Z
d	�Zye�Wnek
r�nXdS(
i����N(t*ii�i�i�i�i�c
Cs!tjd}yt|�}Wn9tk
rXtjjtjdd�tjd�nXttj�dkr~tjd}nd}d|d ko�dknr�t|�}nHyt	|d�}Wn2tk
r�tjj|d�tjd�nXt
tt�}y|j
||f�Wn>tk
ra}tjjd	t|�d
�tjd�nXtj�}|dkr�x�tjj�}|j|�q}Wn}d}d}	xn|jt�}
|
s�tjjd
�tj|d�tjd�nd}x�|
D]�}|	r2t|�GH|j|	|�d}	q|r�d}|tkrW||}q�|ttfkr�|tkr|dGndGtt}	q�|ttfkr�|tkr�dGndGtt}	q�dGt|�GHq|tkr�d}dGq||}qWtjj|�tjj�q�WdS(Nis: bad host name
ittelnett0t9ttcps: bad tcp service name
sconnect failed: s
its(Closed by remote host)
i	s(DO)s(DONT)s(WILL)s(WONT)s	(command)s(IAC)(tsystargvt
gethostbynameterrortstderrtwritetexittlentevalt
getservbynametsockettAF_INETtSOCK_STREAMtconnecttreprtposixtforktstdintreadlinetsendtrecvtBUFSIZEtkilltordtIACtDOtDONTtWONTtWILLtstdouttflush(
thostthostaddrtservnametporttstmsgtpidtlinetiactopttdatat	cleandatatc((s+/usr/lib64/python2.7/Demo/sockets/telnet.pytmains|

 

	


(
RRttimeRRtchrRR RR!R"R2tKeyboardInterrupt(((s+/usr/lib64/python2.7/Demo/sockets/telnet.pyt<module>s$
	M