shell bypass 403

GrazzMean Shell

Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 3.23.129.149
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : __main__.cpython-311.opt-1.pyc
�

�f�;��~�dZddlZddlZddlTddlmZmZddlmZddl	m
Z
ddlmZddl
Z
ej�ej�e����ZejdkZd	Zd
ZdZdZd
ZddefZdZgd�ZdZdZgd�Z d�Z!defdefde
jffZ"Gd�de#��Z$d�Z%e&dkre%��dSdS)a�
  ----------------------------------------------
      turtleDemo - Help
  ----------------------------------------------

  This document has two sections:

  (1) How to use the demo viewer
  (2) How to add your own demos to the demo repository


  (1) How to use the demo viewer.

  Select a demoscript from the example menu.
  The (syntax colored) source code appears in the left
  source code window. IT CANNOT BE EDITED, but ONLY VIEWED!

  The demo viewer windows can be resized. The divider between text
  and canvas can be moved by grabbing it with the mouse. The text font
  size can be changed from the menu and with Control/Command '-'/'+'.
  It can also be changed on most systems with Control-mousewheel
  when the mouse is over the text.

  Press START button to start the demo.
  Stop execution by pressing the STOP button.
  Clear screen by pressing the CLEAR button.
  Restart by pressing the START button again.

  SPECIAL demos, such as clock.py are those which run EVENTDRIVEN.

      Press START button to start the demo.

      - Until the EVENTLOOP is entered everything works
      as in an ordinary demo script.

      - When the EVENTLOOP is entered, you control the
      application by using the mouse and/or keys (or it's
      controlled by some timer events)
      To stop it you can and must press the STOP button.

      While the EVENTLOOP is running, the examples menu is disabled.

      - Only after having pressed the STOP button, you may
      restart it or choose another example script.

   * * * * * * * *
   In some rare situations there may occur interferences/conflicts
   between events concerning the demo script and those concerning the
   demo-viewer. (They run in the same process.) Strange behaviour may be
   the consequence and in the worst case you must close and restart the
   viewer.
   * * * * * * * *


   (2) How to add your own demos to the demo repository

   - Place the file in the same directory as turtledemo/__main__.py
     IMPORTANT! When imported, the demo should not modify the system
     by calling functions in other modules, such as sys, tkinter, or
     turtle. Global variables should be initialized in main().

   - The code must contain a main() function which will
     be executed by the viewer (see provided example scripts).
     It may return a string which will be displayed in the Label below
     the source code window (when execution has finished.)

   - In order to run mydemo.py by itself, such as during development,
     add the following at the end of the file:

    if __name__ == '__main__':
        main()
        mainloop()  # keep window open

    python -m turtledemo.mydemo  # will then run it

   - If the demo is EVENT DRIVEN, main must return the string
     "EVENTLOOP". This informs the demo viewer that the script is
     still running and must be stopped by the user!

     If an "EVENTLOOP" demo runs by itself, as with clock, which uses
     ontimer, or minimal_hanoi, which loops by recursion, then the
     code should catch the turtle.Terminator exception that will be
     raised when the user presses the STOP button.  (Paint is not such
     a demo; it only acts in response to mouse clicks and movements.)
�N)�*)�ColorDelegator�color_config)�
Percolator)�	view_text)�__doc__�darwin������Arial�)rr�bold)zLucida Console�
�normal��d)��	r�r������c�H�d�tjt��D��S)Nc�d�g|]-}|�d��r|ddk�#|dd���.S)z.pyr�_N���)�endswith)�.0�entrys  �,/usr/lib64/python3.11/turtledemo/__main__.py�
<listcomp>z%getExampleEntries.<locals>.<listcomp>usH��7�7�7�5��N�N�5�!�!�7�&+�A�h�#�o�o�
�#�2�#�J�&5�o�o�)�os�listdir�demo_dir�r(r&�getExampleEntriesr-ts,��7�7�B�J�x�$8�$8�7�7�7�7r(zTurtledemo helpzAbout turtledemozAbout turtle modulec��eZdZdd�Zd�Zd�Zd�Zd�Zdd�Zdd�Z	d	�Z
dd�Zd
�Zd�Z
d�Zd�Zd�Zd�Zd�Zd�Zd�ZdS)�
DemoWindowNc
���t��x|_x}t_|�d��|�d|j��trQddl}|�	ddddd�
tj����ddg|j
|j
�	��|�dd
���|�dd
���|�d
dd
�
��|�ddd
�
��|�ddd
�
��t!|t"d���|_|j�|�|j��dd���|j�|�|j��dd���|j�|�|j��dd���|j|d<t/|t0dt2d���}|�|�|����|�|�|����|�ddd���t=|d
ddddt>���|_ trjtC|d tDd!|j#�"��|_$tC|d#tDd!|j%�"��|_&tC|d$tDd!|j'�"��|_(nltC|d tDd%d&|j#�'��|_$tC|d#tDd%d&|j%�'��|_&tC|d$tDd%d&|j'�'��|_(|j �d
ddd(�)��|j$�d
d
d*�+��|j&�d
dd*�+��|j(�d
dd*�+��tS|j*���+tY����d,|_-d,|_.|r|�/|��|�0tbtbtbd-d.��td|_3dS)/NzPython turtle-graphics examples�WM_DELETE_WINDOWr�	osascriptz-ez tell application "System Events"z>set frontmost of the first process whose unix id is {} to truezend tell)�stderr�stdoutr
)�weight�Z)�minsizer5rr)�relief�borderwidth�Examples)�menu�label�	underline�Fontsize�Helpr;rz#ddd)�orient�	sashwidth�
sashrelief�bgr
�news)�row�
columnspan�stickyz --- z#ddf)r�r)�height�textrC�fontr9r8z START z#00cc22)rJrK�fg�commandz STOP z CLEAR �whitez#fed)rJrKrL�disabledforegroundrM)rr)rE�columnrG�padx�ew)rErPrGFzChoose example from menu�black)4�Tk�root�turtle�_root�title�wm_protocol�_destroyr	�
subprocess�run�formatr)�getpid�DEVNULL�grid_rowconfigure�grid_columnconfigure�Menu�RAISED�mBar�add_cascade�makeLoadDemoMenu�makeFontMenu�makeHelpMenu�PanedWindow�
HORIZONTAL�SOLID�add�
makeTextFrame�makeGraphFrame�grid�Label�RIDGE�
output_lbl�Button�btnfont�	startDemo�	start_btn�stopIt�stop_btn�clearCanvas�	clear_btnrrJ�insertfilterr�dirty�exitflag�loadfile�	configGUI�DISABLED�STARTUP�state)�self�filenamerUr[�panes     r&�__init__zDemoWindow.__init__�s���*,�$�$�.��	�.�D�6�<��
�
�4�5�5�5����+�T�]�;�;�;��
	0�����
�N�N�#��@��6�6<�f�R�Y�[�[�6I�6I��j��&�-�%�-�
�	
0�	
0�	
0�	
���q���+�+�+��!�!�!�A�!�.�.�.��!�!�!�R��!�:�:�:��!�!�!�R��!�:�:�:��!�!�!�R��!�:�:�:���f�!�<�<�<��	��	���4�#8�#8���#C�#C�$.�!�	�	=�	=�	=��	���4�#4�#4�T�Y�#?�#?�$.�!�	�	=�	=�	=��	���4�#4�#4�T�Y�#?�#?�$*�a�	�	9�	9�	9��y��V���4�
�a�&+��8�8�8������#�#�D�)�)�*�*�*�����$�$�T�*�*�+�+�+��	�	�a�A�f�	�5�5�5���a�g�&�%<�!�',�.�.�.����	@�#�D�y�w�'0�$�.�J�J�J�D�N�"�4�h�W�&/���F�F�F�D�M�#�D�y�w�'0�D�<L�N�N�N�D�N�N�$�D�y�w�'.�V�,0�N�<�<�<�D�N�#�4�h�W�&-�F�+/�;�8�8�8�D�M�$�D�y�w�'.�6�.2�.>�@�@�@�D�N�	
�����1�V�%��H�H�H������!�D��9�9�9��
���q��4��8�8�8������!�D��9�9�9��4�9���*�*�>�+;�+;�<�<�<���
���
��	$��M�M�(�#�#�#����x��8�1�7�	<�	<�	<���
�
�
r(c��|j���}|j���}|j�d|j|z
z|jz��|j�d|j|z
z|jz��dS)Ng�?)�canvas�winfo_width�winfo_height�xview_moveto�	canvwidth�yview_moveto�
canvheight)r��event�cwidth�cheights    r&�onResizezDemoWindow.onResize�s�����(�(�*�*���+�*�*�,�,���� � ��d�n�V�&;�!<�T�^�!K�L�L�L��� � ��d�o�g�&=�!>�t��!N�O�O�O�O�Or(c���t|��x|_}t|dddd���x|_}t	|��t|d���x|_}|j|d<|�tt�	��t|d
t���x|_}|j
|d<|�tt�	��|j|d<|j|d
<t#t$��|d<t&rdnd}|�d|z|j��|�d|z|j��|�d|z|j��|�d|z|j��|�d|j��|�d|j��|�d|j��|�tt2d���|S)NrJr�none�-)�namerQ�wrap�width�vbar)r�rM)�side�fill�hbar)r�r@�yscrollcommand�xscrollcommandrK�Command�Controlz
<%s-minus>z<%s-underscore>z
<%s-equal>z	<%s-plus>z<Control-MouseWheel>z<Control-Button-4>z<Control-Button-5>r
)r�r��expand)�Frame�
text_frame�TextrJr�	Scrollbarr��yview�pack�LEFT�Yrjr��xview�BOTTOM�X�set�tuple�txtfontr	�bind_all�
decrease_size�
increase_size�bind�update_mousewheel�BOTH)r�rUr�rJr�r��shortcuts       r&rmzDemoWindow.makeTextFrame�s���',�T�{�{�2���*��
��a�%+�2�7�7�7�	7��	�D��T����$�Z�f�=�=�=�=��	�D��*��Y���	�	�t�!�	�$�$�$�$�Z�f�Z�P�P�P�P��	�D��*��Y���	�	�v�A�	�&�&�&�!%���
��!%���
���W�~�~��V�� &�5�9�9�I���
�
�l�X�-�t�/A�B�B�B��
�
�'�(�2�D�4F�G�G�G��
�
�l�X�-�t�/A�B�B�B��
�
�k�H�,�d�.@�A�A�A��	�	�(�$�*@�A�A�A��	�	�&��(:�;�;�;��	�	�&��(:�;�;�;��	�	�t�$�q�	�1�1�1��r(c���|tj_d|_d|_tj|dd|j|j��xtj_x|_}|���|j	�
d|j��d|jd<tj��x|_
}tj�||��|gtj_|S)Ni�i iXz<Configure>rr9)rV�_ScreenrWr�r��ScrolledCanvas�_canvasr��
adjustScrolls�_rootwindowr�r��Screen�screen�TurtleScreenr��	RawTurtle�screens)r�rUr�r�s    r&rnzDemoWindow.makeGraphFrame�s���
 $����������8>�8M��c�3�����9A�9A�	A����	A���v�����������
�t�}�=�=�=�()���}�%�%�}���.���f���$�$�V�V�4�4�4�$*�8��� ��
r(c�l�|td<tt��|jd<d|z|jd<dS)Nr
rKzFont size %drJ)r�r�rJrr)r��sizes  r&�set_txtsizezDemoWindow.set_txtsizes4�����
�!�'�N�N��	�&��"0�4�"7������r(c�r�|�ttddz
t����dS�Nr
�break)r��maxr��MINIMUM_FONT_SIZE�r��dummys  r&r�zDemoWindow.decrease_size�.������W�Q�Z�!�^�->�?�?�@�@�@��wr(c�r�|�ttddzt����dSr�)r��minr��MAXIMUM_FONT_SIZEr�s  r&r�zDemoWindow.increase_sizer�r(c�|�|jdktkr|���S|���S)Nr)�deltar	r�r�)r�r�s  r&r�zDemoWindow.update_mousewheels;��
�K�!�O�V��,�,��%�%�'�'�'��%�%�'�'�'r(��bluec���trR|j�|���|j�|���|j�|���n{|j�||t
krdnd���|j�||t
krdnd���|j�||t
krdnd���|j�||���dS)N)r�z#d00z#fca)r�rC)rJrL)r	rv�configrxrz�NORMALrr)r��start�stop�clear�txt�colors      r&rzDemoWindow.configGUIs���
	L��N�!�!��!�.�.�.��M� � �t� �,�,�,��N�!�!��!�.�.�.�.��N�!�!��/4����V�V�F�
"�
L�
L�
L��M� � �t�.2�f�n�n�F�F�&�
!�
J�
J�
J��N�!�!��/4����V�V�F�
"�
L�
L�
L�����C�E��2�2�2�2�2r(c���t|��}t��D]'}|f�fd�	}|�|dt|����(|S)Nc�2����|��dS�N)r~)r%r�s �r&�loadz)DemoWindow.makeLoadDemoMenu.<locals>.load*s����
�
�e�$�$�$�$�$r(r�r<r=rKrM)rbr-�add_command�menufont)r��masterr;r%r�s`    r&rfzDemoWindow.makeLoadDemoMenu&st����F�|�|��&�(�(�	:�	:�E� �
%�
%�
%�
%�
%�
%����5�A�"*�D�
�
:�
:�
:�
:��r(c�N��t|��}|�d�jt���|�d�jt���|���tD]4}|f�fd�	}|�t|��dt|����5|S)NzDecrease (C-'-'))r<rMrKzIncrease (C-'+')c�2����|��dSr�)r�)r�r�s �r&�resizez'DemoWindow.makeFontMenu.<locals>.resize9s���� � ��&�&�&�&�&r(rr�)rbr�r�r�r��
add_separator�
font_sizes�str)r�r�r;r�r�s`    r&rgzDemoWindow.makeFontMenu0s�����F�|�|�����1�4�;M�&�	�	(�	(�	(����1�4�;M�&�	�	(�	(�	(��������	<�	<�D� �
'�
'�
'�
'�
'�
'����3�t�9�9��"*�F�
�
<�
<�
<�
<��r(c���t|��}tD]*\}}||f�fd�	}|�|t|����+|S)Nc�4��t�j||��dSr�)rrU)�
help_label�	help_filer�s  �r&�showz%DemoWindow.makeHelpMenu.<locals>.showCs����$�)�Z��;�;�;�;�;r()r<rKrM)rb�help_entriesr�r�)r�r�r;r�r�r�s`     r&rhzDemoWindow.makeHelpMenu?sj����F�|�|��%1�	L�	L�!�J�	� *�i�
<�
<�
<�
<�
<�
<����:�H�d��K�K�K�K��r(c�X�|jr"|j���d|_dSdS�NF)r|r�r��r�s r&�
refreshCanvaszDemoWindow.refreshCanvasHs5���:�	��K�������D�J�J�J�	�	r(c�@�|���dtj_d|z}t	|��t
j||_t|jj	d��5}|�
��}ddd��n#1swxYwY|j�dd��|j�
d|��|j�|dz��|�t"t$t$dd��t&|_dS)	NFzturtledemo.�rz1.0�endz# - a Python turtle graphics examplezPress start button�red)ryrVr��_RUNNING�
__import__�sys�modules�module�open�__file__�readrJ�delete�insertrUrXrr�r��READYr�)r�r��modname�f�charss     r&r~zDemoWindow.loadfileMs/��������',���$��(�*���7�����k�'�*���
�$�+�&��
,�
,�	���F�F�H�H�E�	�	�	�	�	�	�	�	�	�	�	����	�	�	�	��	�����&�&�&��	�����&�&�&��	����#H�H�I�I�I����v�x��+�U�	4�	4�	4���
�
�
s�+B�B�Bc���|���d|_dtj_|�tttdd��|j�	��|j�
d��t|_	|j
���}|dkr
t|_nt |_n-#tj$r|j�YdSt |_d}YnwxYw|jt kr)|�ttt|��dS|jtkr1d|_|�tttdd��dSdS)	NTzdemo running...rS�standard�	EVENTLOOPzstopped!zuse mouse/keys or STOPr�)r�r|rVr�r�rr�r�r�r��mode�RUNNINGr�r��main�EVENTDRIVEN�DONE�
TerminatorrUr})r��results  r&ruzDemoWindow.startDemo\sh����������
�'+���$����x���(�'�	3�	3�	3�������������$�$�$���
�
	 ��[�%�%�'�'�F���$�$�(��
�
�!��
���� �	 �	 �	 ��y� �����D�J��F�F�F�		 ����
�:�����N�N�6�8�V�!�
#�
#�
#�
#�
#�
�Z�;�
&�
&� �D�M��N�N�8�V�X�3�U�
<�
<�
<�
<�
<�'�
&s�8C�C8�'C8�7C8c���|���|j�d��|j�d���|�ttt��dS)N�allr�)�cursor)r�r��_deleter�r�rr�r�r�s r&ryzDemoWindow.clearCanvasys_������������E�"�"�"�����"��%�%�%����v�x��2�2�2�2�2r(c��|jrC|���d|_|�tttdd��dt
j_dS)NFzSTOPPED!r�)r}ryrr�r�rVr�r�r�s r&rwzDemoWindow.stopItsW���=�	.�������!�D�M��N�N�6�8�X�%�u�
.�
.�
.�',���$�$�$r(c�h�dtj_|j���d|_dSr�)rVr�r�rU�destroyr�s r&rZzDemoWindow._destroy�s,��',���$��	��������	�	�	r(r�)r�r�)�__name__�
__module__�__qualname__r�r�rmrnr�r�r�r�rrfrgrhr�r~ruryrwrZr,r(r&r/r/s>������I�I�I�I�XP�P�P����8���(8�8�8�
��������(�(�(�3�3�3�3����
�
�
�������

�
�
�<�<�<�:3�3�3�-�-�-�����r(r/c�T�t��}|j���dSr�)r/rU�mainloop)�demos r&rr�s%���<�<�D��I�������r(�__main__)'rr�r)�tkinter�idlelib.colorizerrr�idlelib.percolatorr�idlelib.textviewr�
turtledemo�about_turtledemorV�path�dirname�abspathr�r+�platformr	r�rr
r
rr�r�rtr�r�r�r�r-r��objectr/rrr,r(r&�<module>r)s���T�T�j�
�
�
�	�	�	�	�����:�:�:�:�:�:�:�:�)�)�)�)�)�)�&�&�&�&�&�&�2�2�2�2�2�2�
�
�
�
�
�7�?�?�2�7�?�?�8�4�4�5�5��	���	!��
��	��
�������R�� ��
��
*�
*�
*������
7�
7�
7�
�7�7�7�
�� ��)�*��F�N�+���K�K�K�K�K��K�K�K�\����z����D�F�F�F�F�F��r(
© 2025 GrazzMean