AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/twisted/internet/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /lib/python3/dist-packages/twisted/internet/test/__pycache__/_posixifaces.cpython-310.pyc
o

�b'�@s�UdZddlZddlZddlmZmZmZmZmZm	Z	m
Z
mZmZm
Z
mZmZddlmZddlmZmZmZddlmZmZmZddlmZeed�pMd	�Zej�d
�sZejdkrmde
fd
e
fgZeeeefe d<nd
efgZeeeefe d<Gdd�de�Z!Gdd�de�Z"Gdd�de�Z#Gdd�de�Z$Gdd�de�Z%Gdd�de�Z&ee&�Z'de'fdefdefdee#�fdee#�fd ee#�fd!e
fge&_(ej)Z)ee'�ge)_*ee)_+ej,Z,e'ge,_*d"d#�Z-d$d%�Z.d&d'�Z/dS)(z>
POSIX implementation of local network interface enumeration.
�N)�CDLL�POINTER�	Structure�c_char_p�c_int�c_ubyte�c_uint8�c_uint32�c_ushort�c_void_p�cast�pointer)�find_library)�AF_INET�AF_INET6�	inet_ntop)�Any�List�Tuple)�nativeString�c��freebsd�darwin�sin_len�
sin_family�_sockaddrCommonc@seZdZdedfgZdS)�in_addr�N��__name__�
__module__�__qualname__r�_fields_�r$r$�D/usr/lib/python3/dist-packages/twisted/internet/test/_posixifaces.pyr,�
�rc@seZdZdedfgZdS)�in6_addrr�Nrr$r$r$r%r'2r&r'c@seZdZedefgZdS)�sockaddr�sin_portN)r r!r"rr
r#r$r$r$r%r)8s
�r)c@s eZdZedefdefgZdS)�sockaddr_inr*�sin_addrN)r r!r"rr
rr#r$r$r$r%r+>s

�r+c@s&eZdZedefdefdefgZdS)�sockaddr_in6r*�sin_flowinfor,N)r r!r"rr
r	r'r#r$r$r$r%r-Es
�r-c@seZdZdS)�ifaddrsN)r r!r"r$r$r$r%r/Msr/�ifa_next�ifa_name�	ifa_flags�ifa_addr�ifa_netmask�ifa_dstaddr�ifa_datacCs<tj�d�r|dd�dkr|dd�d|dd�S|S)a�
    On FreeBSD, kill the embedded interface indices in link-local scoped
    addresses.

    @param family: The address family of the packed address - one of the
        I{socket.AF_*} constants.

    @param packed: The packed representation of the address (ie, the bytes of a
        I{in_addr} field).
    @type packed: L{bytes}

    @return: The packed address with any FreeBSD-specific extra bits cleared.
    @rtype: L{bytes}

    @see: U{https://twistedmatrix.com/trac/ticket/6843}
    @see: U{http://www.freebsd.org/doc/en/books/developers-handbook/ipv6.html#ipv6-scope-index}

    @note: Indications are that the need for this will be gone in FreeBSD >=10.
    rN�s��sr)�sys�platform�
startswith)�family�packedr$r$r%�_maybeCleanupScopeIndexdsr=cCs�t�}tt|��dkrt��g}ze|ro|djra|djdj}|tkr/t|djtt	��}n|t
kr>t|djtt��}nd}|rat|dj
jdd��}t||�}|�|dj|t||�f�|dj}|sWt|�|SWt|�|St|�w)z�
    Call C{getifaddrs(3)} and return a list of tuples of interface name, address
    family, and human-readable address representing its results.
    rN)�	ifaddrs_p�
getifaddrsr
�OSErrorr3rrrrr+rr-�bytesr,rr=�appendr1rr0�freeifaddrs)r/�resultsr;�addrr<r$r$r%�_interfaces}s6

�
��
�rFcCsRg}t�D]!\}}}t|�}t|�}|tjkr&|�d�r&|�|�d|���q|S)z�
    Return a list of strings in colon-hex format representing all the link local
    IPv6 addresses available on the system, as reported by I{getifaddrs(3)}.
    zfe80:�%)rFr�socketrr:rB)�retList�	interfacer;�addressr$r$r%�posixGetLinkLocalIPv6Addresses�s�rL)0�__doc__rHr8�ctypesrrrrrrrr	r
rrr
�ctypes.utilrrrr�typingrrr�twisted.python.compatr�libcr9r:r�str�__annotations__rr'r)r+r-r/r>r#r?�argtypes�restyperCr=rFrLr$r$r$r%�<module>sL8��


�
!

Anon7 - 2022
AnonSec Team