diff options
author | Marc <foxtrot@malloc.me> | 2021-11-30 22:39:26 +0000 |
---|---|---|
committer | Marc <foxtrot@malloc.me> | 2021-12-01 16:54:44 +0000 |
commit | ae6c98a48da409d040604aeffb84a38155fb5bac (patch) | |
tree | c27a8e28972209581ce3fba2130bf0c2b4f9c9c0 /examples/parse_beacon/README.md | |
download | libwifi-ae6c98a48da409d040604aeffb84a38155fb5bac.tar.gz libwifi-ae6c98a48da409d040604aeffb84a38155fb5bac.tar.bz2 libwifi-ae6c98a48da409d040604aeffb84a38155fb5bac.zip |
Initial Commit
Signed-off-by: Marc <foxtrot@malloc.me>
Diffstat (limited to 'examples/parse_beacon/README.md')
-rw-r--r-- | examples/parse_beacon/README.md | 65 |
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 | ||
2 | This 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 | ||
8 | clang -Wall -Werror -O3 -o parse_beacon -c -o parse_beacon.o parse_beacon.c | ||
9 | clang -Wall -Werror -O3 -o parse_beacon parse_beacon.c -lpcap -lwifi | ||
10 | >> ./parse_beacon --file ~/beacon.pcap [1/789] | ||
11 | [+] Setup Complete | ||
12 | ESSID: libwifi-wpa2/3 | ||
13 | BSSID: 7e:fc:5e:51:93:31 | ||
14 | Receiver: ff:ff:ff:ff:ff:ff | ||
15 | Transmitter: 7e:fc:5e:51:93:31 | ||
16 | Channel: 11 | ||
17 | WPS: No | ||
18 | Encryption: WPA3, WPA2 | ||
19 | Group Ciphers: CCMP128 | ||
20 | Pairwise Ciphers: CCMP128 | ||
21 | Auth Key Suites: PSK, SAE | ||
22 | MFP Capable: Yes | ||
23 | Tagged 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 | ``` | ||