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/generate_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/generate_beacon/README.md')
-rw-r--r-- | examples/generate_beacon/README.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/examples/generate_beacon/README.md b/examples/generate_beacon/README.md new file mode 100644 index 0000000..4b7103d --- /dev/null +++ b/examples/generate_beacon/README.md | |||
@@ -0,0 +1,19 @@ | |||
1 | # Generating 802.11 Beacons | ||
2 | This example shows the reader how to generate an 802.11 Beacon, with an SSID and Channel element. It also adds a tagged parameter with the string "libwifi-tag" inside. | ||
3 | |||
4 | # Building and Using | ||
5 | ``` | ||
6 | >> cd examples/generate_beacon/ | ||
7 | >> make | ||
8 | clang -Wall -Werror -O3 -o generate_beacon -c -o generate_beacon.o generate_beacon.c | ||
9 | clang -Wall -Werror -O3 -o generate_beacon generate_beacon.c -lpcap -lwifi | ||
10 | >> ./generate_beacon --file beacon.pcap | ||
11 | [+] Setup Complete | ||
12 | [*] Creating Beacon Frame | ||
13 | [*] Writing Beacon Frame to pcap | ||
14 | >> tshark -r beacon.pcap | ||
15 | 1 0.000000 ca:38:6d:6d:3f:bd → Broadcast 802.11 78 Beacon frame, SN=1383, FN=0, Flags=........, BI=100, SSID=libwifi-beacon | ||
16 | >> | ||
17 | ``` | ||
18 | # Output | ||
19 |  | ||