In this blog post, we will explore how to create a WiFi monitor using the ESP8266 microcontroller. The project involves detecting and analyzing WiFi packets, and specifically focuses on identifying deauthentication attacks. We will utilize the ESP8266WiFi library, along with the SSD1306 library for controlling an OLED display. So, let's dive into the details and get started!

Components

  • Esp8266
  • OLED Display SSD1306
  • Push Button
  • BreadBoard
  • Jumber Wires

  • Circuit Connection


    OLED to ESP8266


  • Connect the GND pin of the OLED display to the GND pin on the D1 Mini.
  • Connect the VCC pin of the OLED display to the 3.3V pin on the D1 Mini.
  • Connect the SDA pin of the OLED display to the D1 pin on the D1 Mini.
  • Connect the SCL pin of the OLED display to the D2 pin on the D1 Mini.

  • Push Button to ESP8266


  • Connect the one end of the Push Button to the GND pin on the D1 Mini.
  • Connect the one end of the Push Button to the D4 pin on the D1 Mini.

  • Refer to the circuit diagram for proper wiring.


    Programing the ESP8266 or D1 Mini


    To upload code to ESP8266/D1 Mini, use an ESP8266 flasher. The flasher and program files are available in our GitHub repository. Download the file,and extract it.

    Download File

  • open the ESP8266 flasher.



  • Choose the downloaded bin file (packet_monitor.bin) in the config option. Connect your ESP8266 module, select the COM port, and click the flash button.



  • If nothing is shown on the display, just press the reset button on your D1 Mini board it will restart your esp8266.

  • The OLED display will show available WiFi networks. The WiFi monitor will continuously scan the WiFi channels and display real-time statistics, including the current channel, total packets, deauthentication packets, and a graphical representation of packet counts. Press the push button to switch channels and update the displayed information accordingly.

    Conclusion


    By following this guide, you have successfully built a WiFi monitor with deauthentication detection using an ESP8266. The flashed firmware allows the WiFi monitor to automatically start upon powering on the circuit, displaying real-time statistics on an OLED display. This can be a valuable tool for analyzing WiFi networks and enhancing network security. Remember to explore further possibilities, such as integrating additional features like logging, notifications, or remote monitoring capabilities. Experiment, learn, and continue to build upon this project to make it even more powerful and versatile.



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

    Happy hacking!



    #wardriving #wifipentesting #hackernowful #hypesecinfotech #deauther #wifirecon #packetmonitor