hcxtools - solution for capturing wlan traffic and conversion to hashcat formats - Printable Version +- hashcat Forum (https://hashcat.net/forum) +-- Forum: Misc (https://hashcat.net/forum/forum-15.html) +--- Forum: User Contributions (https://hashcat.net/forum/forum-25.html) +--- Thread: hcxtools - solution for capturing wlan traffic and conversion to hashcat formats (/thread-6661.html) |
RE: hcxtools - solution for capturing wlan traffic and conversion to hashcat formats - ZerBea - 10-24-2020 Please specify the "invalid channel message" (exact output of hcxdumptool). RE: hcxtools - solution for capturing wlan traffic and conversion to hashcat formats - ciccio17 - 10-24-2020 hcxdumptool -i wlan0 -c xx unknown channel selected RE: hcxtools - solution for capturing wlan traffic and conversion to hashcat formats - ZerBea - 10-24-2020 Have you modified the default channel list as mentioned here: https://hashcat.net/forum/thread-6661-post-50505.html#pid50505 You want channel 74 ( -c 74). First hcxdumptool check if desired channel is in channel list here: https://github.com/ZerBea/hcxdumptool/blob/master/hcxdumptool.c#L6430 The allowed channel are here: https://github.com/ZerBea/hcxdumptool/blob/master/hcxdumptool.c#L226 channel 74 is not in this list, so you receive an error. The default frequencies are here: https://github.com/ZerBea/hcxdumptool/blob/master/hcxdumptool.c#L6464 They depend on standard 802.11 as mentioned here: https://en.wikipedia.org/wiki/List_of_WLAN_channels If you have patched your firmware and/or your driver the values inside this functions must match to the values of your patched firmware/driver! RE: hcxtools - solution for capturing wlan traffic and conversion to hashcat formats - ZerBea - 10-24-2020 After some more investigation, I found this in ath9k/common-init.c: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/drivers/net/wireless/ath/ath9k/common-init.c?h=v5.8.16 Code: /* Some 2 GHz radios are actually tunable on 2312-2732 It's time to play around with an Atheros device: Code: $ lsusb hcxdumptool showing available channels as coded in ath9k/common-init.c: Code: static const struct ieee80211_channel ath9k_2ghz_chantable[] = { By latest commit, I added support for additional 2.4GHz channels 15...33 (ath9k driver modification mandatory) Code: -c <digit> : set channel (1,2,3, ...) Channellist according to The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali) channel patch: https://github.com/0x90/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-scripts/blob/master/patches/ath9k-htc-channels-unlock.patch Code: CHAN2G(2407, 14) RE: hcxtools - solution for capturing wlan traffic and conversion to hashcat formats - ciccio17 - 10-24-2020 hi zerbea, i can send you the patch i used for my spectrum RE: hcxtools - solution for capturing wlan traffic and conversion to hashcat formats - ZerBea - 10-24-2020 Thanks, but I don't need it. Please test latest git head. I need the exact output of hcxdumptool -i interface -C RE: hcxtools - solution for capturing wlan traffic and conversion to hashcat formats - ciccio17 - 10-24-2020 so i should switch radio? i need work with 2.4 ghz? RE: hcxtools - solution for capturing wlan traffic and conversion to hashcat formats - ZerBea - 10-24-2020 No, not necessary. I'll dive into the driver code and rewrite hcxdumptool channel behavior. First on 2.4GHz - maybe I need some additional information on 5GHz later on. Thanks RE: hcxtools - solution for capturing wlan traffic and conversion to hashcat formats - ciccio17 - 10-24-2020 ok talk later i need go now. anyway last git show hcxdumptool -i wlan0 -C initialization... interface is already in monitor mode available channels: 1 / 2412MHz (26 dBm) 2 / 2417MHz (26 dBm) 3 / 2422MHz (26 dBm) 4 / 2427MHz (26 dBm) 5 / 2432MHz (26 dBm) 6 / 2437MHz (26 dBm) 7 / 2442MHz (26 dBm) 8 / 2447MHz (26 dBm) 9 / 2452MHz (26 dBm) 10 / 2457MHz (26 dBm) 11 / 2462MHz (26 dBm) 12 / 2467MHz (26 dBm) 13 / 2472MHz (26 dBm) 14 / 2484MHz (26 dBm) RE: hcxtools - solution for capturing wlan traffic and conversion to hashcat formats - ZerBea - 10-24-2020 Ok, thanks. By latest commit, default channels are not longer hard coded. Instead hcxdumptool take the channel from -c option and see if the driver is able to set it. |