V Qc@sEddlZddlZddlTdZdZdZedS(iN(t*iOcCssttt}|j|tf|j|dx,|jd}|sOPntjj |q6tjj dS(Ns i( tsockettAF_INETt SOCK_STREAMtconnectt FINGER_PORTtsendtrecvtsyststdouttwritetflush(thosttargststbuf((s+/usr/lib64/python2.7/Demo/sockets/finger.pytfingerscCsd}d}xO|ttjkr]tj|d dkr]|tj|d}|d}qWtj|}|s}dg}nx^|D]V}d|krtj|d}||d}|| }nd}t|||qWdS(Ntit-t t@(tlenRtargvtstringtindexR(toptionstiR targtatR ((s+/usr/lib64/python2.7/Demo/sockets/finger.pytmain%s/     (RRRRRR(((s+/usr/lib64/python2.7/Demo/sockets/finger.pyt s