jeija / esp32free80211 Goto Github PK
View Code? Open in Web Editor NEWSend arbitrary IEEE 802.11 frames with Espressif's ESP32
Send arbitrary IEEE 802.11 frames with Espressif's ESP32
Can we do that?
Hi, the esp32free80211 is not work with the latest esp-idf. Is it possible to fix it?
I just want to send frame like "0xb4, 0x00, .....", but it return -2 error
Can I send this CTS frame using esp32? or they just don't let us do that? Is it forbidden?
thanks.
Hi
Im getting this log and error. Should it be caused by new wifi library?
Can you give me some times how to downgrade to your working one?
Regards
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
Falling back to built-in command interpreter.
OK
ets Jun 8 2016 00:22:57
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0x00
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0008,len:8
load:0x3fff0010,len:3740
ho 0 tail 12 room 4
load:0x40078000,len:12116
load:0x40080000,len:252
entry 0x40080034
check b=0x3ffae2ac size=7496 ok
check b=0x3ffafff4 size=0 ok
check b=0x3ffb733c size=167096 ok
check b=0x3ffdfff4 size=0 ok
check b=0x3ffe044c size=15272 ok
check b=0x3ffe3ff4 size=0 ok
check b=0x3ffe435c size=113816 ok
check b=0x3ffffff4 size=0 ok
check b=0x40092d30 size=53956 ok
D (739) nvs: nvs_flash_init_custom start=9 count=6�[0m
D (742) nvs: nvs_open misc 1�[0m
D (742) nvs: nvs_get_str_or_blob log�[0m
I (743) wifi: wifi firmware version: 6c86a1c
I (744) wifi: config NVS flash: enabled
I (748) wifi: config nano formating: disabled
D (752) nvs: nvs_open nvs.net80211 1�[0m
D (756) nvs: nvs_get opmode 1�[0m
D (759) nvs: nvs_get country 1�[0m
D (762) nvs: nvs_get_str_or_blob sta.ssid�[0m
D (766) nvs: nvs_get_str_or_blob sta.mac�[0m
D (770) nvs: nvs_get sta.authmode 1�[0m
D (773) nvs: nvs_get_str_or_blob sta.pswd�[0m
D (777) nvs: nvs_get_str_or_blob sta.pmk�[0m
D (781) nvs: nvs_get sta.chan 1�[0m
D (785) nvs: nvs_get auto.conn 1�[0m
D (788) nvs: nvs_get bssid.set 1�[0m
D (791) nvs: nvs_get_str_or_blob sta.bssid�[0m
D (795) nvs: nvs_get sta.phym 1�[0m
D (799) nvs: nvs_get sta.phybw 1�[0m
D (802) nvs: nvs_get_str_or_blob sta.apsw�[0m
D (806) nvs: nvs_get_str_or_blob sta.apinfo�[0m
D (811) nvs: nvs_get_str_or_blob ap.ssid�[0m
D (814) nvs: nvs_get_str_or_blob ap.mac�[0m
D (818) nvs: nvs_get_str_or_blob ap.passwd�[0m
D (822) nvs: nvs_get_str_or_blob ap.pmk�[0m
D (826) nvs: nvs_get ap.chan 1�[0m
D (829) nvs: nvs_get ap.authmode 1�[0m
D (833) nvs: nvs_get ap.hidden 1�[0m
D (836) nvs: nvs_get ap.max.conn 1�[0m
D (840) nvs: nvs_get bcn.interval 2�[0m
D (843) nvs: nvs_get ap.phym 1�[0m
D (846) nvs: nvs_get ap.phybw 1�[0m
D (849) nvs: nvs_get ap.sndchan 1�[0m
D (853) nvs: nvs_set_blob sta.mac 6�[0m
D (857) nvs: nvs_set_blob ap.mac 6�[0m
I (860) wifi: Init dynamic tx buffer num: 32
I (864) wifi: Init dynamic rx buffer num: 64
I (868) wifi: wifi driver task: 3ffbb45c, prio:23, stack:4096
I (873) wifi: Init static rx buffer num: 10
I (877) wifi: Init dynamic rx buffer num: 0
I (881) wifi: Init rx ampdu len mblock:7
I (885) wifi: Init lldesc rx ampdu entry mblock:4
I (889) wifi: wifi power manager task: 0x3ffc09c4 prio: 21 stack: 2560
I (1552) wifi: wifi timer task: 3ffc1aa4, prio:22, stack:3584
D (1553) nvs: nvs_open phy 0�[0m
D (1553) nvs: nvs_get cal_version 4�[0m
D (1553) nvs: nvs_get_str_or_blob cal_mac�[0m
D (1558) nvs: nvs_get_str_or_blob cal_data�[0m
D (1562) nvs: nvs_close 3�[0m
I (1578) wifi: mode : softAP (24:0a:c4:06:ce:81)
D (1580) tcpip_adapter: check: remote, if=1 fn=0x4010c4a4
�[0m
I (1580) wifi: sleep disable
26 8 01 Never gonna give you up
Guru Meditation Error of type LoadProhibited occurred on core 0. Exception was unhandled.
Register dump:
PC : 0x400e6645 PS : 0x00060c30 A0 : 0x800fad9e A1 : 0x3ffc3160
A2 : 0x3ffb5824 A3 : 0x3ffaedd4 A4 : 0x00000000 A5 : 0x00000060
A6 : 0x3ffc1c2c A7 : 0x3ffb5f50 A8 : 0x00000000 A9 : 0x00053000
A10 : 0x3ffaee14 A11 : 0x00000001 A12 : 0x00000053 A13 : 0x3ffaee6c
A14 : 0x00000000 A15 : 0x01040501 SAR : 0x0000001e EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000000 LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0x00000000
Backtrace: 0x400e6645:0x3ffc3160 0x400fad9e:0x3ffc3190 0x400dbcca:0x3ffc31b0
Entering gdb stub now.
$T0b#e6
can't send other type frame.I try send beacon,it's ok.
But i try other type, deauth frame's fun return value is -2.
wireshark can't find deauth packet and wifi doesn't reconnect.
my code:
uint8_t deauthPacket[26] = {
/* 0 - 1 */ 0xC0, 0x00, //type, subtype c0: deauth (a0: disassociate)
/* 2 - 3 */ 0x00, 0x00, //duration (SDK takes care of that)
/* 4 - 9 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,//reciever (target)
/* 10 - 15 */ 0xD1, 0xE1, 0x01, 0x21, 0x41, 0x11, //source (ap)
/* 16 - 21 */ 0xD1, 0xE1, 0x01, 0x21, 0x41, 0x11, //BSSID (ap)
/* 22 - 23 */ 0x00, 0x00, //fragment & squence number
/* 24 - 25 */ 0x01, 0x00 //reason code (1 = unspecified reason)
};
void spam_task(void *pvParameter) {
for (;;) {
vTaskDelay(50);
int result = free80211_send(deauthPacket, sizeof(deauthPacket));
printf("deauthPacket:%d\r\n", result);
}
}
Amazing projects, ive learned a ton.
Cant seem to work this out though.
D (2295) nvs: nvs_get_str_or_blob cal_mac
D (2300) nvs: nvs_get_str_or_blob cal_data
D (2305) nvs: nvs_close 3
V (2306) phy_init: register_chipv7_phy, init_data=0x3f40904c, cal_data=0x3ffc116 c, mode=0
I (2331) phy: phy_version: 350, Mar 22 2017, 15:02:06, 0, 0
I (2331) wifi: mode : softAP (24:0a:c4:03:f2:55)
D (2333) event: SYSTEM_EVENT_AP_START
V (2334) event: enter default callback
D (2338) tcpip_adapter: check: remote, if=1 fn=0x40105124
V (2343) event: exit default callback
I (2347) wifi: sleep disable
26 8 01 Never gonna give you up
Guru Meditation Error of type LoadProhibited occurred on core 0. Exception was unhandled.
Register dump:
PC : 0x400e69f9 PS : 0x00060c30 A0 : 0x800f3ef2 A1 : 0x3f fc26a0
A2 : 0x3ffb4ff8 A3 : 0x3ffaedd4 A4 : 0x00000000 A5 : 0x00 0000a0
A6 : 0x3ffc116c A7 : 0x3ffb571c A8 : 0x00000000 A9 : 0x00 053000
A10 : 0x3ffaee14 A11 : 0x00000001 A12 : 0x00000053 A13 : 0x3f faee6c
A14 : 0x00000000 A15 : 0x01040501 SAR : 0x0000001e EXCCAUSE: 0x00 00001c
EXCVADDR: 0x00000000 LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0x00 000000
Backtrace: 0x400e69f9:0x3ffc26a0 0x400f3ef2:0x3ffc26d0 0x400dc20e:0x3ffc26f0
Entering gdb stub now.
I tried to send other type of frames as the one in the example, but I'm unable to succeed.
The only type of frame I can send is beacon, other types such as probe doesn't seem to be sent.
I'm using Wireshark in monitor mode to sniff the frames.
i have look https://www.youtube.com/watch?v=yCLb2eItDyE
Do you think wifiphisher or fluxion work with it ? I need just have strong signal wifi but need so that it work with wifiphisher . If yes tell me what i need i have already tp-link tl-wn722n .
Does this work on an esp8266?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.