802.11

Identify that Android device supports EAP-SIM for WiFi authentication programatically

谁说我不能喝 提交于 2020-01-15 14:25:09
问题 Currently there are two types of Android devices available in the market. Some devices support EAP-SIM authentication, while other does not. How can I identify programmatically whether my device support EAP-SIM authentication or not? 回答1: To implement EAP-SIM feature, it requires patched wpa_supplicant and API to access APDU channel. Since the AOSP did not have EAP-SIM support, there are different implementations on the market. It's hard to identify from wpa_supplicant , but we can check the

Why do 802.11 Acknowledgement Frames have no source MAC?

混江龙づ霸主 提交于 2020-01-01 05:18:13
问题 Anyone know why 802.11 Acknowledgement Frames have no source MAC address? I don't see it when I capture the packets from TCPDUMP or Wireshark from Linux with a monitor-mode and promiscuous-mode driver. How does the Access Point distinguish ACK frames from different 802.11 clients if there is no source MAC addresses in the frame? I can see from all the captures that the ACK comes immediately after the frame is sent (around 10 to 30 microseconds) but that alone can't be enough to distinguish

Associating my Windows computer to a wifi AP with Python

不羁的心 提交于 2019-12-29 06:57:19
问题 I'm trying to write a python script that can make my computer associate to a wireless access point, given the name as a string. For example, I might specify I want to connect to linksys , and my script would cause the computer to do that. I looked at this question, but wasn't able to understand what to do from looking at the links provided. Can somebody point me in the right direction? 回答1: I decided to take Paulo's suggestion and try using Powershell/the command line. I found an article

WI-FI 802.11 speed depending on distance

大憨熊 提交于 2019-12-25 16:46:19
问题 can someone help me with a document containing the theoretical exact speed of different standards of 802.11 WI-FI depending on the distance (1 to 10 meters) ? like if there is an mathematical equation that gives how the speed decrease with distance ,or software tool, or a table that gives how speed decreases every 1 meter for example , i need something very exact. THank you :) 回答1: Pure distance effect while dismissing accompanying factors is negligeble due to the following facts: Assuming

Why are some Beacon Frames dropped

喜欢而已 提交于 2019-12-25 03:55:09
问题 Why am I not capturing all Beacon Frames? Are they being dropped by AP? I'm using libpcap in Linux for capturing Beacon Frames and parsing the timestamp. I use the timestamps to compute the interval between captured Beacon Frames. Most of the time the interval is what it should be, namely 102.4ms. However, every 5-6 packets show an interval of a multiple of 102.4ms, this can be 204, 306 and up to 800ms. I don't know if this is due to AP not sending those Beacon Frames or my pcap not capturing

Why are some Beacon Frames dropped

[亡魂溺海] 提交于 2019-12-25 03:55:02
问题 Why am I not capturing all Beacon Frames? Are they being dropped by AP? I'm using libpcap in Linux for capturing Beacon Frames and parsing the timestamp. I use the timestamps to compute the interval between captured Beacon Frames. Most of the time the interval is what it should be, namely 102.4ms. However, every 5-6 packets show an interval of a multiple of 102.4ms, this can be 204, 306 and up to 800ms. I don't know if this is due to AP not sending those Beacon Frames or my pcap not capturing

Interpreting Frame Control bytes in 802.11 Wireshark trace

谁都会走 提交于 2019-12-20 12:21:52
问题 I have a Wi-Fi capture ( .pcap ) that I'm analysing and have run across what appear to me to be inconsistencies between the 802.11 spec and Wireshark's interpretation of the data. Specifically what I'm trying to pull apart is the 2-byte 802.11 Frame Control field. Taken from http://www4.ncsu.edu/~aliu3/802.bmp, the format of the Frame Control field's subfields are as follows: And below is a Wireshark screen cap of the packet that has me confused: So as per the Wireshark screenshot, the flags

Is there a way to extract the WiFi protocol type from a PcapNG trace file?

℡╲_俬逩灬. 提交于 2019-12-11 10:29:43
问题 I'm building a PcapNG parser (in Python) to analyse WiFi packets. I'd like to be able to display the link type (e.g., the protocol variant: 802.11b, 802.11a, 802.11g or 802.11n). However, reading the PcapNG format definition I see only the following being mentioned: LINKTYPE_IEEE802_11 105 IEEE 802.11 (wireless) LINKTYPE_IEEE802_11_RADIO 127 802.11 plus BSD radio header Is there a way to extract the WiFi protocol type from a PcapNG trace file? 回答1: If the link-layer header type for the

Cannot understand 802.11 Data Frame format in PcapNG file

余生长醉 提交于 2019-12-10 11:18:09
问题 I have PcapNG files created by Wireshark, which I try to parse with python-pcapng . However, I cannot figure out how to reconcile the output I receive from FileScanner 's packet_payload_info with the 802.11 Data frame format : This is the output I get (my code is at the bottom): magic_number 0xa0d0d0a SectionHeader(version_major=1, version_minor=0, section_length=-1, options=Options({'shb_userappl': [u'Dumpcap 1.12.4 (v1.12.4-0-gb4861da from master-1.12)'], 'shb_os': [u'Mac OS X 10.10.2,

How to perform scanning of wifi ap available nearby using pcap in c [closed]

非 Y 不嫁゛ 提交于 2019-12-10 00:34:49
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . Basically I want a simple C code which illustrates capturing packet in promiscuous mode and extracts out ssid from them. Edit1 I am writing the code which I wrote to perform basic sniffing. #include <stdio.h> #include <pcap.h> int main(int argc, char *argv[]){ pcap_t *handle; struct pcap_pkthdr header; const u