WiFi Hacking Using ESP8266/ESP32 Node MCU Wifi Development Board | Captive portal | Deauth


This tutorial guides you through two fascinating techniques: creating a Captive Portal and executing Deauthentication attacks.

Join the Community for bugs and Doubts

 Things needed : 

  1. 2 Node MCU 8266 boards (one for Deauth, one for Captive Portal)
  2. Data cables to connect Node MCU boards
  3. Internet connection for downloading necessary files

    Setting Up Deauthentication Attack:

    1. Scan for WiFi devices, selectively block connections, generate multiple networks, and confuse WiFi scanners.
    2. Connect a Node MCU to your laptop using a data cable.
    3. Download the required Bin file.
    4. Flash the Bin file following the provided steps.
    5. Look for a new WiFi network named 'pwned' (password: deauther).
    6. Access the dashboard by navigating to
    7. You will find the de-authentication options in the dashboard for testing purposes.

    1. You can Try testing this for now.

    Setting Up Captive portal: 

    1. Download the Arduino IDE to your computer.
    2. Open the code in the IDE.
    3. In the Arduino IDE, go to "File" > "Preferences" > "Additional Boards Manager URLs" and add this URL: http://arduino.esp8266.com/stable/package_esp8266com_index.json
    4. Access the "Board Manager" and install the ESP8266 package.
    5. Follow the instructions in the provided image to complete the setup.
    6. Refer this image
    • After uploading the code you will see new wifi with your SSID_NAME = 'Baka'
    • when you try to connect it will redirect you to the Captive portal 

            Final walk:

            1. Begin by executing the de-authentication attack on your target network.
            2. The victim will notice an open WiFi network and attempt to connect, leading them to the Captive Portal.
            3. The captive portal might appear as a router update.
            4. The victim enters the network password and tries to sign in.
            5. As they input the password, the Node MCU will blink (30 times).
            6. To view the captured password, visit

            Please note that this content is for educational purposes only, and unauthorized use of these techniques may be illegal and unethical. Always ensure you have the necessary permissions to perform such experiments.

            ESP32 Wi-Fi Penetration Tool

            • Linkhttps://github.com/risinek/esp32-wifi-penetration-tool
            • Install: pip install esptool
            • Change the code for windows run code: esptool -p COM5 -b 115200 --after hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size detect 0x8000 build/partition_table/partition-table.bin 0x1000 build/bootloader/bootloader.bin 0x10000 build/esp32-wifi-penetration-tool.bin

            Post a Comment

            If you have any doubts, please let me know

            Previous Post Next Post