One Hat Cyber Team
Your IP :
18.119.11.179
Server IP :
103.133.214.160
Server :
Linux venus.ewebguru.net 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
Server Software :
Apache/2
PHP Version :
8.1.30
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib64
/
python3.6
/
ctypes
/
__pycache__
/
Edit File:
__init__.cpython-36.pyc
3 �Qg1@������������������@���s>��d�Z�ddlZddlZdZddlmZmZm Z �ddlm Z �ddlmZ�ddlmZ �ddlmZmZ�dd lmZ�dd lmZ�ee kr�edee ��ejdkr�dd lmZ�eZejdkr�ejdkr�eej��jjd�d��dk�r�eZddlmZmZ m!Z"m#Z$�d}dd�Z%d~dd�Z&i�Z'dd��Z(ejdk�r\ddlm)Z*�ddlm+Z,�i�Z-dd��Z.e.j��rte(j�j/dd�e._�nejdk�rtddlm0Z*�ddlm1Z1m2Z2m3Z3m4Z4m5Z5�ddlm6Z6m7Z7�dd lm8Z8�dd!d"�Z9G�d#d$��d$e8�Z:e9e:d%��G�d&d'��d'e8�Z;e9e;��G�d(d)��d)e8�Z<e9e<��G�d*d+��d+e8�Z=e9e=��G�d,d-��d-e8�Z>e9e>��ed.�ed/�k�rLe=Z?e>Z@n0G�d0d1��d1e8�Z?e9e?��G�d2d3��d3e8�Z@e9e@��G�d4d5��d5e8�ZAe9eA��G�d6d7��d7e8�ZBe9eB��G�d8d9��d9e8�ZCe1eC�e1eB�k�r�eBZCed/�ed:�k�r�e=ZDe>ZEn0G�d;d<��d<e8�ZDe9eD��G�d=d>��d>e8�ZEe9eE��G�d?d@��d@e8�ZFeF�eF_GeF_He9eF��G�dAdB��dBe8�ZIeI�eI_GeI_He9eI��G�dCdD��dDe8�ZJeJ�eJ_GeJ_He9eJ��G�dEdF��dFe8�ZKe9eKd%��G�dGdH��dHe8�ZLeLZMe9eL��G�dIdJ��dJe8�ZNddKlmOZOmPZPmQZQ�G�dLdM��dMe8�ZRG�dNdO��dOe8�ZSdPdQ��ZTd�dRdS�ZUdTdU��ZVdVdW��ZWG�dXdY��dYeX�ZYG�dZd[��d[eY�ZZejdk�r�G�d\d]��d]eY�Z[dd^lm\Z\m8Z8�G�d_d`��d`e8�Z]G�dadb��dbeY�Z^G�dcdd��ddeX�Z_e_eY�Z`e_eZ�Zaejdk�r�eZdedejb�Zcn,ejdfk�r�eZdgejdddh����ZcneZd�Zcejdk�rNe_e[�Zee_e^�Zfejdk�r,eejgjhZhneejijhZhddilmjZjmkZk�d�djdk�Zle1e@�e1eL�k�rje@Zme?Znn6e1e>�e1eL�k�r�e>Zme=Znne1eE�e1eL�k�r�eEZmeDZnddllmoZompZpmqZqmrZr�e(eLeLeLem�eo�Zse(eLeLe?em�ep�Ztdmdn��Zueue:eLe:e:�er�Zvdodp��Zweue:eLe?�eq�Zxd�drds�ZyyddtlmzZz�W�n�e{k �r>���Y�nX�eue:eLe?�ez�Z|d�dudv�Z}ejdk�rvdwdx��Z~dydz��Zdd{l�m�Z�m�Z��eIZ�eFZ�xPe;e?e=eDgD�]@Z�e1e��dhk�r�e�Z�n&e1e��d|k�r�e�Z�ne1e��dk�r�e�Z��q�W�xPe<e@e>eEgD�]@Z�e1e��dhk�re�Z�n&e1e��d|k�re�Z�ne1e��dk�r�e�Z��q�W�[�eT���dS�)�z,create and manipulate C data types in Python�����Nz1.1.0)�Union� Structure�Array)�_Pointer)�CFuncPtr)�__version__)� RTLD_LOCAL�RTLD_GLOBAL)� ArgumentError)�calcsizezVersion number mismatch�nt)�FormatError�posix�darwin�.����)�FUNCFLAG_CDECL�FUNCFLAG_PYTHONAPI�FUNCFLAG_USE_ERRNO�FUNCFLAG_USE_LASTERRORc�������������C���s^���t�|�t�r6|dkrt|��d�}t|�}|��}|�|_|S�t�|�t�rRt|��}|��}|S�t|���dS�)z�create_string_buffer(aBytes) -> character array create_string_buffer(anInteger) -> character array create_string_buffer(aBytes, anInteger) -> character array N����)� isinstance�bytes�len�c_char�value�int� TypeError)�init�size�buftype�buf��r"����'/usr/lib64/python3.6/ctypes/__init__.py�create_string_buffer/���s���� r$���c�������������C���s ���t�|�|�S�)N)r$���)r���r���r"���r"���r#����c_bufferA���s����r%���c����������������s����t��|jdd�r�tO��|jdd�r,�tO��|r@td|j�����yt����f�S��tk r����G�����fdd�dt�}|t����f<�|S�X�dS�)a���CFUNCTYPE(restype, *argtypes, use_errno=False, use_last_error=False) -> function prototype. restype: the result type argtypes: a sequence specifying the argument types The function prototype can be called in different ways to create a callable object: prototype(integer address) -> foreign function prototype(callable) -> create and return a C callable function from callable prototype(integer index, method name[, paramflags]) -> foreign function calling a COM method prototype((ordinal number, dll object)[, paramflags]) -> foreign function exported by ordinal prototype((function name, dll object)[, paramflags]) -> foreign function exported by name � use_errnoF�use_last_errorz!unexpected keyword argument(s) %sc�������������������s���e�Zd�Z��Z�Z�ZdS�)z CFUNCTYPE.<locals>.CFunctionTypeN)�__name__� __module__�__qualname__� _argtypes_� _restype_�_flags_r"���)�argtypes�flags�restyper"���r#���� CFunctionTypec���s���r1���N) �_FUNCFLAG_CDECL�pop�_FUNCFLAG_USE_ERRNO�_FUNCFLAG_USE_LASTERROR� ValueError�keys�_c_functype_cache�KeyError� _CFuncPtr)r0���r.����kwr1���r"���)r.���r/���r0���r#���� CFUNCTYPEI���s����r<���)�LoadLibrary)�FUNCFLAG_STDCALLc����������������s����t��|jdd�r�tO��|jdd�r,�tO��|r@td|j�����yt����f�S��tk r����G�����fdd�dt�}|t����f<�|S�X�d�S�)Nr&���Fr'���z!unexpected keyword argument(s) %sc�������������������s���e�Zd�Z��Z�Z�ZdS�)z$WINFUNCTYPE.<locals>.WinFunctionTypeN)r(���r)���r*���r+���r,���r-���r"���)r.���r/���r0���r"���r#����WinFunctionType{���s���r?���) �_FUNCFLAG_STDCALLr3���r4���r5���r6���r7����_win_functype_cacher9���r:���)r0���r.���r;���r?���r"���)r.���r/���r0���r#����WINFUNCTYPEo���s����rB���)�dlopen)�sizeof�byref� addressof� alignment�resize)� get_errno� set_errno)�_SimpleCDatac�������������C���sJ���ddl�m}�|d�kr|�j}t|��||��}}||krFtd|�||f���d�S�)Nr���)r���z"sizeof(%s) wrong: %d instead of %d)�structr����_type_rD����SystemError)�typ�typecoder���ZactualZrequiredr"���r"���r#����_check_size����s����rQ���c�������������������s ���e�Zd�ZdZ��fdd�Z���ZS�)� py_object�Oc����������������s.���y t���j��S��tk r(���dt|��j�S�X�d�S�)Nz %s(<NULL>))�super�__repr__r6����typer(���)�self)� __class__r"���r#���rU�������s���� zpy_object.__repr__)r(���r)���r*���rM���rU���� __classcell__r"���r"���)rX���r#���rR�������s���rR����Pc���������������@���s���e�Zd�ZdZdS�)�c_short�hN)r(���r)���r*���rM���r"���r"���r"���r#���r[�������s���r[���c���������������@���s���e�Zd�ZdZdS�)�c_ushort�HN)r(���r)���r*���rM���r"���r"���r"���r#���r]�������s���r]���c���������������@���s���e�Zd�ZdZdS�)�c_long�lN)r(���r)���r*���rM���r"���r"���r"���r#���r_�������s���r_���c���������������@���s���e�Zd�ZdZdS�)�c_ulong�LN)r(���r)���r*���rM���r"���r"���r"���r#���ra�������s���ra����ir`���c���������������@���s���e�Zd�ZdZdS�)�c_intrc���N)r(���r)���r*���rM���r"���r"���r"���r#���rd�������s���rd���c���������������@���s���e�Zd�ZdZdS�)�c_uint�IN)r(���r)���r*���rM���r"���r"���r"���r#���re�������s���re���c���������������@���s���e�Zd�ZdZdS�)�c_float�fN)r(���r)���r*���rM���r"���r"���r"���r#���rg�������s���rg���c���������������@���s���e�Zd�ZdZdS�)�c_double�dN)r(���r)���r*���rM���r"���r"���r"���r#���ri�������s���ri���c���������������@���s���e�Zd�ZdZdS�)�c_longdouble�gN)r(���r)���r*���rM���r"���r"���r"���r#���rk�������s���rk����qc���������������@���s���e�Zd�ZdZdS�)� c_longlongrm���N)r(���r)���r*���rM���r"���r"���r"���r#���rn�������s���rn���c���������������@���s���e�Zd�ZdZdS�)�c_ulonglong�QN)r(���r)���r*���rM���r"���r"���r"���r#���ro�������s���ro���c���������������@���s���e�Zd�ZdZdS�)�c_ubyte�BN)r(���r)���r*���rM���r"���r"���r"���r#���rq�������s���rq���c���������������@���s���e�Zd�ZdZdS�)�c_byte�bN)r(���r)���r*���rM���r"���r"���r"���r#���rs�������s���rs���c���������������@���s���e�Zd�ZdZdS�)r����cN)r(���r)���r*���rM���r"���r"���r"���r#���r�������s���r���c���������������@���s���e�Zd�ZdZdd��ZdS�)�c_char_p�zc�������������C���s���d|�j�jtj|��jf�S�)Nz%s(%s))rX���r(����c_void_p�from_bufferr���)rW���r"���r"���r#���rU�������s����zc_char_p.__repr__N)r(���r)���r*���rM���rU���r"���r"���r"���r#���rv�������s���rv���c���������������@���s���e�Zd�ZdZdS�)rx���rZ���N)r(���r)���r*���rM���r"���r"���r"���r#���rx�������s���rx���c���������������@���s���e�Zd�ZdZdS�)�c_bool�?N)r(���r)���r*���rM���r"���r"���r"���r#���rz�������s���rz���)�POINTER�pointer�_pointer_type_cachec���������������@���s���e�Zd�ZdZdd��ZdS�)� c_wchar_p�Zc�������������C���s���d|�j�jtj|��jf�S�)Nz%s(%s))rX���r(���rx���ry���r���)rW���r"���r"���r#���rU�������s����zc_wchar_p.__repr__N)r(���r)���r*���rM���rU���r"���r"���r"���r#���r�������s���r���c���������������@���s���e�Zd�ZdZdS�)�c_wchar�uN)r(���r)���r*���rM���r"���r"���r"���r#���r�������s���r����c���������������C���sF���t�j���tj���tjdkr"tj���tjtt �_t jtt�_tt�d�<�d�S�)Nr���) r~����clearr8����_os�namerA���r���Z from_paramr|���r����rv���r���rx���r"���r"���r"���r#����_reset_cache��s���� r����c�������������C���s^���t�|�t�r6|dkrt|��d�}t|�}|��}|�|_|S�t�|�t�rRt|��}|��}|S�t|���dS�)z�create_unicode_buffer(aString) -> character array create_unicode_buffer(anInteger) -> character array create_unicode_buffer(aString, anInteger) -> character array Nr���)r����strr���r����r���r���r���)r���r���r ���r!���r"���r"���r#����create_unicode_buffer��s���� r����c�������������C���sL���t�j|d��d�k rtd��t|��t�kr,td��|�j|��|�t�|<�t�t|��=�d�S�)Nz%This type already exists in the cachezWhat's this???)r~����get�RuntimeError�idZset_type)r}����clsr"���r"���r#����SetPointerType"��s���� r����c�������������C���s���|�|�S�)Nr"���)rO���r���r"���r"���r#����ARRAY,��s����r����c���������������@���sN���e�Zd�ZdZeZeZdZdZ dZ edddfdd�Zdd ��Z d d��Zdd ��ZdS�)�CDLLa���An instance of this class represents a loaded dll/shared library, exporting functions using the standard C calling convention (named 'cdecl' on Windows). The exported functions can be accessed as attributes, or by indexing with the function name. Examples: <obj>.qsort -> callable object <obj>['qsort'] -> callable object Calling the functions releases the Python GIL during the call and reacquires it afterwards. z<uninitialized>r���NFc����������������sb���|�_��j��|r��tO���|r$��tO���G����fdd�dt�}|�_|d�krXt�j�|��_n|�_d�S�)Nc�������������������s���e�Zd�Z��Z�jZdS�)zCDLL.__init__.<locals>._FuncPtrN)r(���r)���r*���r-����_func_restype_r,���r"���)r/���rW���r"���r#����_FuncPtrQ��s���r����)�_name�_func_flags_r4���r5���r:���r�����_dlopen�_handle)rW���r�����modeZhandler&���r'���r����r"���)r/���rW���r#����__init__G��s����z CDLL.__init__c�������������C���s8���d|�j�j|�j|�jtjd�d�@�t|��tjd�d�@�f�S�)Nz<%s '%s', handle %x at %#x>����r���)rX���r(���r����r�����_sys�maxsizer����)rW���r"���r"���r#���rU���[��s���� z CDLL.__repr__c�������������C���s6���|j�d�r|jd�rt|��|�j|�}t|�||��|S�)N�__)� startswith�endswith�AttributeError�__getitem__�setattr)rW���r�����funcr"���r"���r#����__getattr__a��s ���� zCDLL.__getattr__c�������������C���s"���|�j�||�f�}t|t�s||_|S�)N)r����r���r���r(���)rW���Zname_or_ordinalr����r"���r"���r#���r����h��s���� zCDLL.__getitem__)r(���r)���r*����__doc__r2���r����rd���r����r����r����r�����DEFAULT_MODEr����rU���r����r����r"���r"���r"���r#���r����2��s��� r����c���������������@���s���e�Zd�ZdZeeB�ZdS�)�PyDLLz�This class represents the Python library itself. It allows accessing Python API functions. The GIL is not released, and Python exceptions are handled correctly. N)r(���r)���r*���r����r2����_FUNCFLAG_PYTHONAPIr����r"���r"���r"���r#���r����n��s���r����c���������������@���s���e�Zd�ZdZeZdS�)�WinDLLznThis class represents a dll exporting functions using the Windows stdcall calling convention. N)r(���r)���r*���r����r@���r����r"���r"���r"���r#���r����w��s���r����)�_check_HRESULTrK���c���������������@���s���e�Zd�ZdZeZdS�)�HRESULTr`���N)r(���r)���r*���rM���r����Z_check_retval_r"���r"���r"���r#���r�������s��� r����c���������������@���s���e�Zd�ZdZeZeZdS�)�OleDLLz�This class represents a dll exporting functions using the Windows stdcall calling convention, and returning HRESULT. HRESULT error values are automatically raised as OSError exceptions. N)r(���r)���r*���r����r@���r����r����r����r"���r"���r"���r#���r�������s���r����c���������������@���s,���e�Zd�Zdd��Zdd��Zdd��Zdd��Zd S�) � LibraryLoaderc�������������C���s ���||�_�d�S�)N)�_dlltype)rW���Zdlltyper"���r"���r#���r�������s����zLibraryLoader.__init__c�������������C���s.���|d�dkrt�|��|�j|�}t|�||��|S�)Nr����_)r����r����r����)rW���r����Zdllr"���r"���r#���r�������s ���� zLibraryLoader.__getattr__c�������������C���s ���t�|�|�S�)N)�getattr)rW���r����r"���r"���r#���r�������s����zLibraryLoader.__getitem__c�������������C���s ���|�j�|�S�)N)r����)rW���r����r"���r"���r#���r=������s����zLibraryLoader.LoadLibraryN)r(���r)���r*���r����r����r����r=���r"���r"���r"���r#���r�������s���r����z python dll�cygwinzlibpython%d.%d.dllr����)�get_last_error�set_last_errorc�������������C���s0���|�d�krt���}�|d�kr"t|��j��}td�|d�|��S�)N)�GetLastErrorr ����strip�OSError)�codeZdescrr"���r"���r#����WinError���s ����r����)� _memmove_addr�_memset_addr�_string_at_addr� _cast_addrc����������������s���G����fdd�dt��}|S�)Nc�������������������s���e�Zd�Z��Z�ZeeB�ZdS�)z!PYFUNCTYPE.<locals>.CFunctionTypeN)r(���r)���r*���r+���r,���r2���r����r-���r"���)r.���r0���r"���r#���r1������s���r1���)r:���)r0���r.���r1���r"���)r.���r0���r#���� PYFUNCTYPE���s����r����c�������������C���s���t�|�|�|�S�)N)�_cast)�objrO���r"���r"���r#����cast���s����r����r���c�������������C���s ���t�|�|�S�)zAstring_at(addr[, size]) -> string Return the string at addr.)� _string_at)�ptrr���r"���r"���r#���� string_at���s����r����)�_wstring_at_addrc�������������C���s ���t�|�|�S�)zFwstring_at(addr[, size]) -> string Return the string at addr.)�_wstring_at)r����r���r"���r"���r#���� wstring_at���s����r����c�������������C���s@���yt�dt��t��dg�}W�n�tk r,���dS�X�|j|�||�S�d�S�)Nzcomtypes.server.inprocserver�*i�i�)� __import__�globals�locals�ImportError�DllGetClassObject)ZrclsidZriidZppv�ccomr"���r"���r#���r�������s ����r����c��������������C���s6���yt�dt��t��dg�}�W�n�tk r,���dS�X�|�j��S�)Nzcomtypes.server.inprocserverr����r���)r����r����r����r�����DllCanUnloadNow)r����r"���r"���r#���r�������s ����r����)�BigEndianStructure�LittleEndianStructure����)N)N)N)N)NN���)r����r����)r����)�r�����osr�����sysr����r���Z_ctypesr���r���r���r���r���r:���Z_ctypes_versionr���r ���r ���rL���r���Z _calcsize� Exceptionr����r ���r�����platformr����uname�release�splitr���r2���r���r����r���r4���r���r5���r$���r%���r8���r<���r=���r����r>���r@���rA���rB����replacerC���rD���rE���rF���rG���rH���rI���rJ���rK���rQ���rR���r[���r]���r_���ra���rd���re���rg���ri���rk���rn���ro���rq���Z__ctype_le__Z__ctype_be__rs���r���rv���rx���Zc_voidprz���r|���r}���r~���r���r����r����r����r����r�����objectr����r����r����r����r����r����r����ZcdllZpydllZ dllhandleZ pythonapi�version_infoZwindllZoledllZkernel32r����Zcoredllr����r����r����Zc_size_tZ c_ssize_tr����r����r����r����ZmemmoveZmemsetr����r����r����r����r����r����r����r����r����r����r����Zctypes._endianr����r����Zc_int8Zc_uint8ZkindZc_int16Zc_int32Zc_int64Zc_uint16Zc_uint32Zc_uint64r"���r"���r"���r#����<module>���s8�� ! < ��� ���
Simpan