Skip to content

Commit 49aea33

Browse files
author
=
committed
added how_to_get_an_information_about_the_target and how_to_test_a_designed_filter
1 parent 83374ee commit 49aea33

1 file changed

Lines changed: 21 additions & 2 deletions

File tree

docs/example.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,21 @@ AP channel: **11**
2626

2727
The creation of a [BPF](https://wiki.wireshark.org/CaptureFilters) is **mandatory** as it make hcxdumptool either _ignore_ the specified address, or _attack_ the specified address.
2828

29-
The full command to create a BPF to _attack_ ccce1edc3bee would be as follows:
29+
First of all get as much as possbile information about the target (hcxdumptool in rcascan mode, tshark, Wireshark, tcpdump).
30+
31+
The command to get general information about the target (ESSID, CHANNEL, MAC_AP. IN/OFF RANGE) is:
32+
33+
```
34+
hcxdumptool -i INTERFACE_NAME --rcascan=active -F
35+
```
36+
37+
The command to get more information about the behavior of target (frame types, connected CLIENTs) is:
38+
39+
```
40+
tshark -i INTERFACE_NAME
41+
```
42+
43+
The full command to create a BPF to the target (attack ccce1edc3bee) would be as follows:
3044

3145
```
3246
hcxdumptool --bpfc="wlan addr1 ccce1edc3bee or wlan addr2 ccce1edc3bee or wlan addr3 ccce1edc3bee or type mgt subtype probereq" > attack.bpf
@@ -38,7 +52,12 @@ The full command to create a BPF to _protect_ ccce1edc3bee would be as follows:
3852
hcxdumptool --bpfc="not wlan addr3 ccce1edc3bee" > protect.bpf
3953
```
4054

41-
Since we are going to attack 00c0cab035be, we will use the **attack.bpf** filter.
55+
The command to test the filter is:
56+
```
57+
tshark -i INTERFACE_NAME -f "wlan addr1 ccce1edc3bee or wlan addr2 ccce1edc3bee or wlan addr3 ccce1edc3bee or type mgt subtype probereq"
58+
```
59+
60+
If everything is working as expected, we are going to attack 00c0cab035be ussing the **attack.bpf** filter.
4261

4362
### Step Two - Running hcxdumptool
4463

0 commit comments

Comments
 (0)