about summary refs log tree commit diff stats
path: root/examples/parse_beacon/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'examples/parse_beacon/README.md')
-rw-r--r--examples/parse_beacon/README.md65
1 files changed, 65 insertions, 0 deletions
diff --git a/examples/parse_beacon/README.md b/examples/parse_beacon/README.md new file mode 100644 index 0000000..a9b085b --- /dev/null +++ b/examples/parse_beacon/README.md
@@ -0,0 +1,65 @@
1# Parsing 802.11 Beacon Frames
2This example shows the reader how to parse 802.11 Beacons from a pcap, outputting the SSID, BSSID, Channel, Security Information, and more to the terminal.
3
4# Building and Using
5```
6>> cd examples/parse_beacon/
7>> make
8clang -Wall -Werror -O3 -o parse_beacon -c -o parse_beacon.o parse_beacon.c
9clang -Wall -Werror -O3 -o parse_beacon parse_beacon.c -lpcap -lwifi
10>> ./parse_beacon --file ~/beacon.pcap [1/789]
11[+] Setup Complete
12ESSID: libwifi-wpa2/3
13BSSID: 7e:fc:5e:51:93:31
14Receiver: ff:ff:ff:ff:ff:ff
15Transmitter: 7e:fc:5e:51:93:31
16Channel: 11
17WPS: No
18Encryption: WPA3, WPA2
19 Group Ciphers: CCMP128
20 Pairwise Ciphers: CCMP128
21 Auth Key Suites: PSK, SAE
22 MFP Capable: Yes
23Tagged Parameters:
24 Tag: 0 (Size: 14)
25 14 bytes of Tag Data: 6c 69 62 77 69 66 69 2d 77 70 61 32 2f 33
26 Tag: 1 (Size: 8)
27 8 bytes of Tag Data: 82 84 8b 96 24 30 48 6c
28 Tag: 3 (Size: 1)
29 1 bytes of Tag Data: 0b
30 Tag: 5 (Size: 4)
31 4 bytes of Tag Data: 00 02 00 00
32 Tag: 7 (Size: 6)
33 6 bytes of Tag Data: 47 42 20 01 0d 80
34 Tag: 32 (Size: 1)
35 1 bytes of Tag Data: 00
36 Tag: 35 (Size: 2)
37 2 bytes of Tag Data: 10 00
38 Tag: 42 (Size: 1)
39 1 bytes of Tag Data: 00
40 Tag: 50 (Size: 4)
41 4 bytes of Tag Data: 0c 12 18 60
42 Tag: 48 (Size: 24)
43 16 bytes of Tag Data: 01 00 00 0f ac 04 01 00 00 0f ac 04 02 00 00 0f
44 Tag: 45 (Size: 26)
45 16 bytes of Tag Data: 2d 00 1b ff ff 00 00 00 00 00 00 00 00 00 00 00
46 Tag: 61 (Size: 22)
47 16 bytes of Tag Data: 0b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
48 Tag: 127 (Size: 8)
49 8 bytes of Tag Data: 04 00 08 00 00 00 00 40
50 Tag: 255 (Size: 28)
51 16 bytes of Tag Data: 23 01 08 00 1a 00 80 20 20 02 00 0d 00 9e 00 0c
52 Tag: 255 (Size: 7)
53 7 bytes of Tag Data: 24 04 00 00 00 fc ff
54 Tag: 255 (Size: 14)
55 14 bytes of Tag Data: 26 00 03 a4 ff 27 a4 ff 42 43 ff 62 32 ff
56 Tag: 255 (Size: 4)
57 4 bytes of Tag Data: 27 00 00 00
58 Tag: 221 (Size: 30)
59 16 bytes of Tag Data: 00 90 4c 04 08 bf 0c 32 70 81 0f fa ff 00 00 fa
60 Tag: 221 (Size: 10)
61 10 bytes of Tag Data: 00 10 18 02 00 00 1c 00 00 00
62 Tag: 221 (Size: 24)
63 16 bytes of Tag Data: 00 50 f2 02 01 01 00 00 03 a4 00 00 27 a4 00 00
64>>
65```