WLAN-Pi / wlanpi-profiler

Wi-Fi client capabilities analyzer tool built for the WLAN Pi
BSD 3-Clause "New" or "Revised" License
23 stars 8 forks source link

Is this working on Kali Linux? #106

Closed drschnalli closed 1 year ago

drschnalli commented 2 years ago

Hey there... i just installed profiler via pipx. It worked fine.. Its also starting and showing me that its using wlan0mon (i got a wifi ax200...) but i cannot find this network... is it even possible to run it on amd64 kali linux? What might i do wrong?

joshschmelzle commented 2 years ago

@drschnalli i think it should work, but i have not tested on Kali. i've previously tested on Debian/Ubuntu x86_64 and it worked. you may have to run it with the no bpf filters option.

can you try running sudo tcpdump -i wlan0mon while profiler is running to check for beacons/probes/traffic?

another thing to try is running profiler with the --debug option like sudo profiler --debug which should print more infos to the terminal.

drschnalli commented 2 years ago

I will have a look with tcpdump.

by the way is it a problem that it shows: no ir found in iw channel?

joshschmelzle commented 2 years ago

If you're using an AX200 or AX210, profiler will check for No IR and then do a scan to attempt to find a CC in a nearby .11d IE from beacon to enable the channel.

AX2xx uses iwlwifi driver which leverages an embedded regdom database. Meaning iwlwifi does not determine regdom from iw reg set XX or cfg80211. So, the driver may only enable the channel for IR based on certain CCs... like US for example.

A few of our folks located outside the US has seen this problem. So, if you're physically located outside of the US and/or don't have a neighboring US AP (with .11d IE in beacon) nearby, profiler may not work on 5 GHz (default channel is 36).

Hence, if the channel says No IR after profiler starts, profiler will not be able to TX on that channel. So, you may try setting the channel to a 2.4 GHz channel if that is the case: sudo profiler -c 1.

joshschmelzle commented 2 years ago

Another option if Wi-Fi scan with AX200 does not enable TX in your location. You can also try any mt76x2u USB NIC which will use CC set with iw reg set XX for 5 GHz.

drschnalli commented 2 years ago

Okay when i run the tcpdump command on that interface the window shows many many many traffic... so something seems to happen. I can confirm its working with another adapter ALFA Network AWUS036NHA. A very old usb dongle :D... for the AX200 i will have a look for your other suggestions!

joshschmelzle commented 2 years ago

We don't need anything special for the profiler "AP" because we're just forging a fake beacon anyways. So, the AWUS036NHA is sufficient because profiler will append .11ac / .11he IEs (by default) regardless.

drschnalli commented 2 years ago

Okay it works when i set the Channel to 1!!! Thats so cool.. thank you! Is there a way to Simulate being in US ? or Changing something?

drschnalli commented 2 years ago

Or do i not need to be in 5ghz to get information about 802.11r of the connected client? or other informations like ax, ac and so on ? is 2,4 fully sufficient?

joshschmelzle commented 2 years ago

Client won't reveal 5 GHz infos when connecting to 2.4 GHz.

We don't know of any software tricks for setting regdom for iwlwifi/Intel AX2xx other than placing a US AP nearby. @jiribrejcha literally used a huge cooking pot in one of his tests to validate that.

image
jiribrejcha commented 2 years ago

😄

drschnalli commented 2 years ago

Thats an awesome idea :D what were the results? :D