Code Monkey home page Code Monkey logo

fakecaptiveportal's Introduction

ESP8266 Fake Captive Portal

Disclaimer

Attention: The misuse of this software for unauthorized activities can result in criminal consequences. The author will not be held responsible for any illegal or unethical use of this software. Use it responsibly and only in compliance with applicable laws and regulations.

Overview

This project implements a rogue captive portal attack device using the ESP8266 platform. The captive portal intercepts DNS look-ups and presents login interfaces for specific URLs such as Google, Facebook, and Yahoo. Captured login credentials are stored in the ESP8266 flash memory and can be accessed by visiting RandomDomain.com/logs.

Features

  • Captive Portal: Intercepts DNS look-ups and presents fake login interfaces for specified URLs.
  • Login Interfaces: Currently implements Google login masks.
  • Credential Harvesting: Captured login data is stored in the ESP8266 flash memory.
  • LED Indicators: The built-in LED blinks to confirm successful start-up (10 blinks) and when a user logs in (5 blinks).

Usage

Setting Up the Board

  1. Select the board type as NodeMCU 1.0 (ESP-12E).

Alt text

  1. Export the code to the ESP8266.

Alt text

  1. After the export, verify that the process is successful in the terminal.

Alt text

  1. Connect to the WiFi.

Alt text

  1. You should be redirected to a Gmail login page.

Alt text

  1. View captured information in the terminal after clicking "Sign In."

Alt text

Hardware Requirements

  • An ESP8266-compatible board.
  • Correct SPIFFS setup.
  • LED pin configuration.

Installation

  1. Install the sketch using the Arduino IDE on an ESP8266-compatible board.
  2. Set up SPIFFS and configure the LED pin.
  3. No additional hardware is needed.

Configuration

  • Update the WiFi public SSID and captive portal page in the main file.

Optional Setup

  • Set up a catch-all captive portal and specify three websites to simulate for credential harvesting.

Powering the Device

  • The device can be powered by a power bank for portability.

Viewing Captured Credentials

  • Captured login credentials can be viewed by visiting RandomDomain.com/logs or in the Serial Terminal.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.