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_socket.cpython-314.pyc
+
Ȧ^_�7���^RIHt^RIt^RIt^RIt^RIt^RIt^RIt^RIHtH
t
HtHtHtHtR]P$R]P&R]P(R]P*/t^t!RR	]4t]R
8Xd�^RIt]!R4t]P8P;RP=]44]P8P;R
4]P;R4]P?4]P8P;RP=]PA^444]PC4R#R# ]d^RI	H
tEL%i;i)�)�absolute_importN)�
SerialBase�SerialException�to_bytes�PortNotOpenError�SerialTimeoutException�Timeout�debug�info�warning�errorc��a�]tRt^-toRtRtRtRtRtRt	]
R4tRRltRt
R	tR
tRRltRtR
tRt]
R4t]
R4t]
R4t]
R4tRtRtVtR#)�Serialz-Serial port implementation for plain sockets.c��RVnVPf\R4hVP'd\R4h\P
!VP
VP4\R7Vn	TPPR4TP4RTnTP'gTP4TP 'gTP#4TP%4TP'4R# \d2pRTn	\RPTPT44hRp?ii;i)z`Open port with current settings. This may throw a SerialException
if the port cannot be opened.
Nz.Port must be configured before it can be used.zPort is already open.)�timeoutzCould not open port {}: {}FT)�logger�_portr�is_open�socket�create_connection�from_url�portstr�POLL_TIMEOUT�_socket�	Exception�format�setblocking�_reconfigure_port�_dsrdtr�_update_dtr_state�_rtscts�_update_rts_state�reset_input_buffer�reset_output_buffer)�self�msgs& �C/usr/lib/python3/dist-packages/serial/urlhandler/protocol_socket.py�open�Serial.open3s��
����:�:��!�"R�S�S��<�<�<�!�"9�:�:�	Z�!�3�3�D�M�M�$�,�,�4O�Ye�f�D�L�
	
��� � ��'�	
��� �����|�|�|��"�"�$��|�|�|��"�"�$����!�� � �"���	Z��D�L�!�">�"E�"E�d�l�l�TW�"X�Y�Y��	Z�s�:D�E
�,E�E
c��VPf\R4hVP'dVPPR4R#R#)zbSet communication parameters on opened port. For the socket://
protocol all settings are ignored!
NzCan only operate on open portsz!ignored port configuration change)rrrr�r%s&r'r�Serial._reconfigure_portQs;��
�<�<��!�"B�C�C��;�;�;��K�K���@�A��c�0�VP'd}VP'dLVPP\P4VPP4RTnRVn\P!R4R#R# L,;i)z
Close portNFg333333�?)rr�shutdownr�	SHUT_RDWR�close�time�sleepr+s&r'r1�Serial.close[sk���<�<�<��|�|�|���L�L�)�)�&�*:�*:�;��L�L�&�&�(� $��� �D�L��J�J�s�O���
��s�AB�Bc��\P!V4pVPR8wd%\RP	VP44h\P
!VPR4P4F�wr4VR8Xd{\P!4\P!R4VnVPP\V^,,4VPPR4K�\RP	V44h	^VP u;8:dR8gM\R	4hTP"TP 3# \d p\R
P	T44hRp?ii;i)z(extract host and port from an URL stringrzexpected a string in the form "socket://<host>:<port>[?logging={debug|info|warning|error}]": not starting with socket:// ({!r})T�loggingzpySerial.socketzenabled loggingzunknown option: {!r}izport not in range 0...65535z_expected a string in the form "socket://<host>:<port>[?logging={debug|info|warning|error}]": {}N)�urlparse�urlsplit�schemerr�parse_qs�query�itemsr6�basicConfig�	getLoggerr�setLevel�
LOGGER_LEVELSr
�
ValueError�port�hostname)r%�url�parts�option�values�es&&    r'r�Serial.from_urljsG���!�!�#�&���<�<�8�#�!�5�5;�V�E�L�L�5I�K�
K�	_�"*�"3�"3�E�K�K��"F�"L�"L�"N����Y�&��'�'�)�")�"3�"3�4E�"F�D�K��K�K�(�(��v�a�y�)A�B��K�K�%�%�&7�8�$�%;�%B�%B�6�%J�K�K�#O���
�
�*�U�*� �!>�?�?�+�����
�
�+�+���	_�!�T�TZ�TZ�[\�T]�_�
_��	_�s�
C7E�F�(F�Fc��VP'g\4h\P!VP...^4wrp\	V4#)z9Return the number of bytes currently in the input buffer.)rr�selectr�len)r%�lr�lw�lxs&   r'�
in_waiting�Serial.in_waiting�s?���|�|�|�"�$�$��]�]�D�L�L�>�2�r�1�=�
����2�w�r-c�\�VP'g\4h\4p\VP4p\V4V8d�\P!VP...VP44wppV'gMhVPPV\V4,
4pV'g\R4hVPV4VP-4'gK�\/V4# \d�pTP\P\P\P \P"\P$39d\RP'T44hRp?L�Rp?i\P(\*P(3dpT^,\P\P\P \P"\P$39d\RP'T44hRp?ELKRp?ii;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.
zsocket disconnected�read failed: {}N)rr�	bytearrayr	�_timeoutrLrKr�	time_left�recvr�extend�OSError�errno�EAGAIN�EALREADY�EWOULDBLOCK�EINPROGRESS�EINTRrr
r�expired�bytes)r%�size�readr�ready�_�bufrHs&&      r'rc�Serial.read�s����|�|�|�"�$�$��{���$�-�-�(���$�i�$��
G�$�m�m�T�\�\�N�B��G�DU�DU�DW�X���q�!�
���l�l�'�'��s�4�y�(8�9���)�*?�@�@����C� ���� � ���T�{����
G��7�7�5�<�<�����AR�AR�TY�Te�Te�gl�gr�gr�"s�s�)�*;�*B�*B�1�*E�F�F�t���L�L�&�,�,�/�
G��Q�4����e�n�n�e�>O�>O�QV�Qb�Qb�di�do�do�p�p�)�*;�*B�*B�1�*E�F�F�q��	
G�s3�
=C?�AC?�?H+�
A6F�&H+�,H+�-A3H&�&H+c��VP'g\4h\V4p\V4;r4\	VP
4pV^8�Ed@VPPV4pVP'dV#VP'gkVP4'd\R4h\P!.VP..VP44wrxpV'g\R4hMNVP4eQh\P!.VP..R4wrxpV'g\R4hW&RpW6,pTP'dEK#TP4'gEK<\R4hV\V4,
# \dh\d�p	T	P \ P"\ P$\ P&\ P(\ P*39d\RP-T	44hRp	?	L�Rp	?	i\P.dp	T	^,\ P"\ P$\ P&\ P(\ P*39d\RP-T	44hRp	?	ELmRp	?	ii;i)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.
z
Write timeoutNzwrite failed (select)zwrite failed: {})rrrrLr	�_write_timeoutr�send�is_non_blocking�is_infiniter`rrKrVrrYrZr[r\r]r^r_rr
)
r%�data�d�tx_len�lengthr�nrerdrHs
&&        r'�write�Serial.write�s'���|�|�|�"�$�$��T�N���a�&� ���$�-�-�.���q�j�#
H��L�L�%�%�a�(���*�*�*��H� �,�,�,����(�(�4�_�E�E�"(�-�-��T�\�\�N�B��HY�HY�H[�"\�K�A�a� �4�_�E�E�!�#�,�,�.�6�6�6�"(�-�-��T�\�\�N�B��"M�K�A�a� �-�.E�F�F��b�E������*�*�*�w���/@�/@�,�_�=�=���A�����!#�
���
H��7�7�5�<�<�����AR�AR�TY�Te�Te�gl�gr�gr�"s�s�)�*<�*C�*C�A�*F�G�G�t���<�<�
H��Q�4����e�n�n�e�>O�>O�QV�Qb�Qb�di�do�do�p�p�)�*<�*C�*C�A�*F�G�G�q��	
H�sK�,F"�?F"�F"�F"�)B.F"�"K	�7K	�8A6H3�3K	�
K	�A3K�K	c�T�VP'g\4hRpV'dQ\P!VP...^4wppV'dVPP	R4pKVKXR# \
d�pTP\P\P\P\P\P39d\RPT44hRp?K�Rp?i\P\P3d�pT^,\P\P\P\P\P39d\RPT44hRp?EK�Rp?ii;i)z9Clear input buffer, discarding all that is in the buffer.TirSN)rrrKrrWrYrZr[r\r]r^r_rrr
r)r%rdrerHs&   r'r#�Serial.reset_input_buffer�s4���|�|�|�"�$�$���� �-�-������B��B�K�E�1�a�
G�� �L�L�-�-�d�3�E����
�
G��7�7�5�<�<�����AR�AR�TY�Te�Te�gl�gr�gr�"s�s�)�*;�*B�*B�1�*E�F�F�t���L�L�&�,�,�/�
G��Q�4����e�n�n�e�>O�>O�QV�Qb�Qb�di�do�do�p�p�)�*;�*B�*B�1�*E�F�F�q��	
G�s2�A9�A9�9F'�A6D�&F'�'F'�(A3F"�"F'c��VP'g\4hVP'dVPPR4R#R#)z[Clear output buffer, aborting the current output and
discarding all that is in the buffer.
zignored reset_output_bufferN�rrrrr+s&r'r$�Serial.reset_output_buffers7��
�|�|�|�"�$�$��;�;�;��K�K���:�;�r-c��VP'g\4hVP'd-VPPRP	V44R#R#)zISend break condition. Timed, returns to idle state after given
duration.
zignored send_break({!r})N)rrrrr)r%�durations&&r'�
send_break�Serial.send_breaksB��
�|�|�|�"�$�$��;�;�;��K�K���7�>�>�x�H�I�r-c��VP'd7VPPRPVP44R#R#)zBSet break: Controls TXD. When active, to transmitting is
possible.z!ignored _update_break_state({!r})N)rrr�_break_stater+s&r'�_update_break_state�Serial._update_break_states6���;�;�;��K�K���@�G�G��HY�HY�Z�[�r-c��VP'd7VPPRPVP44R#R#)z)Set terminal status line: Request To Sendzignored _update_rts_state({!r})N)rrr�
_rts_stater+s&r'r"�Serial._update_rts_state%�2���;�;�;��K�K���>�E�E�d�o�o�V�W�r-c��VP'd7VPPRPVP44R#R#)z-Set terminal status line: Data Terminal Readyzignored _update_dtr_state({!r})N)rrr�
_dtr_stater+s&r'r �Serial._update_dtr_state*r�r-c��VP'g\4hVP'dVPPR4R#)z(Read terminal status line: Clear To Sendzreturning dummy for ctsTrwr+s&r'�cts�
Serial.cts/�5���|�|�|�"�$�$��;�;�;��K�K���6�7�r-c��VP'g\4hVP'dVPPR4R#)z)Read terminal status line: Data Set Readyzreturning dummy for dsrTrwr+s&r'�dsr�
Serial.dsr8r�r-c��VP'g\4hVP'dVPPR4R#)z)Read terminal status line: Ring Indicatorzreturning dummy for riFrwr+s&r'�ri�	Serial.riAs5���|�|�|�"�$�$��;�;�;��K�K���5�6�r-c��VP'g\4hVP'dVPPR4R#)z)Read terminal status line: Carrier Detectzreturning dummy for cd)Trwr+s&r'�cd�	Serial.cdJr�r-c�6�VPP4#)z@Get the file handle of the underlying socket for use with select)r�filenor+s&r'r��
Serial.filenoVs���|�|�"�"�$�$r-)rrrN)�2�K�n����i,iXi�ii`	i�i�%iKi�i�i�)�)g�?)�__name__�
__module__�__qualname__�__firstlineno__�__doc__�	BAUDRATESr(rr1r�propertyrPrcrrr#r$r{rr"r r�r�r�r�r��__static_attributes__�__classdictcell__)�
__classdict__s@r'rr-s�����7�4�I�#�<B�
�,�:����'�R3�jG�2<�J�\�X�
X�
����������������%�%r-r�__main__zsocket://localhost:7000z{}
z	write...
shello
z	read: {}
)"�
__future__rrZr6rKrr2r7�ImportError�urllib.parse�parse�serial.serialutilrrrrrr	�DEBUG�INFO�WARNING�ERRORr@rrr��sys�s�stdoutrrr�flushrcr1�r-r'�<module>r�s��&'���
�
��$��6�6�
�W�]�]�
�G�L�L�
�w����W�]�]�	�
���k%�Z�k%�`	�z����(�)�A��J�J���V�]�]�1�%�&��J�J���\�"��G�G�J���G�G�I��J�J���\�(�(������3�4��G�G�I���C
�$�#�#�$�s�D5�5
E�E

Youez - 2016 - github.com/yon3zu
LinuXploit