Games with Wifi on ESP32

image


The idea to create a pocket-sized tool for analyzing WiFi networks was pushed by this article .


Thanks to them for the idea. I just had nothing to do.


All work was done as part of a hobby in order to enjoy and expand my knowledge of networking. Slowly, 1..4 hours a week, from the beginning of this year.
Applied use not planned. Those. it is NOT a tool for a hacker.


. , , . . , github. , .


" " ESP32


. . "".


Linux ( Raspberry Pi) + «» (STM32) + CC1110 ( 8051) (125kHz, NFC, 433mHz, USB, iButton, bluetooth, ?) . , (flipper-zero github "This organization has no public repositories.") .


, . , .


""

( , ).


:


  • . > 100 mA Wifi, , . "" power bank. power bank / .
  • "" Linux , . / .
  • ( SDK, ).

, , — ESP32.


, , , ESP32 . :


  • Bluetooth.
  • 433mHz hardware ( , ).

ESP32

  • SDK (IDF) ESP32 .
  • ( WiFi, ) .
  • 5gHz WiFi.

/ .



...


SD


Web , . ESP32 WiFi AP IP .


ESP32 , , , Web , , router . .
, .


Beacon


. « ». .
examples Espressif.


AP.
, .
AP.
Beacon spammer.
ESP32 AP SSID MAC [beacon frame] SSID ( AP)


sniffing e WiFi


Espressif callback WiFi « ». , .


callback . , PCAP SD , . , , callback , , SD .


« » ( ), «» (5..7 AP ) PCAP .


, PCAP MAC .


, /, , . WiFi AP. ( ..)


Wireshark .


deauth


, libnet80211.a, . , . , patch. [deauthentication frame], : « ». , esp8266 github esp8266 .


( ) AP . «»…


, …


RSSI « AP».


router


, , .


ESP32 STA + SoftAP. NAT router.


Espressif fork ( ) lwip.


H, , , esp-lwip netif ‘ap’(SoftAP) ‘st’ (STA) .


NAT, STA ‘ap’ IP 'st' 'ap'. NAT.


, fork esp-lwip martin-ger a NAT IP4.


( , fork , LWIPHOOK , ), martin-ger .


router IP4 .


, :


  • , SoftAP ESP32 (DHCP )
  • URL DNS (UDP port 53) SoftAP ESP32 .

PCAP .


, , , , .


SoftAP ESP32 : Ehernet (destMAC[6]+srcMAC[6]+type[2]) + payload (IP4, IP6, DCHP, type).


, ESP32 WiFi->WiFi , . , , router ESP32 .


, API Espressif MAC SoftAP EPS32. « » (esp_wifi_deauth_sta) STA, « ».


MAC STA esp_wifi_deauth_sta()



ESP32 , () .


, . "" . .


, , 1.5-2.


, , . .


All Articles