• Stars
    star
    380
  • Rank 112,098 (Top 3 %)
  • Language
    C
  • Created almost 7 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Send arbitrary IEEE 802.11 frames with Espressif's ESP32

esp_wifi_80211_tx sample code

Rickrolling with WiFi Networks

Introduction

Sending arbitrary IEEE 802.11 frames can be useful in various ways, e.g. for mesh networking, unidirectional long-distance communication or low-overhead data transmission. It can, however, be abused for spamming large numbers of invalid SSIDs, jamming WiFi networks or sending deauthentication frames in order to sniff SSIDs of hidden wireless networks. Please be advised that such usage is morally doubtful at best and illegal at worst. Use this at your own risk.

Espressif have now created the esp_wifi_80211_tx API, making esp32free80211 obsolete. The new function is thoroughly documented in the API guide. Since at the time of writing not a lot of sample code using esp_wifi_80211_tx exists and many developers wanting to send arbitrary data with their ESP32s end up using esp32free80211 with an outdated esp-idf version, I want to hereby provide some more up-to-date sample code for esp_wifi_80211_tx.

Project Description

In order to demonstrate the freedom output functionality, this software broadcasts the infamous lines from Rick Astley's Never gonna give you up. This is achieved by manually assembling IEEE 802.11 beacon frames in main.c and broadcasting them via the currently unofficial esp_wifi_80211_tx API in Espressif's esp32-wifi-lib.

If you want to use raw packet sending functionality in your own project, just declare the esp_wifi_80211_tx function like this:

// buffer: Raw IEEE 802.11 packet to send
// len: Length of IEEE 802.11 packet
// en_sys_seq: see https://github.com/espressif/esp-idf/blob/master/docs/api-guides/wifi.rst#wi-fi-80211-packet-send for details
esp_err_t esp_wifi_80211_tx(wifi_interface_t ifx, const void *buffer, int len, bool en_sys_seq);

Compile / Flash

This project uses the Espressif IoT Development Framework. With the ESP-IDF installed, execute

make menuconfig

and configure the SDK to use your preferred settings (baudrate, python2 executable, serial flasher port, …) and proceed to compile and flash this project using

make flash

Project License: MIT

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

More Repositories

1

esp32free80211

Send arbitrary IEEE 802.11 frames with Espressif's ESP32
C
432
star
2

bluefluff

Reverse Engineering Furby Connect's Bluetooth Protocol and Update Format
JavaScript
409
star
3

esp8266-smartwatch

ESP8266 DIY WiFi Smartwatch with MPU-9250, RTC, OLED, FT232, ...
C
213
star
4

spheretest

Technical Demo - Minetest on a spherical world
C++
156
star
5

gtkterm

GTKTerm: A GTK+ Serial Port Terminal
C
79
star
6

esp32-softap-ota

Minimal esp-idf example of HTTP portal to perform OTA updates of ESP32 in SoftAP mode
C
37
star
7

esp8266-light-alarmclock

Alarm clock based on ESP8266 that dims the room light to wake you up
C
37
star
8

ESP8266-WS2811-LEDs

ESP8266 driver for WS2811 LED Strips
KiCad Layout
34
star
9

QRScanJS

QR-Code scanner library for JavaScript, based on ZBar
JavaScript
26
star
10

librenard

Reverse Engineered Sigfox Stack - Library
C
20
star
11

renard-phy

Open Sigfox Stack Reference Implementation - Physical Layer for SDR
Python
17
star
12

planether

A pseudorealistic 3d space simulation game written in C++
C++
17
star
13

espterm

GTK Serial Port Terminal for ESP8266 WiFi SoC Development
Vala
15
star
14

renard-spec

Open Sigfox Stack - Specifications
TeX
14
star
15

esp32-lyrat-passthrough

Example for ESP32-LyraT: Passthrough Digital Audio over I²S, Baseline for Realtime DSP Applications
C
11
star
16

esp8266-povslinger

Persistence of vision display using ESP8266 and APA102-2020
C
9
star
17

WS2811LEDMatrix

WS2811 LED Matrix Controller Board, Firmware and Client Applications
KiCad Layout
7
star
18

alexa-power-button

Use an Amazon Dash Button or an Alexa Voice Command instead of your computer's power button
JavaScript
6
star
19

mansonnode

Web Frontend for Manson HCS Power Supplies written in node.js
JavaScript
5
star
20

huhnix

Automatic chicken door system with AVR, DCF77 time signal receiver and ESP8266 WiFi module
C
4
star
21

minetest-modding-tutorial

CSS
4
star
22

keplerslaws

A demonstration for Johannes Kepler's laws of planetary motion by Tobias Kramer (1999)
C++
3
star
23

mesecons.net

The source for the website mesecons.net
HTML
3
star
24

createarchusb

Scripts for creating persistent bootable Archlinux installations on USB drives
Shell
3
star
25

renard-phy-s2lp

Open Sigfox Stack Reference Implementation - Cross-Platform PHY Layer for STMicroelectronics S2-LP
C
3
star
26

renard-phy-s2lp-demo-esp32

Open Sigfox Stack Reference Implementation for S2-LP - Demo Application for Espressif's ESP32
C
3
star
27

renard-phy-s2lp-hal-esp32

Open Sigfox Stack Reference Implementation for S2-LP - Hardware Abstraction Layer for Espressif's ESP32
C
3
star
28

renard

Open Sigfox Stack Reference Implementation - Command Line Interface
C
3
star
29

schulealsstaat

Server, client and network components of currency and presence management platform for "Schule als EU" (school as EU) 2015, HöGy Nürtingen, using Archlinux, node.js, nodewebkit, ...
JavaScript
3
star
30

mesecons-extension-temperest

Temperest extension for the mesecons mod
Lua
2
star
31

jymcu-3208-lernkit

Lernkit mit minimaler Firmware für die LED Matrix JY-MCU 3208 mit dem HT1632c
C++
2
star
32

renard-phy-s2lp-demo-ht32sx

Open Sigfox Stack Reference Implementation for S2-LP - Demo Application for HT Micron HT32SX
C
2
star
33

mesecons-extension-22microcontroller

2x2 (8 output) microcontroller exensions for the mesecons mod in minetest
1
star
34

ldjam45-bonsai-life

Ludum Dare 45 Game Jam Entry: Bonsai Life
JavaScript
1
star
35

minetest-mod-throwing

Throwing (Bow and Arrow) mod for minetest-c55
1
star
36

jymcu_sdcard

AVR ATMega644 shell that allows interfacing SD Cards in the JY-MCU SD Card module
C
1
star
37

pollinspiel-lernkit

Lernkit für das Pollin Spiel I von pollin.de für Programmieranfänger
C
1
star