⚝
One Hat Cyber Team
⚝
Your IP:
216.73.217.4
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
lib
/
python3
/
dist-packages
/
wheel
/
__pycache__
/
View File Name :
macosx_libfile.cpython-310.pyc
o ca:> @ sr d Z ddlZddlZddlZ dZdZdZdZdZdZ d Z d ZdZdZ d ZdejfdejfdejfdejfdejfdejfdejfgZ edejfg Z dejfdejfgZ dejfdejfdejfdejfdejfgZ dejfdejfdejfdejfdejfdejfgZ dejfdejfgZ dejfdejfdejd fdejfdejfd ejfd!ejfd"ejfd#ejfd$ejfdejfgZ dejfdejfdejd fdejfdejfd ejfd!ejfd"ejfd#ejfd$ejfdejfgZ ed%ejfd&ejfg Z ed'ejfd(ejfd&ejfd)ejfg Z d*d+ Zd8d,d-Zd.d/ Zd0d1 Z d8d2d3Z!d4d5 Z"d6d7 Z#dS )9a 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. Nl : l ~u} l : l ~u l z} l m l z} l m $ 2 i magiccputype cpusubtypefiletypencmds sizeofcmdsflagsreserved nfat_archoffsetsizealigncmdcmdsizesegname vmaddrvmsizefileofffilesizemaxprotinitprotnsectsversionsdkplatformminosntoolsc C s0 | d> d@ | d> d@ B | d? d@ B | d? d@ B S )N l ~ i )xr$ r$ 6/usr/lib/python3/dist-packages/wheel/macosx_libfile.pyswap32 s r' c C s |d u r | }n| | tj| ttjj}|tt t tfv r5tj dkr-tj}ntj}t|}ntj}| | ||fS )Nlittle)tellseekctypesc_uint32from_buffer_copyreadsizeofvalue FAT_CIGAMFAT_CIGAM_64MH_CIGAMMH_CIGAM_64sys byteorderBigEndianStructureLittleEndianStructurer' Structure)lib_filer* magic_number BaseClassr$ r$ r&