403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/serial/urlhandler/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/serial/urlhandler/__pycache__/protocol_loop.cpython-314.pyc
+
��a_)���^RIHt^RIt^RIt^RIt^RIt^RI	t	^RIHtH
t
HtHtHtHtR]P$R]P&R]P(R]P*/t!RR	]4t]R
8Xd�^RIt]!R4t]P6P9RP;]44]P6P9R
4]P9R4]P=4]P6P9RP;]P?^444]PA4R#R# ]d^RIHtEL(i;i ]d	^RI
t	EL5i;i)�)�absolute_importN)�
SerialBase�SerialException�to_bytes�	iterbytes�SerialTimeoutException�PortNotOpenError�debug�info�warning�errorc��aa�]tRt^)toRtRtV3RltRtV3RltRt	Rt
]R4tRRlt
R	tR
tRtRtR
t]R4tRtRtRt]R4t]R4t]R4t]R4tRtVtV;t#)�SerialzSSerial port implementation that simulates a loop back connection in plain software.c�h<�RVnRVnRVnRVn\\
V`!V/VBR#)iNF)�buffer_size�queue�logger�
_cancel_write�superr�__init__)�self�args�kwargs�	__class__s&*,��A/usr/lib/python3/dist-packages/serial/urlhandler/protocol_loop.pyr�Serial.__init__/s5��������
����"���
�f�d�$�d�5�f�5�c��VP'd\R4hRVn\P!VP
4VnVPf\R4hVPVP4VP4RVnVP'gVP4VP'gVP4VP4VP4R#)z`Open port with current settings. This may throw a SerialException
if the port cannot be opened.
zPort is already open.Nz.Port must be configured before it can be used.T)�is_openrrr�Queuer�_port�from_url�port�_reconfigure_port�_dsrdtr�_update_dtr_state�_rtscts�_update_rts_state�reset_input_buffer�reset_output_buffer�rs&r�open�Serial.open6s���
�<�<�<�!�"9�:�:�����[�[��!1�!1�2��
��:�:��!�"R�S�S�	
�
�
�d�i�i� �	
��� �����|�|�|��"�"�$��|�|�|��"�"�$����!�� � �"rc��<�VP'd$RVnVPPR4\\
V`4R# \PdL+i;i)FN)rr�
put_nowait�Fullrr�close)rrs&�rr1�Serial.closeQsQ����<�<�<� �D�L�
��
�
�%�%�d�+�	�f�d�!�#���:�:�
��
�s�A�A#�"A#c�6�\VP\P4'd^VPu;8dR8g'M\	RPVP44hVP'dVPPR4R#R#)z`Set communication parameters on opened port. For the loop://
protocol all settings are ignored!
zinvalid baudrate: {!r}z_reconfigure_port()Nl)�
isinstance�	_baudrate�numbers�Integral�
ValueError�formatrrr+s&rr$�Serial._reconfigure_portZsh���$�.�.�'�*:�*:�;�;�1�t�~�~�C_�X_�C_��5�<�<�T�^�^�L�M�M��;�;�;��K�K���2�3�rc��\P!V4pVPR8wd%\RP	VP44h\P
!VPR4P4F�wr4VR8Xd{\P!4\P!R4VnVPP\V^,,4VPPR4K�\RP	V44h	R	# \d p\RP	T44hR	p?ii;i)
z(extract host and port from an URL string�loopznexpected a string in the form "loop://[?logging={debug|info|warning|error}]": not starting with loop:// ({!r})T�loggingz
pySerial.loopzenabled loggingzunknown option: {!r}zPexpected a string in the form "loop://[?logging={debug|info|warning|error}]": {}N)�urlparse�urlsplit�schemerr9�parse_qs�query�itemsr=�basicConfig�	getLoggerr�setLevel�
LOGGER_LEVELSr
r8)r�url�parts�option�values�es&&    rr"�Serial.from_urles���!�!�#�&���<�<�6�!�!�&�&,�f�U�\�\�&:�<�
<�
	P�"*�"3�"3�E�K�K��"F�"L�"L�"N����Y�&��'�'�)�")�"3�"3�O�"D�D�K��K�K�(�(��v�a�y�)A�B��K�K�%�%�&7�8�$�%;�%B�%B�6�%J�K�K�#O���	P�!�E�EK�V�A�Y�P�
P��	P�s�
CD � E
�+E�E
c��VP'g\4hVP'dCVPPRP	VP
P
444VP
P
4#)z9Return the number of bytes currently in the input buffer.zin_waiting -> {:d}�rr	rr
r9r�qsizer+s&r�
in_waiting�Serial.in_waiting~s_���|�|�|�"�$�$��;�;�;�
�K�K���2�9�9�$�*�*�:J�:J�:L�M�N��z�z���!�!rc��VP'g\4hVPe9VP^8wd(\P!4VP,pMRp\	4pV^8�d�VP'd�VP
P
VPR7pVeW4,
pV^,pMMTV'gKa\P!4V8�gK}VP'dVPPR4\V4# \
PdTP^8XdK4L�i;i)z�Read size bytes from the serial port. If a timeout is set it may
return less characters as requested. With no timeout it will block
until the requested number of bytes is read.
N��timeoutzread timeout)rr	�_timeout�time�	bytearrayr�get�Emptyrr�bytes)r�sizerU�data�bs&&   r�read�Serial.read�s����|�|�|�"�$�$��=�=�$����!�);��i�i�k�D�M�M�1�G��G��{���Q�h�4�<�<�<�

��J�J�N�N�4�=�=�N�9��
�=��I�D��A�I�D���w�4�9�9�;��0��;�;�;��K�K�$�$�^�4���T�{����;�;�
��=�=�A�%��&�
�s�	&D%�%&E�Ec�<�VPPR4R#)N)rr/r+s&r�cancel_read�Serial.cancel_read�s���
�
���d�#rc��RVnR#)TN)rr+s&r�cancel_write�Serial.cancel_write�s
��!��rc�D�RVnVP'g\4h\V4pR\	V4,VP
,pVPe�W P8�dpVPpV^8�d>VP'g,\P!\VR44VR,pKDVP'd^#\R4h\V4F)pVPPW@PR7K+	\	V4#)z�Output the given byte string over the serial port. Can block if the
connection is blocked. May raise SerialException if the connection is
closed.
Fg$@g�?z
Write timeoutrT)rrr	r�lenr5�_write_timeoutrW�sleep�minrrr�put)rr]�time_used_to_send�	time_left�bytes&&   r�write�Serial.write�s���#����|�|�|�"�$�$���~�� �3�t�9�,�t�~�~�=�����*�/@�CV�CV�/V��+�+�I��a�-��(:�(:�(:��
�
�3�y�#�.�/��S� �	��!�!�!��(��9�9��d�O�D��J�J�N�N�4�)<�)<�N�=�$��4�y�rc�J�VP'g\4hVP'dVPPR4VPP4'dVPP
4K<R# \PdR#i;i)z9Clear input buffer, discarding all that is in the buffer.zreset_input_buffer()N�rr	rrrrP�
get_nowaitrZr+s&rr)�Serial.reset_input_buffer�ss���|�|�|�"�$�$��;�;�;��K�K���3�4�	��*�*�"�"�$�$��
�
�%�%�'�%���{�{�	��	���B	�+B	�	B"�!B"c�J�VP'g\4hVP'dVPPR4VPP4'dVPP
4K<R# \PdR#i;i)z[Clear output buffer, aborting the current output and
discarding all that is in the buffer.
zreset_output_buffer()Nrsr+s&rr*�Serial.reset_output_buffer�su��
�|�|�|�"�$�$��;�;�;��K�K���4�5�	��*�*�"�"�$�$��
�
�%�%�'�%���{�{�	��	�rvc��VP'g\4hVP'dCVPPRP	VP
P
444VP
P
4#)z0Return how many bytes the in the outgoing bufferzout_waiting -> {:d}rOr+s&r�out_waiting�Serial.out_waiting�s_���|�|�|�"�$�$��;�;�;�
�K�K���3�:�:�4�:�:�;K�;K�;M�N�O��z�z���!�!rc��VP'd7VPPRPVP44R#R#)zCSet break: Controls TXD. When active, to transmitting is
possible.
z_update_break_state({!r})N)rrr9�_break_stater+s&r�_update_break_state�Serial._update_break_state�s6��
�;�;�;��K�K���8�?�?��@Q�@Q�R�S�rc��VP'd7VPPRPVP44R#R#)z)Set terminal status line: Request To Sendz'_update_rts_state({!r}) -> state of CTSN)rrr9�
_rts_stater+s&rr(�Serial._update_rts_state��2���;�;�;��K�K���F�M�M�d�o�o�^�_�rc��VP'd7VPPRPVP44R#R#)z-Set terminal status line: Data Terminal Readyz'_update_dtr_state({!r}) -> state of DSRN�rrr9�
_dtr_stater+s&rr&�Serial._update_dtr_state�r�rc���VP'g\4hVP'd5VPPRP	VP
44VP
#)z(Read terminal status line: Clear To SendzCTS -> state of RTS ({!r}))rr	rrr9r�r+s&r�cts�
Serial.ctssK���|�|�|�"�$�$��;�;�;��K�K���9�@�@����Q�R����rc��VP'd5VPPRPVP44VP#)z)Read terminal status line: Data Set ReadyzDSR -> state of DTR ({!r})r�r+s&r�dsr�
Serial.dsrs9���;�;�;��K�K���9�@�@����Q�R����rc��VP'g\4hVP'dVPPR4R#)z)Read terminal status line: Ring Indicatorzreturning dummy for RIF�rr	rrr+s&r�ri�	Serial.ris5���|�|�|�"�$�$��;�;�;��K�K���5�6�rc��VP'g\4hVP'dVPPR4R#)z)Read terminal status line: Carrier Detectzreturning dummy for CDTr�r+s&r�cd�	Serial.cds5���|�|�|�"�$�$��;�;�;��K�K���5�6�r)rrrrr)�2�K�n����i,iXi�ii`	i�i�%iKi�i�i�)�)�__name__�
__module__�__qualname__�__firstlineno__�__doc__�	BAUDRATESrr,r1r$r"�propertyrQr_rbrerpr)r*rzr~r(r&r�r�r�r��__static_attributes__�__classdictcell__�
__classcell__)r�
__classdict__s@@rrr)s�����]�4�I�6�#�6$�	4�P�2�"��"��B$�"��6
�
��"��"�T�`�
`�
����������������rr�__main__zloop://z{}
z	write...
zhello
zread: {!r}
)!�
__future__rr=r6rWr>�ImportError�urllib.parse�parserr �serial.serialutilrrrrrr	�DEBUG�INFO�WARNING�ERRORrGrr��sys�s�stdoutrpr9�flushr_r1�rr�<module>r�s�� '����$����y�x��W�]�]�
�G�L�L�
�w����W�]�]�	�
�z�Z�z�B�z����y��A��J�J���V�]�]�1�%�&��J�J���\�"��G�G�I���G�G�I��J�J���^�*�*�1�6�6�!�9�5�6��G�G�I���g�$�#�#�$������s"�D0�E�0
E�E�E�E

Youez - 2016 - github.com/yon3zu
LinuXploit