shell bypass 403

GrazzMean Shell

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

name : platformdirs.pyc
�
���cc@sdZdZdCZddlZddlZejddkZesLeZnej	j
d�r�ddl	Z	e	j�ddZej
d�r�d	Z
q�ej
d
�r�dZ
q�dZ
n	ej	Z
e
d	krydd
lmZWn�ek
rkyddlZWn\ek
r^y%er(ddlZnddlZWnek
rQd�ZqhXd�ZquXd�Zn
Xd�Zddded�Zddded�Zddded�Zddded�Zddded�Zddded�Zddded�Z n5e
dkr�ddded�Zddded�Zddded�Zddded�Zddded�Zddded�Zddded�Z n�ddded �Zddded!�Zddded"�Zddded#�Zddded$�Zddded%�Zddded&�Z ddded'�Z!ddded(�Z"ddded)�Z#ddded*�Z$ddded+�Z%ddded,�Z&ddded-�Z'd.e(fd/��YZ)e)Z*e+d0krd1Z,d2Z-dDZ.d:eGHd;GHe)e,e-d<d=�Z/x&e.D]Z0d>e0e1e/e0�fGHq7Wd?GHe)e,e-�Z/x&e.D]Z0d>e0e1e/e0�fGHqtWd@GHe)e,�Z/x&e.D]Z0d>e0e1e/e0�fGHq�WdAGHe)e,dBe�Z/x)e.D]Z0d>e0e1e/e0�fGHq�WndS(Es�Utilities for determining application-specific dirs.

See <https://github.com/platformdirs/platformdirs> for details and usage.
s2.0.2iii����NtjavaitWindowstwin32tMactdarwintlinux2(twindllcCs�|dkrd}n?|dkr*d}n*|dkr?d}ntdj|���|tjkrntj|Stdj|���d	S(
s&Get folder from environment variables.t
CSIDL_APPDATAtAPPDATAtCSIDL_COMMON_APPDATAtALLUSERSPROFILEtCSIDL_LOCAL_APPDATAtLOCALAPPDATAsUnknown CSIDL name: {}sUnset environment variable: {}N(t
ValueErrortformattostenviron(t
csidl_nametenv_var_name((s0/usr/lib/python2.7/site-packages/platformdirs.pyt_get_win_folder9s			cCs�|dkrd}n?|dkr*d}n*|dkr?d}ntdj|���tjtjd�}tj||�\}}|S(	s�Get folder from the registry.

                    This is a fallback technique at best. I'm not sure if using the
                    registry for this guarantees us the correct answer for all CSIDL_*
                    names.
                    RtAppDataR	sCommon AppDataRs
Local AppDatasUnknown CSIDL name: {}s@Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders(R
RtwinregtOpenKeytHKEY_CURRENT_USERtQueryValueEx(Rtshell_folder_nametkeyt	directoryt_((s0/usr/lib/python2.7/site-packages/platformdirs.pyRIs				cCs=ddl}ddlm}ddlm}|jjd}|jd|�}|jj	}|j
dt|j
|�d|j
j|�|jj|j��jd�}t}x*|D]"}	t|	�dkr�t}Pq�q�W|r9|jd|�}|jj	}
|
j|||�r9|jj|j��jd�}q9n|S(	sGet folder with JNA.i����N(tjna(Ritcsi�(tarraytcom.sunRtcom.sun.jna.platformRtWinDeftMAX_PATHtzerostShell32tINSTANCEtSHGetFolderPathtNonetgetattrtShlObjtSHGFP_TYPE_CURRENTtNativettoStringttostringtrstriptFalsetordtTruetKernel32tGetShortPathName(RRRRtbuf_sizetbuftshellRt
has_high_charRtkernel((s0/usr/lib/python2.7/site-packages/platformdirs.pyt_get_win_folder_with_jna`s(%!
'cCsddl}|dkr!d}n?|dkr6d}n*|dkrKd}ntd	j|���|jd
�}|jjjd|dd|�t}x*|D]"}t	|�dkr�t
}Pq�q�W|r|jd
�}|jjj|j
|d
�r|}qn|j
S(
sGet folder with ctypes.i����NRiR	i#RisUnknown CSIDL name: {}iii�(tctypesR
Rtcreate_unicode_bufferRtshell32tSHGetFolderPathWR(R0R1R2tkernel32tGetShortPathNameWtvalue(RR;tcsidl_constR6R8Rtbuf2((s0/usr/lib/python2.7/site-packages/platformdirs.pyR}s(			
cCs�|dkr|}n|r!dnd}tjjt|��}|r�|tk	rltjj|||�}ntjj||�}|r�tjj||�}q�n|S(NRR(R(RtpathtnormpathRR0tjoin(tappnamet	appauthortversiontroamingtconstRD((s0/usr/lib/python2.7/site-packages/platformdirs.pyt_user_data_dir_impl�s	cCs�|dkr|}ntjjtd��}|r�|tk	rZtjj|||�}ntjj||�}|r�tjj||�}q�n|S(NR	(R(RRDRERR0RF(RGRHRIt	multipathRD((s0/usr/lib/python2.7/site-packages/platformdirs.pyt_site_data_dir_impl�s	c	Cstd|d|d|d|�S(NRGRHRIRJ(RL(RGRHRIRJ((s0/usr/lib/python2.7/site-packages/platformdirs.pyt_user_config_dir_impl�scCstd|d|d|�S(NRGRHRI(RN(RGRHRIRM((s0/usr/lib/python2.7/site-packages/platformdirs.pyt_site_config_dir_impl�scCs�|dkr|}ntjjtd��}|r�|tk	rZtjj|||�}ntjj||�}|r�tjj|d�}n|r�tjj||�}q�n|S(NRtCache(R(RRDRERR0RF(RGRHRItopinionRD((s0/usr/lib/python2.7/site-packages/platformdirs.pyt_user_cache_dir_impl�s	c	Cstd|d|d|d|�S(NRGRHRIRJ(RL(RGRHRIRJ((s0/usr/lib/python2.7/site-packages/platformdirs.pyt_user_state_dir_impl�scCs=td|d|d|�}|r9tjj|d�}n|S(NRGRHRItLogs(RLRRDRF(RGRHRIRRRD((s0/usr/lib/python2.7/site-packages/platformdirs.pyt_user_log_dir_impl�scCsRtjjd�}|rNtjj||�}|rNtjj||�}qNn|S(Ns~/Library/Application Support/(RRDt
expanduserRF(RGRHRIRJRD((s0/usr/lib/python2.7/site-packages/platformdirs.pyRL�scCsFd}|rBtjj||�}|rBtjj||�}qBn|S(Ns/Library/Application Support(RRDRF(RGRHRIRMRD((s0/usr/lib/python2.7/site-packages/platformdirs.pyRN�scCsRtjjd�}|rNtjj||�}|rNtjj||�}qNn|S(Ns~/Library/Preferences/(RRDRWRF(RGRHRIRJRD((s0/usr/lib/python2.7/site-packages/platformdirs.pyRO�scCs(d}|r$tjj||�}n|S(Ns/Library/Preferences(RRDRF(RGRHRIRMRD((s0/usr/lib/python2.7/site-packages/platformdirs.pyRP�scCsRtjjd�}|rNtjj||�}|rNtjj||�}qNn|S(Ns~/Library/Caches(RRDRWRF(RGRHRIRRRD((s0/usr/lib/python2.7/site-packages/platformdirs.pyRSsc	Cstd|d|d|d|�S(NRGRHRIRJ(RL(RGRHRIRJ((s0/usr/lib/python2.7/site-packages/platformdirs.pyRTscCsRtjjd�}|rNtjj||�}|rNtjj||�}qNn|S(Ns~/Library/Logs(RRDRWRF(RGRHRIRRRD((s0/usr/lib/python2.7/site-packages/platformdirs.pyRVscCsqdtjkrtjd}ntjjd�}|rmtjj||�}|rmtjj||�}qmn|S(Nt
XDG_DATA_HOMEs~/.local/share(RRRDRWRF(RGRHRIRJRD((s0/usr/lib/python2.7/site-packages/platformdirs.pyRLscCs�dtjkrtjd}ndjtj�}g|jtj�D]$}tjj|jtj��^qD}|r�|r�tjj	||�}ng|D]}tjj	||�^q�}n|r�tjj	|�}n
|d}|S(Nt
XDG_DATA_DIRSs/usr/local/share{}/usr/sharei(
RRRtpathseptsplitRDRWR/tsepRF(RGRHRIRMRDtxtpathlist((s0/usr/lib/python2.7/site-packages/platformdirs.pyRN's=+
cCsqdtjkrtjd}ntjjd�}|rmtjj||�}|rmtjj||�}qmn|S(NtXDG_CONFIG_HOMEs	~/.config(RRRDRWRF(RGRHRIRJRD((s0/usr/lib/python2.7/site-packages/platformdirs.pyRO<scCs�dtjkrtjd}nd}g|jtj�D]$}tjj|jtj��^q8}|r�|r�tjj||�}ng|D]}tjj||�^q�}n|r�tjj|�}n
|d}|S(NtXDG_CONFIG_DIRSs/etc/xdgi(	RRR[RZRDRWR/R\RF(RGRHRIRMRDR]R^((s0/usr/lib/python2.7/site-packages/platformdirs.pyRPIs=+
cCsqdtjkrtjd}ntjjd�}|rmtjj||�}|rmtjj||�}qmn|S(NtXDG_CACHE_HOMEs~/.cache(RRRDRWRF(RGRHRIRRRD((s0/usr/lib/python2.7/site-packages/platformdirs.pyRS^scCsqdtjkrtjd}ntjjd�}|rmtjj||�}|rmtjj||�}qmn|S(NtXDG_STATE_HOMEs~/.local/state(RRRDRWRF(RGRHRIRJRD((s0/usr/lib/python2.7/site-packages/platformdirs.pyRTkscCs=td|d|d|�}|r9tjj|d�}n|S(NRGRHRItlog(RSRRDRF(RGRHRIRRRD((s0/usr/lib/python2.7/site-packages/platformdirs.pyRVxsc	Cstd|d|d|d|�S(sJReturn full path to the user-specific data dir for this application.

        "appname" is the name of application.
            If None, just the system directory is returned.
        "appauthor" (only used on Windows) is the name of the
            appauthor or distributing body for this application. Typically
            it is the owning company name. This falls back to appname. You may
            pass False to disable it.
        "version" is an optional version path element to append to the
            path. You might want to use this if you want multiple versions
            of your app to be able to run independently. If used, this
            would typically be "<major>.<minor>".
            Only applied when appname is present.
        "roaming" (boolean, default False) can be set True to use the Windows
            roaming appdata directory. That means that for users on a Windows
            network setup for roaming profiles, this user data will be
            sync'd on login. See
            <http://technet.microsoft.com/en-us/library/cc766489(WS.10).aspx>
            for a discussion of issues.

    Typical user data directories are:
        Mac OS X:               ~/Library/Application Support/<AppName>
        Unix:                   ~/.local/share/<AppName>    # or in $XDG_DATA_HOME, if defined
        Win XP (not roaming):   C:\Documents and Settings\<username>\Application Data\<AppAuthor>\<AppName>
        Win XP (roaming):       C:\Documents and Settings\<username>\Local Settings\Application Data\<AppAuthor>\<AppName>
        Win 7  (not roaming):   C:\Users\<username>\AppData\Local\<AppAuthor>\<AppName>
        Win 7  (roaming):       C:\Users\<username>\AppData\Roaming\<AppAuthor>\<AppName>

    For Unix, we follow the XDG spec and support $XDG_DATA_HOME.
    That means, by default "~/.local/share/<AppName>".
    RGRHRIRJ(RL(RGRHRIRJ((s0/usr/lib/python2.7/site-packages/platformdirs.pyt
user_data_dir�s c	Cstd|d|d|d|�S(siReturn full path to the user-shared data dir for this application.

        "appname" is the name of application.
            If None, just the system directory is returned.
        "appauthor" (only used on Windows) is the name of the
            appauthor or distributing body for this application. Typically
            it is the owning company name. This falls back to appname. You may
            pass False to disable it.
        "version" is an optional version path element to append to the
            path. You might want to use this if you want multiple versions
            of your app to be able to run independently. If used, this
            would typically be "<major>.<minor>".
            Only applied when appname is present.
        "multipath" is an optional parameter only applicable to *nix
            which indicates that the entire list of data dirs should be
            returned. By default, the first item from XDG_DATA_DIRS is
            returned, or '/usr/local/share/<AppName>',
            if XDG_DATA_DIRS is not set

    Typical site data directories are:
        Mac OS X:   /Library/Application Support/<AppName>
        Unix:       /usr/local/share/<AppName> or /usr/share/<AppName>
        Win XP:     C:\Documents and Settings\All Users\Application Data\<AppAuthor>\<AppName>
        Vista:      (Fail! "C:\ProgramData" is a hidden *system* directory on Vista.)
        Win 7:      C:\ProgramData\<AppAuthor>\<AppName>   # Hidden, but writeable on Win 7.

    For Unix, this is using the $XDG_DATA_DIRS[0] default.

    WARNING: Do not use this on Windows. See the Vista-Fail note above for why.
    RGRHRIRM(RN(RGRHRIRM((s0/usr/lib/python2.7/site-packages/platformdirs.pyt
site_data_dir�sc	Cstd|d|d|d|�S(s�Return full path to the user-specific config dir for this application.

        "appname" is the name of application.
            If None, just the system directory is returned.
        "appauthor" (only used on Windows) is the name of the
            appauthor or distributing body for this application. Typically
            it is the owning company name. This falls back to appname. You may
            pass False to disable it.
        "version" is an optional version path element to append to the
            path. You might want to use this if you want multiple versions
            of your app to be able to run independently. If used, this
            would typically be "<major>.<minor>".
            Only applied when appname is present.
        "roaming" (boolean, default False) can be set True to use the Windows
            roaming appdata directory. That means that for users on a Windows
            network setup for roaming profiles, this user data will be
            sync'd on login. See
            <http://technet.microsoft.com/en-us/library/cc766489(WS.10).aspx>
            for a discussion of issues.

    Typical user config directories are:
        Mac OS X:               ~/Library/Preferences/<AppName>
        Unix:                   ~/.config/<AppName>     # or in $XDG_CONFIG_HOME, if defined
        Win *:                  same as user_data_dir

    For Unix, we follow the XDG spec and support $XDG_CONFIG_HOME.
    That means, by default "~/.config/<AppName>".
    RGRHRIRJ(RO(RGRHRIRJ((s0/usr/lib/python2.7/site-packages/platformdirs.pytuser_config_dir�sc	Cstd|d|d|d|�S(sReturn full path to the user-shared data dir for this application.

        "appname" is the name of application.
            If None, just the system directory is returned.
        "appauthor" (only used on Windows) is the name of the
            appauthor or distributing body for this application. Typically
            it is the owning company name. This falls back to appname. You may
            pass False to disable it.
        "version" is an optional version path element to append to the
            path. You might want to use this if you want multiple versions
            of your app to be able to run independently. If used, this
            would typically be "<major>.<minor>".
            Only applied when appname is present.
        "multipath" is an optional parameter only applicable to *nix
            which indicates that the entire list of config dirs should be
            returned. By default, the first item from XDG_CONFIG_DIRS is
            returned, or '/etc/xdg/<AppName>', if XDG_CONFIG_DIRS is not set

    Typical site config directories are:
        Mac OS X:   same as site_data_dir
        Unix:       /etc/xdg/<AppName> or $XDG_CONFIG_DIRS[i]/<AppName> for each value in
                    $XDG_CONFIG_DIRS
        Win *:      same as site_data_dir
        Vista:      (Fail! "C:\ProgramData" is a hidden *system* directory on Vista.)

    For Unix, this is using the $XDG_CONFIG_DIRS[0] default, if multipath=False

    WARNING: Do not use this on Windows. See the Vista-Fail note above for why.
    RGRHRIRM(RP(RGRHRIRM((s0/usr/lib/python2.7/site-packages/platformdirs.pytsite_config_dir�sc	Cstd|d|d|d|�S(sReturn full path to the user-specific cache dir for this application.

        "appname" is the name of application.
            If None, just the system directory is returned.
        "appauthor" (only used on Windows) is the name of the
            appauthor or distributing body for this application. Typically
            it is the owning company name. This falls back to appname. You may
            pass False to disable it.
        "version" is an optional version path element to append to the
            path. You might want to use this if you want multiple versions
            of your app to be able to run independently. If used, this
            would typically be "<major>.<minor>".
            Only applied when appname is present.
        "opinion" (boolean) can be False to disable the appending of
            "Cache" to the base app data dir for Windows. See
            discussion below.

    Typical user cache directories are:
        Mac OS X:   ~/Library/Caches/<AppName>
        Unix:       ~/.cache/<AppName> (XDG default)
        Win XP:     C:\Documents and Settings\<username>\Local Settings\Application Data\<AppAuthor>\<AppName>\Cache
        Vista:      C:\Users\<username>\AppData\Local\<AppAuthor>\<AppName>\Cache

    On Windows the only suggestion in the MSDN docs is that local settings go in
    the `CSIDL_LOCAL_APPDATA` directory. This is identical to the non-roaming
    app data dir (the default returned by `user_data_dir` above). Apps typically
    put cache data somewhere *under* the given dir here. Some examples:
        ...\Mozilla\Firefox\Profiles\<ProfileName>\Cache
        ...\Acme\SuperApp\Cache\1.0
    OPINION: This function appends "Cache" to the `CSIDL_LOCAL_APPDATA` value.
    This can be disabled with the `opinion=False` option.
    RGRHRIRR(RS(RGRHRIRR((s0/usr/lib/python2.7/site-packages/platformdirs.pytuser_cache_dirs!c	Cstd|d|d|d|�S(sReturn full path to the user-specific state dir for this application.

        "appname" is the name of application.
            If None, just the system directory is returned.
        "appauthor" (only used on Windows) is the name of the
            appauthor or distributing body for this application. Typically
            it is the owning company name. This falls back to appname. You may
            pass False to disable it.
        "version" is an optional version path element to append to the
            path. You might want to use this if you want multiple versions
            of your app to be able to run independently. If used, this
            would typically be "<major>.<minor>".
            Only applied when appname is present.
        "roaming" (boolean, default False) can be set True to use the Windows
            roaming appdata directory. That means that for users on a Windows
            network setup for roaming profiles, this user data will be
            sync'd on login. See
            <http://technet.microsoft.com/en-us/library/cc766489(WS.10).aspx>
            for a discussion of issues.

    Typical user state directories are:
        Mac OS X:  same as user_data_dir
        Unix:      ~/.local/state/<AppName>   # or in $XDG_STATE_HOME, if defined
        Win *:     same as user_data_dir

    For Unix, we follow this Debian proposal <https://wiki.debian.org/XDGBaseDirectorySpecification#state>
    to extend the XDG spec and support $XDG_STATE_HOME.

    That means, by default "~/.local/state/<AppName>".
    RGRHRIRJ(RT(RGRHRIRJ((s0/usr/lib/python2.7/site-packages/platformdirs.pytuser_state_dir*sc	Cstd|d|d|d|�S(s�Return full path to the user-specific log dir for this application.

        "appname" is the name of application.
            If None, just the system directory is returned.
        "appauthor" (only used on Windows) is the name of the
            appauthor or distributing body for this application. Typically
            it is the owning company name. This falls back to appname. You may
            pass False to disable it.
        "version" is an optional version path element to append to the
            path. You might want to use this if you want multiple versions
            of your app to be able to run independently. If used, this
            would typically be "<major>.<minor>".
            Only applied when appname is present.
        "opinion" (boolean) can be False to disable the appending of
            "Logs" to the base app data dir for Windows, and "log" to the
            base cache dir for Unix. See discussion below.

    Typical user log directories are:
        Mac OS X:   ~/Library/Logs/<AppName>
        Unix:       ~/.cache/<AppName>/log  # or under $XDG_CACHE_HOME if defined
        Win XP:     C:\Documents and Settings\<username>\Local Settings\Application Data\<AppAuthor>\<AppName>\Logs
        Vista:      C:\Users\<username>\AppData\Local\<AppAuthor>\<AppName>\Logs

    On Windows the only suggestion in the MSDN docs is that local settings
    go in the `CSIDL_LOCAL_APPDATA` directory. (Note: I'm interested in
    examples of what some windows apps use for a logs dir.)

    OPINION: This function appends "Logs" to the `CSIDL_LOCAL_APPDATA`
    value for Windows and appends "log" to the user cache dir for Unix.
    This can be disabled with the `opinion=False` option.
    RGRHRIRR(RV(RGRHRIRR((s0/usr/lib/python2.7/site-packages/platformdirs.pytuser_log_dirLs tPlatformDirscBs�eZdZd	d	d	eed�Zed��Zed��Zed��Z	ed��Z
ed��Zed��Zed��Z
RS(
s1Convenience wrapper for getting application dirs.cCs1||_||_||_||_||_dS(N(RGRHRIRJRM(tselfRGRHRIRJRM((s0/usr/lib/python2.7/site-packages/platformdirs.pyt__init__qs
				cCs%t|j|jd|jd|j�S(NRIRJ(RdRGRHRIRJ(Rl((s0/usr/lib/python2.7/site-packages/platformdirs.pyRdyscCs%t|j|jd|jd|j�S(NRIRM(ReRGRHRIRM(Rl((s0/usr/lib/python2.7/site-packages/platformdirs.pyRe~scCs%t|j|jd|jd|j�S(NRIRJ(RfRGRHRIRJ(Rl((s0/usr/lib/python2.7/site-packages/platformdirs.pyRf�scCs%t|j|jd|jd|j�S(NRIRM(RgRGRHRIRM(Rl((s0/usr/lib/python2.7/site-packages/platformdirs.pyRg�scCst|j|jd|j�S(NRI(RhRGRHRI(Rl((s0/usr/lib/python2.7/site-packages/platformdirs.pyRh�scCst|j|jd|j�S(NRI(RiRGRHRI(Rl((s0/usr/lib/python2.7/site-packages/platformdirs.pyRi�scCst|j|jd|j�S(NRI(RjRGRHRI(Rl((s0/usr/lib/python2.7/site-packages/platformdirs.pyRj�sN(t__name__t
__module__t__doc__R(R0RmtpropertyRdReRfRgRhRiRj(((s0/usr/lib/python2.7/site-packages/platformdirs.pyRkos	t__main__tMyAppt	MyCompanyRdRfRhRiRjReRgs-- app dirs %s --s%-- app dirs (with optional 'version')RIs1.0s%s: %ss)
-- app dirs (without optional 'version')s+
-- app dirs (without optional 'appauthor')s(
-- app dirs (with disabled 'appauthor')RH(iii(RdRfRhRiRjReRg(2Rpt__version__t__version_info__tsysRtversion_infotPY2tstrtunicodetplatformt
startswithtjava_vertos_nametsystemR;RtImportErrortcom.sun.jnatcomt_winregRRR:R(R0RLRNRORPR2RSRTRVRdReRfRgRhRiRjtobjectRktAppDirsRnRGRHtpropstdirstpropR)(((s0/usr/lib/python2.7/site-packages/platformdirs.pyt<module>s�					





					



#" !$"#/	




© 2025 GrazzMean