Server IP : 162.213.251.212 / Your IP : 3.149.232.145 [ Web Server : LiteSpeed System : Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : allssztx ( 535) PHP Version : 8.1.31 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/thread-self/root/lib64/python2.7/Demo/pysvr/ |
Upload File : |
� Afc @ s� d Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d Z d � Z d d � Z d � Z d � Z d � Z d � Z d d l m Z e � d S( sI A multi-threaded telnet-like server that gives a Python prompt. This is really a prototype for the same thing in C. Usage: pysvr.py [port] For security reasons, it only accepts requests from the current host. This can still be insecure, but restricts violations from people who can log in on your machine. Use with caution! i����Ni� c C s� yD t j t j d d � \ } } t | � d k rC t j d � n Wn t j k rf } t | � n Xx | D] \ } } qn W| r� y t j | d � } Wq� t k r� } t | � q� Xn t } t | � d S( Ni t s Too many arguments.i ( t getoptt syst argvt lent errort usaget stringt atoit ValueErrort PORTt main_thread( t optst argst msgt ot at port( ( s( /usr/lib64/python2.7/Demo/pysvr/pysvr.pyt main s c C s3 t j t _ | r | GHn d Gt Gt j d � d S( Ns i ( R t stderrt stdoutt __doc__t exit( R ( ( s( /usr/lib64/python2.7/Demo/pysvr/pysvr.pyR % s c C s� t j t j t j � } | j d | f � | j d � d G| Gd GHxm | j � \ } } | d | j � d k r� | j � d G| d Gd GHqH n t j t | | f � ~ ~ qH Wd S( NR i s Listening on ports ...i s'