

- #Configure as access point ap listen for certain mac addresses esp8266 install#
- #Configure as access point ap listen for certain mac addresses esp8266 code#
Networks.loc = (ssid, dbm_signal, channel, crypto) If you're familiar with Scapy, then you know for sure that we are going to use the sniff() function, which takes the callback function that is executed whenever a packet is sniffed, let's implement this function: def callback(packet):

So I've set the BSSID (MAC address of the access point) as the index of each row, as it is unique for every device. # set the index BSSID (MAC address of the AP) Next, we need to initialize an empty data frame that stores our networks: # initialize the networks dataframe that will contain all access points nearby Let's get started, open up a new Python file and import the necessary modules: from scapy.all import *
#Configure as access point ap listen for certain mac addresses esp8266 code#
Sudo iwconfig wlan0 mode monitor Writing the Code You can also use iwconfig itself to change your network card into monitor mode: sudo ifconfig wlan0 down Now you can check your interface name using iwconfig:Īs you can see, our interface is now in monitor mode and has the name of "wlan0mon".
#Configure as access point ap listen for certain mac addresses esp8266 install#
Now the code of this tutorial won't work if you do not enable monitor mode in your network interface, please install aircrack-ng (comes pre-installed on Kali) and run the following command: Note: This tutorial assumes you are using any Unix-based environment, it is also suggested you use Kali Linux.Īfter that, we gonna use pandas just for printing in a nice format (you can change that obviously): pip3 install pandas Or you can clone the current developement version in Github: git clone To get started, you need to install Scapy, I have cloned the developement version, you can also install it using pip: pip3 install scapy If you're on this field for a while, you might have seen airodump-ng utility that sniff, capture and decode 802.11 frames to display nearby wireless networks in a nice format, in this tutorial, we will do a similar one. Have you ever wanted to build a tool to display nearby wireless networks along with their MAC address and some other useful information ? Well, in this tutorial, we are going to build a Wi-Fi scanner using Scapy library in Python.
