ROOTPLOIT
Server: LiteSpeed
System: Linux server71.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User: niphet (1079)
PHP: 5.3.29
Disabled: NONE
Upload Files
File: //lib/python3.6/site-packages/setuptools/__pycache__/glibc.cpython-36.opt-1.pyc
3

ÄvhJã@sHddlmZddlZddlZddlZdd„Zdd„Zdd„Zd	d
„ZdS)é)Úabsolute_importNcCsPtjdƒ}y
|j}Wntk
r(dSXtj|_|ƒ}t|tƒsL|jdƒ}|S)z9Returns glibc version string, or None if not using glibc.NÚascii)	ÚctypesZCDLLÚgnu_get_libc_versionÚAttributeErrorZc_char_pZrestypeÚ
isinstanceÚstrÚdecode)Zprocess_namespacerÚversion_str©rú/usr/lib/python3.6/glibc.pyÚglibc_version_string
s



r
cCsHtjd|ƒ}|s$tjd|tƒdSt|jdƒƒ|koFt|jdƒƒ|kS)Nz$(?P<major>[0-9]+)\.(?P<minor>[0-9]+)z=Expected glibc version with 2 components major.minor, got: %sFÚmajorÚminor)ÚreÚmatchÚwarningsÚwarnÚRuntimeWarningÚintÚgroup)r
Úrequired_majorÚ
minimum_minorÚmrrrÚcheck_glibc_version$s
rcCstƒ}|dkrdSt|||ƒS)NF)r
r)rrr
rrrÚhave_compatible_glibc4srcCstƒ}|dkrdSd|fSdS)z“Try to determine the glibc version

    Returns a tuple of strings (lib, version) which default to empty strings
    in case the lookup fails.
    NÚZglibc)rr)r
)Z
glibc_versionrrrÚlibc_verLsr)	Z
__future__rrrrr
rrrrrrrÚ<module>s