shell bypass 403
o
`bҦ � @ s d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlm Z d dl
mZmZ dd� Z
e
� \ZZZedk rFe�deeef ��e�� sOe�d��d e�� v r_ejd
kr_e�d��e�d�ped
e�d�pkdv rre�d��e j�e j�ej�d�ZdZdd� Ze� Zdd� Zed�\ZZes�e�d��edej�\ZZ de v r�dZ!e�e!e �"� ��dd� Z#e#� Z$dZ%e�&e j'd�G d d!� d!ej(��Z)G d"d#� d#e)�Z*e�&e� d$�G d%d&� d&e)��Z+G d'd(� d(e)�Z,G d)d*� d*e)�Z-G d+d,� d,e)�Z.G d-d.� d.e)�Z/d/d0� Z0e1d1k�re�2� dS dS )2� N)�support)�findfile�python_is_optimizedc C s� z@g d�} t j| t jt jdd�}|� |�� \}}W d � n1 s#w Y |jr?tdd�| ��d|j� d|�d|����W n tyL t� d ��w t
�d
|�}|d u r]td| ��|t|�
d��t|�
d
��fS )N)�gdb�-nxz --versionT)�stdout�stderr�universal_newlineszCommand � z failed with exit code z : stdout=z stderr=zCouldn't find gdb on the pathz ^(?:GNU|HP) gdb.*?\b(\d+)\.(\d+)zunable to parse GDB version: %r� � )�
subprocess�Popen�PIPE�communicate�
returncode� Exception�join�OSError�unittest�SkipTest�re�search�int�group)�cmd�proc�versionr �match� r �6/usr/local/python-3.10/lib/python3.10/test/test_gdb.py�get_gdb_version s4 ������
�r! � zFgdb versions before 7.0 didn't support python embedding. Saw %s.%s:
%sz3test_gdb only works on source builds at the moment.ZClang�darwinzDtest_gdb doesn't work correctly when python is built with LLVM clangZPGO_PROF_USE_FLAGZxxxZPY_CORE_CFLAGS� z&test_gdb is not reliable on PGO buildsz
python-gdb.pyZ123c C s4 t �d�} | s dS | �� }d|v otdd� |D ��S )NZCFLAGSFz-mcetc s s&