Passive Scan on ESP8266(AP Beacon)

ESP_Kewal
Posts: 2
Joined: Mon Jul 25, 2016 2:23 pm

Passive Scan on ESP8266(AP Beacon)

Postby ESP_Kewal » Sat Apr 22, 2017 6:42 pm

The attached example code decodes AP details by catching beacon from each access point. The ESP8266 works in sniffer mode. Please go through the readme and sniffer.c and sniffer.h file. Also ESP8266 cannot connect to any access point in sniffer mode. You need to disable sniffer mode on esp8266 before connecting to access point.
Attachments
passive scan.rar
(278.34 KiB) Downloaded 151 times
Regards,
Kewal Shah

User avatar
pratik
Posts: 386
Joined: Wed Jun 29, 2016 7:17 pm
Location: India
Contact:

Re: Passive Scan on ESP8266(AP Beacon)

Postby pratik » Wed Apr 26, 2017 1:26 pm

Thanks for posting, this is rather helpful!
Regards,
Pratik Panda
Website: http://www.PratikPanda.com

Custom firmware, Knowledge base and freelancing (ESP8266/ESP32):
http://www.iot-bits.com

hanehalthy
Posts: 1
Joined: Tue Jun 20, 2017 3:05 pm

Re: Passive Scan on ESP8266(AP Beacon)

Postby hanehalthy » Tue Jun 20, 2017 3:07 pm

你好,如何才能获取Sniffer到1470长度的整个数据包?

请问是否够在
wifi_set_opmode(STATION_MODE); // Promiscuous works only with station mode
wifi_set_channel(channel);
wifi_promiscuous_set_mac(dstMac);
wifi_promiscuous_enable(disable);
wifi_set_promiscuous_rx_cb(promisc_cb); // Set up promiscuous callback
wifi_promiscuous_enable(enable);

之后,在
void promisc_cb(uint8_t *buf, uint16_t len)
{}
里面获取整个Sniffer到 的数据包,我发送的包长度是1500,但每次在回调函数里面获取的包长是60,128,为什么?

Who is online

Users browsing this forum: No registered users and 3 guests