| Server IP : 3.138.164.131 / Your IP : 216.73.216.136 Web Server : Apache System : Linux ns1.techtime.me 4.18.0-147.8.1.el8.lve.1.x86_64 #1 SMP Mon Jun 29 09:55:57 EDT 2020 x86_64 User : injazaat ( 1471) PHP Version : 8.1.20 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /lib64/python2.7/Demo/pysvr/ |
Upload File : |
�
���dc @ 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'