For my project ( Wireless Envoirment ) I am Capturing traffic using wireshark and saving it in PcapNg format. Later I want to retrieve this information to get network layer and above layer information. But PcapNg man page says { Features not yet in pcap-ng:-> Wireless spectrum information / physical layer meta-data } So as I dont want information about physical layer data. Though Can I get network layer wireless data from pcap-ng file... and second thing can I use payload information from this pcap-ng file for intrusion detection.. asked 12 Feb '14, 10:09 WIDS edited 12 Feb '14, 10:30 |
One Answer:
Pcap-ng and pcap are both formats that support all the packet types describe in the tcpdump.org list of link-layer header types. This includes the Capturing on an 802.11 interface when not in monitor mode will probably give you packets with fake Ethernet headers rather than the packets' actual 802.11 headers. In either case, if you want the network-layer information, you will have to check the Ethernet or 802.11 header to see what protocol is above the link layer, ignore packets where the protocol isn't what you're interested in, and then skip past the link-layer header (and radio meta-data/PPI header, if it's present) and process the network-layer header. Note that if you are capturing in monitor mode, the packets will be encrypted if you're on a "protected" (WEP or WPA/WPA2) network, and you will need to decrypt the payload in order to be able to process the network-layer header. answered 12 Feb '14, 16:37 Guy Harris ♦♦ edited 12 Feb '14, 16:40 |