shell bypass 403

GrazzMean Shell

: /lib/python2.7/site-packages/wheel/ [ drwxr-xr-x ]
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.22.42.216
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : macosx_libfile.pyc
�
���cc@sidZddlZddlZddlZdZdZdZdZdZdZ	d	Z
d
ZdZdZ
d
ZdejfdejfdejfdejfdejfdejfdejfgZedejfgZdejfdejfgZdejfdejfdejfdejfdejfgZdejfdejfdejfdejfdejfdejfgZdejfdejfgZdejfdejfdejdfdejfdejfd ejfd!ejfd"ejfd#ejfd$ejfdejfgZdejfdejfdejdfdejfdejfd ejfd!ejfd"ejfd#ejfd$ejfdejfgZed%ejfd&ejfgZed'ejfd(ejfd&ejfd)ejfgZd*�Zdd+�Zd,�Z d-�Z!dd.�Z"d/�Z#d0�Z$dS(1s�
This module contains function to analyse dynamic library
headers to extract system information

Currently only for MacOSX

Library file on macosx system starts with Mach-O or Fat field.
This can be distinguish by first 32 bites and it is called magic number.
Proper value of magic number is with suffix _MAGIC. Suffix _CIGAM means
reversed bytes order.
Both fields can occur in two types: 32 and 64 bytes.

FAT field inform that this library contains few version of library
(typically for different types version). It contains
information where Mach-O headers starts.

Each section started with Mach-O header contains one library
(So if file starts with this field it contains only one version).

After filed Mach-O there are section fields.
Each of them starts with two fields:
cmd - magic number for this command
cmdsize - total size occupied by this section information.

In this case only sections LC_VERSION_MIN_MACOSX (for macosx 10.13 and earlier)
and LC_BUILD_VERSION (for macosx 10.14 and newer) are interesting,
because them contains information about minimal system version.

Important remarks:
- For fat files this implementation looks for maximum number version.
  It not check if it is 32 or 64 and do not compare it with currently built package.
  So it is possible to false report higher version that needed.
- All structures signatures are taken form macosx header files.
- I think that binary format will be more stable than `otool` output.
  and if apple introduce some changes both implementation will need to be updated.
- The system compile will set the deployment target no lower than
  11.0 for arm64 builds. For "Universal 2" builds use the x86_64 deployment
  target when the arm64 target is 11.0.
i����NI����I���I����I���I��I���I��I���i$i2itmagictcputypet
cpusubtypetfiletypetncmdst
sizeofcmdstflagstreservedt	nfat_archtoffsettsizetaligntcmdtcmdsizetsegnameitvmaddrtvmsizetfileofftfilesizetmaxprottinitprottnsectstversiontsdktplatformtminostntoolscCs0|d>d@|d>d@B|d?d@B|d?d@BS(NiI�ii�i�i�((tx((s8/usr/lib/python2.7/site-packages/wheel/macosx_libfile.pytswap32�s#cCs�|dkr|j�}n
|j|�tjj|jtjtj���j}|t	t
ttgkr�t
jdkr�tj}n	tj}t|�}n	tj}|j|�||fS(Ntlittle(tNonettelltseektctypestc_uint32tfrom_buffer_copytreadtsizeoftvaluet	FAT_CIGAMtFAT_CIGAM_64tMH_CIGAMtMH_CIGAM_64tsyst	byteordertBigEndianStructuretLittleEndianStructureRt	Structure(tlib_fileR tmagic_numbert	BaseClass((s8/usr/lib/python2.7/site-packages/wheel/macosx_libfile.pytget_base_class_and_magic_number�s
	!		
cCs|j|jtj|���S(N(R#R$R!R%(tstruct_classR0((s8/usr/lib/python2.7/site-packages/wheel/macosx_libfile.pyt	read_data�sc
Cs�t|d���}t|d�\}}|ttttgkrCdS|ttgkr�d|fd��Y}t||�}|tkr�d|fd��Y}nd|fd��Y}gt|j	�D]}t||�^q�}g}	x�|D]�}
yht
||
j�}|dk	rZ|
j
tkrJt|�dkrJ|d
krJw�qJn|	j|�nWq�tk
rnq�Xq�Wt|	�dkr�t|	�SdSn&yt
|d�SWntk
r�dSXWdQXdS(Ntrbit	FatHeadercBseZeZRS((t__name__t
__module__tfat_header_fieldst_fields_(((s8/usr/lib/python2.7/site-packages/wheel/macosx_libfile.pyR7stFatArchcBseZeZRS((R8R9tfat_arch_fieldsR;(((s8/usr/lib/python2.7/site-packages/wheel/macosx_libfile.pyR<scBseZeZRS((R8R9tfat_arch_64_fieldsR;(((s8/usr/lib/python2.7/site-packages/wheel/macosx_libfile.pyR<sii(iii(topenR3t	FAT_MAGICtFAT_MAGIC_64tMH_MAGICtMH_MAGIC_64R(R5trangeRtread_mach_headerR	RRtCPU_TYPE_ARM64tlentappendt
ValueErrortmax(tpath_to_libR0R2R1R7t
fat_headerR<t_t
fat_arch_listt
versions_listtelR((s8/usr/lib/python2.7/site-packages/wheel/macosx_libfile.pyt!extract_macosx_min_system_version�s:+
!	


cCs�|dk	r|j|�nt|�\}}|tkr@dnd}d|fd��Y}|dkr�d|fd��Y}nd|fd��Y}t||�}x�t|j�D]�}|j�}	t||�}
|j|	�|
jt	kr%d|fd	��Y}t||�}t
|j�S|
jtkrfd
|fd��Y}
t|
|�}t
|j
�S|j|	|
j�q�q�WdS(
s�
    This funcition parse mach-O header and extract
    information about minimal system version

    :param lib_file: reference to opened library file with pointer
    t32t64tSegmentBasecBseZeZRS((R8R9tsegment_base_fieldsR;(((s8/usr/lib/python2.7/site-packages/wheel/macosx_libfile.pyRT=st
MachHeadercBseZeZRS((R8R9tmach_header_fieldsR;(((s8/usr/lib/python2.7/site-packages/wheel/macosx_libfile.pyRVBscBseZeZRS((R8R9tmach_header_fields_64R;(((s8/usr/lib/python2.7/site-packages/wheel/macosx_libfile.pyRVGstVersionMinCommandcBseZeZRS((R8R9tversion_min_command_fieldsR;(((s8/usr/lib/python2.7/site-packages/wheel/macosx_libfile.pyRYPstVersionBuildcBseZeZRS((R8R9tbuild_version_command_fieldsR;(((s8/usr/lib/python2.7/site-packages/wheel/macosx_libfile.pyR[VsN(RR R3RBR5RDRRRtLC_VERSION_MIN_MACOSXt
parse_versionRtLC_BUILD_VERSIONRR
(R0R t
base_classR1tarchRTRVtmach_headert_itpostsegment_baseRYtversion_infoR[((s8/usr/lib/python2.7/site-packages/wheel/macosx_libfile.pyRE1s.


cCs3|d@d?}|d@d?}|d@}|||fS(NI��ii�ii�((RRtytz((s8/usr/lib/python2.7/site-packages/wheel/macosx_libfile.pyR^`s
cCsu|jd�\}}}tg|jd�D]}t|�^q+�}|d }|ddkrs|ddf}nt|�dks�t�dtjkrVtgtjdjd�D]}t|�^q��}|d }|ddkr�|ddf}n||krMtjj	dj
djd�|D��djd	�|D����qV|}nt|�dksnt�|}i}x�tj|�D]�\}	}
}x�|D]�}|j
d
�s�|j
d�r�tjj|	|�}
t|
�}|dk	r1|dd!}|ddkr!|ddf}n|||
<q1q�q�Wq�Wt|�dkrit|t|j���}ndjg|D]}t|�^qv�}||kr[g|j�D]\}}||kr�|^q�}d
j|�}t|�dkr�d}nd}d|d|d|}dtjkr9|j
d�}n|j
d�}tjj	|�n|d|d|}|S(s�
    Calculate proper macosx platform tag basing on files which are included to wheel

    Example platform tag `macosx-10.14-x86_64`
    t-t.iii
tMACOSX_DEPLOYMENT_TARGETs�[WARNING] MACOSX_DEPLOYMENT_TARGET is set to a lower value ({}) than the version on which the Python interpreter was compiled ({}), and will be ignored.
css|]}t|�VqdS(N(tstr(t.0R((s8/usr/lib/python2.7/site-packages/wheel/macosx_libfile.pys	<genexpr>}scss|]}t|�VqdS(N(Rl(RmR((s8/usr/lib/python2.7/site-packages/wheel/macosx_libfile.pys	<genexpr>~ss.dylibs.soRMs
is	this filesthese filess}[WARNING] This wheel needs a higher macOS version than {}  To silence this warning, set MACOSX_DEPLOYMENT_TARGET to at least s
 or recreate s( with lower MACOSX_DEPLOYMENT_TARGET:  
s,is set in MACOSX_DEPLOYMENT_TARGET variable.s8the version your Python interpreter is compiled against.N(tsplitttupletintRGtAssertionErrortostenvironR+tstderrtwritetformattjointwalktendswithtpathRQRRJtvaluesRltitems(tarchive_roottplatform_tagtprefixtbase_versiontsuffixRt
deploy_targett
start_versiont
versions_dicttdirpathtdirnamest	filenamestfilenametlib_pathtmin_vertfin_base_versiontktvtproblematic_filest
files_formt
error_message((s8/usr/lib/python2.7/site-packages/wheel/macosx_libfile.pytcalculate_macosx_platform_taggs`.
)
	 	

(1		(%t__doc__R!RrR+R@R'RAR(RBR)RCR*R]R_RFR"tc_intRWRXR:R=tc_uint64R>RUtc_chartsegment_command_fieldstsegment_command_fields_64RZR\RRR3R5RQRER^R�(((s8/usr/lib/python2.7/site-packages/wheel/macosx_libfile.pyt<module>'sf	


			6/	
© 2025 GrazzMean