packets.py
def __set_attacker_mac(self, mac_addr: str) -> str:
        """
        Sets the attacker's MAC address to a random IEEE 802 compliant
        address if 'disassociate' is set to True or queries the system
        for the interface's address by temporarily binding to it.
        """
        if mac_addr is not None:
            return mac_addr
        if self.__disassociate is True:
            return self.__randomize_mac_addr()
        with socket(AF_PACKET, SOCK_RAW) as sock:
            sock.bind((self.interface, 0))
            mac_address: bytes = sock.getsockname()[4]
        return self.__bytes_to_mac_addr(mac_address)

        Sets the attacker's MAC address to a random IEEE 802 compliant
        address if 'disassociate' is set to True or queries the system
        for the interface's address by temporarily binding to it.
        
Sets the attacker's MAC address to a random IEEE 802 compliant
address if 'disassociate' is set to True or queries the system
for the interface's address by temporarily binding to it.
Sets the attacker ' s MAC address to a random IEEE 802 compliant address if ' disassociate ' is set to True or queries the system for the interface ' s address by temporarily binding to it .
def __set_attacker_mac(self, mac_addr: str) -> str:
        if mac_addr is not None:
            return mac_addr
        if self.__disassociate is True:
            return self.__randomize_mac_addr()
        with socket(AF_PACKET, SOCK_RAW) as sock:
            sock.bind((self.interface, 0))
            mac_address: bytes = sock.getsockname()[4]
        return self.__bytes_to_mac_addr(mac_address)
def __set_attacker_mac ( self , mac_addr : str ) -> str : if mac_addr is not None : return mac_addr if self . __disassociate is True : return self . __randomize_mac_addr ( ) with socket ( AF_PACKET , SOCK_RAW ) as sock : sock . bind ( ( self . interface , 0 ) ) mac_address : bytes = sock . getsockname ( ) [ 4 ] return self . __bytes_to_mac_addr ( mac_address )
Sets the attacker's MAC address to a random IEEE 802 compliant
address if 'disassociate' is set to True or queries the system
for the interface's address by temporarily binding to it.
Sets the attacker ' s MAC address to a random IEEE 802 compliant address if ' disassociate ' is set to True or queries the system for the interface ' s address by temporarily binding to it .
"""
        Sets the attacker's MAC address to a random IEEE 802 compliant
        address if 'disassociate' is set to True or queries the system
        for the interface's address by temporarily binding to it.
        """
self
mac_addr
str