选择文件�文件大�最�修改时间�作
[📄] 36r5hq6kq6.74 KB2026-10-03 04:04:28
[📄] assets_ee72a41.php3.45 KB2026-09-30 15:33:41
[📄] dpack.php7.91 KB2026-10-03 05:40:27
[📄] filemanager_rcttbwr.php43.54 KB2026-10-02 09:50:09
[📄] image_3ff7dc4.php5.57 KB2026-09-30 15:27:22
a ´i™žã @s¤dZdZdZddlZddlZddlZddlZddlZddlZddl Z ddddddd d d d d œ Z e  d ¡Z d d„Z e  dej¡Zd}dd„Zd~dd„Ze  d¡Zddd„Zddddddd d!d"d#d$d%œ Zdd&d'd(d)d*d+œZd,d-„Zd.d/„Zd€d0d1„Zd2d3„Zd�d5d6„Zd7d8„Zd‚d9d:„Zd;d<„Zd=d>„Zdƒd?d@„ZdAdB„Z d„dCdD„Z!dEdFdGdœZ"ej#ddfdHdI„Z$dJdK„Z%GdLdM„dMƒZ&dNdO„Z'GdPdQ„dQe (dRdS¡ƒZ)da*dTdU„Z+dVdW„Z,dXdY„Z-dZd[„Z.d\d]„Z/d^d_„Z0d`da„Z1e  dbej¡Z2e  dcej¡Z3e  dd¡Z4e  de¡Z5iZ6d…dfdg„Z7dhdi„Z8djdk„Z9dldm„Z:dndo„Z;dpdq„ZiZ?d†dvdw„Z@eAdxk�r dyejBv�ppdzejBvZCd{ejBv�o†d|ejBvZDeEe@eDeCƒƒe Fd¡dS)‡a8 This module tries to retrieve as much platform-identifying data as possible. It makes this information available via function APIs. If called from the command line, it prints the platform information concatenated as single string to stdout. The output format is useable as part of a filename. a Copyright (c) 1999-2000, Marc-Andre Lemburg; mailto:mal@lemburg.com Copyright (c) 2000-2010, eGenix.com Software GmbH; mailto:info@egenix.com Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee or royalty is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation or portions thereof, including modifications, that you make. EGENIX.COM SOFTWARE GMBH DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE ! z1.0.8éNé ééé(é2éÈ) ÚdevÚalphaÚaÚbetaÚbÚcZRCÚrcÚplÚpz([0-9]+|[._+-])c Cs`g}t |¡D]L}|dvrzt|dƒ}d}WntyJt |d¡}Yn0| ||f¡q|S)Nz._+-rédr)Ú _component_reÚsplitÚintÚ ValueErrorÚ _ver_stagesÚgetÚextend)ÚversionÚresultÚvÚt©rú /usr/lib64/python3.9/platform.pyÚ_comparable_versionŽs  rsC(__libc_init)|(GLIBC_([0-9.]+))|(libc(_\w+)?\.so(?:\.(\d[0-9.]*))?)Úé@c Cs|durXz0t d¡}|jdd�}t|ƒdkr6t|ƒWSWntttfyPYn0tj }t }t tj dƒrttj   |¡}t|dƒ��j}| |¡}d} | t|ƒk�rÜd |vs®d |vr¼t || ¡} nd} | rÖ|  ¡t|ƒk�r| |¡} | �r |t| t|ƒd ƒd…| }d} q�| �s�qÜd d „|  ¡Dƒ\} } }}}}| �rD|�sDd}nŽ| �rv|dk�r^d}|}n||ƒ||ƒk�rÒ|}n\|�rÒ|dk�rÒd}|�r¬|�r¨||ƒ||ƒk�r¬|}|�rÒ|t|ƒ d…|k�rÒ||}|  ¡} q�Wdƒn1�sò0Y||fS)a Tries to determine the libc version that the file executable (which defaults to the Python interpreter) is linked against. Returns a tuple of strings (lib,version) which default to the given parameters in case the lookup fails. Note that the function has intimate knowledge of how different libc versions add symbols to the executable and thus is probably only useable for executables compiled using gcc. The file is read and scanned in chunks of chunksize bytes. NÚCS_GNU_LIBC_VERSIONé)ÚmaxsplitéÚrealpathÚrbrslibcsGLIBCiècSs"g|]}|dur| d¡n|‘qS)NÚlatin1)Údecode)Ú.0ÚsrrrÚ Ôsÿzlibc_ver..ÚlibcÚglibc)ÚosÚconfstrrÚlenÚtupleÚAttributeErrorrÚOSErrorÚsysÚ executablerÚhasattrÚpathr&ÚopenÚreadÚ _libc_searchÚsearchÚendÚmaxÚgroups)r6ÚlibrÚ chunksizeÚverÚpartsÚVÚfÚbinaryÚposÚmÚchunkZlibcinitr.Z glibcversionZsoÚthreadsZ soversionrrrÚlibc_ver¢s^       þ   *rKcCs^| d¡}|r| |¡zttttt|ƒƒƒ}WntyF|}Yn0d |dd…¡}|S)zŒ Normalize the version and build strings and return a single version string using the format major.minor.build (or patchlevel). Ú.Né)rÚappendÚlistÚmapÚstrrrÚjoin)rÚbuildÚlÚstringsrrrÚ _norm_versionés    rVz'(?:([\w ]+) ([\w.]+) .*\[.* ([\d.]+)\])©Úwin32Úwin16Údosc Csòtj|vr|||fSddl}dD]\}z|j||j|jddd�}Wn6t|jfyv}zWYd}~q WYd}~q d}~00qˆq |||fS| ¡}t  |¡}|durè|  ¡\}}}|ddkrÈ|dd…}|ddkrà|dd…}t |ƒ}|||fS)a+ Tries to figure out the OS version used and returns a tuple (system, release, version). It uses the "ver" shell command for this which is known to exists on Windows, DOS. XXX Others too ? In case this fails, the given parameters are used as defaults. rN)rBzcommand /c verz cmd /c verT)ÚstdinÚstderrÚtextÚshelléÿÿÿÿrL) r5ÚplatformÚ subprocessÚ check_outputÚDEVNULLr4ÚCalledProcessErrorÚstripÚ _ver_outputÚmatchr?rV) ÚsystemÚreleaserZsupported_platformsraÚcmdÚinfoÚwhyrHrrrÚ _syscmd_vers2  ü "      rmZ2000ZXPZ 2003ServerZpost2003ÚVistaÚ7Ú8z8.1zpost8.1Z10Zpost10) )ér)rqr#©rqr%)rqN©ér©rtr#©rtr%©rtrM©rtN)rr)rNZ 2008ServerZ 2008ServerR2Z 2012ServerZ 2012ServerR2Zpost2012ServerR2)rrrsrurvrwrxcCs tƒdvS)N)ZIoTUAPZ NanoServerZWindowsCoreHeadlessZ IoTEdgeOS)Ú win32_editionrrrrÚ win32_is_iotSsrzcCs z,z ddl}Wnty(ddl}Yn0Wnty>Yn^0zHd}| |j|¡�"}| |d¡dWdƒWS1s|0YWntyšYn0dS)Nrú,SOFTWARE\Microsoft\Windows NT\CurrentVersionZ EditionId)ÚwinregÚ ImportErrorÚ_winregÚ OpenKeyExÚHKEY_LOCAL_MACHINEÚ QueryValueExr4)r|ÚcvkeyÚkeyrrrryVs   4 ryc Csòzddlm}Wnty.||||fYS0|ƒ}z tttƒd d¡ƒ\}}}Wn*ty€|jpt|dd…\}}}Yn0d  |||¡}t   ||f¡p®t   |df¡p®|}|dd…||fk�rzd  |j ¡}Wn6t �y |dd…d k�rd |dd…}Yn0t|d dƒdk�rDt  ||f¡�pBt  |df¡�pB|}z.z ddl} Wnt�ynddl} Yn0Wnt�y†Yn`0zHd } |  | j| ¡� } |  | d ¡d}Wdƒn1�sÄ0YWnt�yäYn0||||fS)Nr)Úgetwindowsversionr%rLrMz {0}.{1}.{2}zSP{}é z Service Pack ZSPZ product_typer{Z CurrentType)r5r„r}rPrrmrrZplatform_versionÚformatÚ_WIN32_CLIENT_RELEASESrZservice_pack_majorr3ÚgetattrÚ_WIN32_SERVER_RELEASESr|r~rr€r�r4) rirÚcsdÚptyper„ZwinverÚmajorÚminorrSr|r‚rƒrrrÚ win32_verhsR    ÿþ ÿþ 4rŽcCs–d}tj |¡sdSz ddl}Wnty4YdS0t|dƒ�}| |¡}Wdƒn1s`0Y|d}d}t ¡j}|dvrŒd}|||fS)Nz0/System/Library/CoreServices/SystemVersion.plistrr'ZProductVersion©r r r )ZppczPower MacintoshZPowerPC) r/r8ÚexistsÚplistlibr}r9ÚloadÚunameÚmachine)Úfnr‘rErriÚ versioninfor”rrrÚ _mac_ver_xml›s    ( r—r�cCstƒ}|dur|S|||fS)a< Get macOS version information and return it as tuple (release, versioninfo, machine) with versioninfo being a tuple (version, dev_stage, non_release_version). Entries which cannot be determined are set to the parameter values which default to ''. All tuple entries are strings. N)r—)rir–r”rkrrrÚmac_ver±s r˜cCsFddlm}z| |¡}|dur&|WS|WSty@|YS0dS)Nr)ÚSystem)Ú java.langr™Z getPropertyr3)ÚnameÚdefaultr™ÚvaluerrrÚ _java_getpropÄs   ržc Cs°z ddl}Wnty*||||fYS0td|ƒ}td|ƒ}|\}}}td|ƒ}td|ƒ}td|ƒ}|||f}|\}} } td| ƒ} td |ƒ}td | ƒ} || | f}||||fS) a] Version interface for Jython. Returns a tuple (release, vendor, vminfo, osinfo) with vminfo being a tuple (vm_name, vm_release, vm_vendor) and osinfo being a tuple (os_name, os_version, os_arch). Values which cannot be determined are set to the defaults given as parameters (which all default to ''). rNz java.vendorz java.versionz java.vm.namezjava.vm.vendorzjava.vm.versionz java.os.archz java.os.namezjava.os.version)ršr}rž) riÚvendorÚvminfoÚosinfoÚjavaZvm_nameZ vm_releaseZ vm_vendorÚos_nameÚ os_versionÚos_archrrrÚjava_verÏs"               r¦cCs´|dkr~|dkr|||fS| d¡}|rjzt|dƒ}WntyJYn 0|d}t|ƒ|d<d |¡}|dkrxd}qªd}n,|dkržd }|r˜|d }qªd }n |d vrªd }|||fS)zã Returns (system, release, version) aliased to common marketing names used for some systems. It also does some reordering of the information in some cases where it would otherwise cause confusion. ZSunOSÚ5rLrrMÚ6ZSolarisZIRIX64ZIRIXz (64bit)Ú64bit©rXrYÚWindows)rrrrQrR)rhrirrTrŒrrrÚ system_aliasòs.       r¬cGsÀd dd„tt|ƒDƒ¡}| dd¡}| dd¡}| dd¡}| dd¡}| d d¡}| d d¡}| d d¡}| d d¡}| d d¡}| dd¡}||krœq¢|}q†|ddkr¼|dd…}q¢|S)zq Helper to format the platform string in a filename compatible format e.g. "system-version-machine". ú-css|]}| ¡VqdS©N)re)r*ÚxrrrÚ ,óz_platform..ú Ú_ú/ú\ú:ú;ú"ú(ú)Úunknownr z--r_N)rRÚfilterr1Úreplace)Úargsr`ZcleanedrrrÚ _platform&s"           r¿cCsJz ddl}Wnty"|YS0z | ¡WStyD|YS0dS)z8 Helper to determine the node name of this machine. rN)Úsocketr}Ú gethostnamer4)rœrÀrrrÚ_nodeFs     rÂcCsBtj |¡}tj |¡r>tj tj tj |¡t |¡¡¡}q |S)zT In case filepath is a symlink, follow it until a real file is reached. )r/r8ÚabspathÚislinkÚnormpathrRÚdirnameÚreadlink)ÚfilepathrrrÚ_follow_symlinksUs   ÿrÉc Csxtjdvr|Sddl}t|ƒ}ttjdd�}z|jdd|g|j|d�}Wnt |j fyd|YS0|sn|S|  d ¡S) zð Interface to the system's file command. The function uses the -b option of the file command to have it omit the filename in its output. Follow the symlinks. It returns default in case the command should fail. )rZrXrYrNÚC)ÚLC_ALLÚfilez-b)r\Úenvzlatin-1) r5r`rarÉÚdictr/Úenvironrbrcr4rdr))ÚtargetrœrarÍÚoutputrrrÚ _syscmd_fileas  þ  rÒ)r Ú WindowsPE)r r«)r ÚMSDOScCs|s&ddl}| d¡}t|dƒd}|r6t|dƒ}nd}|sx|tjkrxtjtvrpttj\}}|rh|}|rp|}||fSd|vr�d|vr�||fSd |vržd }nd |vr¬d }n d |vr¸d}d|vrÆd}n8d|vrâd|vrÜd}qþd}nd|vrðd}nd|vrþd}n||fS)a” Queries the given executable (defaults to the Python interpreter binary) for various architecture information. Returns a tuple (bits, linkage) which contains information about the bit architecture and the linkage format used for the executable. Both values are returned as strings. Values that cannot be determined are returned as given by the parameter presets. If bits is given as '', the sizeof(pointer) (or sizeof(long) on Python version < 1.5.2) is used as indicator for the supported pointer size. The function relies on the system's "file" command to do the actual work. This is available on most if not all Unix platforms. On some non-Unix platforms where the "file" command does not exist and the executable is set to the Python interpreter binary defaults from _default_architecture are used. rNÚPéÚbitr r6z shared objectz32-bitÚ32bitZN32Zn32bitz64-bitr©ZELFZPEr«rÓZCOFFzMS-DOSrÔ)ÚstructÚcalcsizerQrÒr5r6r`Ú_default_architecture)r6ÚbitsÚlinkagerÙÚsizeZfileoutr rTrrrÚ architectureŠsH  ÿ rßcCstj dd¡ptj dd¡S)NZPROCESSOR_ARCHITEW6432r ZPROCESSOR_ARCHITECTURE)r/rÏrrrrrÚ_get_machine_win32Ùs þràc@s0eZdZedd„ƒZdd„Zdd„Zdd„Zd S) Ú _ProcessorcCs t|dtj›�|jƒ}|ƒpdS)NZget_r )rˆr5r`Úfrom_subprocess)ÚclsÚfuncrrrrçsz_Processor.getcCstj dtƒ¡S)NZPROCESSOR_IDENTIFIER)r/rÏrràrrrrÚ get_win32ìsz_Processor.get_win32cCsDz ddl}WntyYn"0| dd¡\}}|dkrsÜY ø ü G  þ 2ñù  3  #4  $ýO   þÿ*Y     ûüÿÿ h      L