How To Make PacketMonitor with ESP8266

  • by
How To Make PacketMonitor with ESP8266

is there traffic on your network when you are not using it? Or what information does this traffic have, the answer to these needs will all be met with an interesting and practical device called Packet Monitor. It is a computer program or hardware, which can record the traffic that passes through the computer network or part of the network. When data flows through the network. Analyzers can store each packet and decrypt raw packet data if needed. In this project, we will build a PacketMonitor device with ESP8266 board. We will receive the traffic in each channel and then display it graphically in graphs using the OLED display. Visit CiferTech for more tutorials, and be sure to follow my Instagram page to support me.

 

How To Make PacketMonitor with ESP8266


Wemos (ESP8266)


Wemos board is one of the most popular boards used in the field of iot, one of the advantages of this board compared to boards such as Node MCU is its small size. The Wi-Fi chip used in this board is ESP8266. Another advantage of this board is the existence of different shields for this board, which makes any project very easy and enjoyable for the user, shields such as battery shield, multi sensor, DHT22, relay, oled, a large number The shield has been developed for this board, which will leave you with a good iot experience.


Oled SSD1306 display


OLED displays are commonly used in IoT and other embedded projects to display text and different amounts. These modules come in a variety of sizes depending on the size of the driver, one of the most popular being the SSD1306 This type of OLED is usually made in the sizes of 0.96 and 1.3 inches. The light emitting diode (OLED) display that we will use in this tutorial is the SSD1306, a 0.96-inch monochrome display with 128.64 pixels as shown in the figure below. The OLED display does not require backlighting, which results in a very good contrast in dark environments. Also, its pixels consume energy only when turned on, so the OLED screen consumes less power than other monitors.

 


How PacketMonitor works?! 


In this project, the traffic values ​​in the channel specified from 1 to 14 are received with the help of ESP8266 WiFi board and Wemos boot board, and in the Oled display, which is driven by the i2c interface, graphically in the form of incoming traffic at any time. is shown. We will also be notified if there is a malfunction or deauth attack on the channel in question. We will also be able to change the channel number being analyzed using the key attached to pin D3 on the Wemos board.

How To Make PacketMonitor with ESP8266

 


Items needed


  1. wemos (ESP8266)
  2. Oled display
  3. Micro switch

ESP8266

 


Library required


In this tutorial we will use the ssd1306 library, follow the steps below to install the library.

  1. Follow this path  Sketch  >  Include Library  >  Manage Libraries
  2. Search for ssd1306.
  3. Install the library.

 


Schematic and circuit setup


In this project, we used an OLED display with SSD1306 driver, which uses the i2c interface to communicate with our Wemos board, which is based on ESP8266. We will use two pins D1, D2 to connect the monitor to the driver board, we will also use 5v and GND pins to power the monitor. Make the connections according to the schematic and the table below.

 

 

  • Schematic of Wemos board connections and Oled display

ESP8266 + oled 0.96

In the next part of the connections, we need to connect a microswitch to the wemos board to command the board to change the values ​​of the network channel. For this view, we use GPIO pin 0 on the ESP8266 chip or pin D3 on the Wemos board. Another microswitch pin is connected to the GND pin to determine the logic level. Make the connections in this section with the help of the table and schematic below.

  • Schematic of Wemos board and microswitch connections

wemos

 

In the final part to start the project, it is time for the code of this Packet Monitor. In this code, we used the SSD1306 library to launch the OLED and display the values ​​on the screen.

It can be said that one of the most important parts of the code of this part is that WiFi is set up to perform related operations.

Complete project code of PacketMonitor device with ESP8266 board and Oled display


Conclusion


In this project, we were able to measure the amount of network traffic in 14 standard channels separately. The user will also be notified in the event of a Deauth attack. All values ​​will be displayed graphically on the OLED display. And using the microswitch, we will be able to change the channel.

 

  • Thanks to Spacehuhn’s for providing the code for this project, go check out his website with awesome content.

Leave a Reply

Your email address will not be published. Required fields are marked *