CasperSecurity

Current Path : /lib/python3/dist-packages/cloudinit/sources/helpers/__pycache__/
Upload File :
Current File : //lib/python3/dist-packages/cloudinit/sources/helpers/__pycache__/akamai.cpython-310.pyc

o

쑛h��@s�ddlZddlmZmZmZmZddlmZdddddd	d
�Zdee	ee
e	fffdd
�Zde
fdd�Zdee	fdd�Z
dS)�N)�Any�Dict�Optional�Union)�dmi�allow_local_stage�allow_init_stage�
allow_dhcp�
allow_ipv4�
allow_ipv6�preferred_mac_prefixes)�als�ais�dhcp�v4�v6�pmp�returncCsnt�d�}i}|s|St�d|�D]#\}}}|tvr4|dvr%tt|��}n	|dkr.|�d�}||t|<q|S)zH
    Parses flags from dmi data and updates self.ds_cfg accordingly
    zbaseboard-serial-numberz([a-z0-9]+)=(.*?)(;|$)�01r�,)r�
read_dmi_data�re�findall�DMI_OVERRIDE_MAP�bool�int�split)�	dmi_flags�ret�key�value�_�r"�B/usr/lib/python3/dist-packages/cloudinit/sources/helpers/akamai.py�get_dmi_configs

�r$cCst�d�}|dvS)zo
    Reads the BIOS vendor from dmi data to determine if we are running in the
    Akamai Connected Cloud.
    zsystem-manufacturer)�Linode�Akamai�rr)�vendorr"r"r#�is_on_akamai(s
r)cCs
t�d�S)zo
    Returns the instance id read from dmi data without requiring the metadata
    service to be reachable
    zsystem-serial-numberr'r"r"r"r#�get_local_instance_id1s
r*)r�typingrrrr�	cloudinitrr�strrr$r)r*r"r"r"r#�<module>s�
	
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY