Coder Social home page Coder Social logo

flexifi / evil-esp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tomellericcardo/evil-esp

0.0 1.0 0.0 451 KB

A super portable evil device, based on the ESP8266 board, running Micropython and equipped with a single button and a small OLED display

License: GNU General Public License v3.0

Python 65.96% HTML 21.78% C++ 12.25%

evil-esp's Introduction

EVIL-ESP ๐Ÿ˜ˆ

A super portable evil device, based on the ESP8266 board, running Micropython and equipped with a single button and a small OLED display.

Attacks ๐Ÿ”ช

At the moment, it is able to perform three attacks:

  • Beacon Spammer: it spams multiple WiFi beacons to make appear many fake access points on the nearby devices ๐Ÿ“ฃ

  • Captive Portal: it creates a "free hotspot" and redirects the users to a registration page, where they - hopefully - enter their usual email/password combination. Anyway, it never makes them sign in ๐Ÿ˜…

  • Evil Twin: it looks for nearby protected networks and lets you select the target one, then it sets up an open access point with the same ESSID of the victim and it uses a captive portal to redirect the users to a page which requires the WiFi password "in order to complete the firmware upgrade" ๐Ÿ˜‡

Logs ๐Ÿ“ƒ

The credentials retrieved by both attacks are saved to a dedicated file: data/captive_portal/log.csv and data/evil_twin/log.csv. They can be viewed directly from the device, and they are also printed at startup on the Micropython console.

Installation ๐Ÿ”จ

It takes just a few steps to set it up:

  • Connect an i2c OLED display and a push button (to a pin which provides a pull-up resistor)
  • Flash the Micropython firmware provided in the firmware/ folder
  • Edit the data/config/config.json file to match your hardware configuration and satisfy your preferences
  • Upload the project tree to your device (using ampy or any similar tool)

You may eventually want to use an external antenna to boost your signal, but it is not required. To make it portable, you can use li-po battery or more simply a power bank.

Headless setup ๐Ÿ˜ถ

You can also setup your board to work without the hardware interface: just edit the configuration file and disable the display or the button (or both) and specify the attack you want to perform at startup.

Note that if you want to perform the evil twin attack using the headless seup, you also need to specify the SSID of the target access point in the configuration file.

Configuration Mode ๐Ÿ”ง

You can also change some attacks options by entering the configuration mode, so you don't have to connect the board to your PC and edit the configuration file directly. Just start the config mode, connect to the new access point (you can customize its name and password) and enter your configuration preferences in the page that automatically appears.

About deauthentication ๐Ÿ’‰

Usually, when performing an evil twin attack, you may want to send deauthentication frames to the target and its users, in order to make them connect to your malicious access point. Unfortunately, Micropython doesn't provide a function which lets you send 802.11 raw packets, but even if it's possible to expose the wifi_send_pkt_freedom function to the network module (as I did to add the Beacon Spammer attack option), that function prevents the transmission of management frames such as deauthentication and disassociation after the version 1.3 of the Espressif SDK ๐Ÿคฆโ€โ™‚๏ธ

Maybe one day I will try to build Micropython using that old SDK, but until then, if you want to use another ESP8266 board to deauthenticate devices and complete the evil twin attack, look at this simple Arduino sketch I made. Alternatively, you can easily do this super dangerous action with any PC running Linux, so have fun!

Disclaimer โ—

Please, use this code responsibly and do not use it against others without their permission. Keep in mind that I will assume no responsibility for the improper use of these tools.

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.