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 There is no option to set the frequency, but there are several options to work on channels and scan lists: Channel options to set one or more channels: Code: -c <digit> : set channel (1,2,3, ...) Scan list options to set a scan list: Code: -s <digit> : set predefined scanlist There is also an option (-C) to retrieve by the interface supported channels (inclusive frequency and tx power): First we retrieve the names of available interfaces: Code: $ hcxdumptool -I The ones are detected by hcxdumptool: Code: $ lsusb Now we can retrieve the channel list, supported by each interface: Code: $ sudo hcxdumptool -i wlp39s0f3u1u1u2 -C Now you can run hcxdumptool using your own channel list e.g.: -c 1,6,11 It is mandatory to set the "Regulatory domain": "The regdomain setting is often made difficult or impossible to change so that the end users do not conflict with local regulatory agencies." Please read more here: https://wiki.archlinux.org/index.php/Network_configuration/Wireless#Respecting_the_regulatory_domain RE: hcxtools - solution for capturing wlan traffic and conversion to hashcat formats - ciccio17 - 10-24-2020 hi , zerbea, thanks, i think i cannot post my phy info here, but anyway i cannot go over channel 173 on 5 ghz and i cannot go under channel 1 on 2.4 ghz. let's make an esemple on 2.4 ghz first. iw phy0 info * 2397 MHz [-2] (26.0 dBm) * 2402 MHz [-1] (26.0 dBm) * 2412 MHz [1] (26.0 dBm) * 2417 MHz [2] (26.0 dBm) * 2422 MHz [3] (26.0 dBm) * 2427 MHz [4] (26.0 dBm) * 2432 MHz [5] (26.0 dBm) * 2437 MHz [6] (26.0 dBm) * 2442 MHz [7] (26.0 dBm) * 2447 MHz [8] (26.0 dBm) * 2452 MHz [9] (26.0 dBm) * 2457 MHz [10] (26.0 dBm) * 2462 MHz [11] (26.0 dBm) * 2467 MHz [12] (26.0 dBm) * 2472 MHz [13] (26.0 dBm) * 2484 MHz [14] (26.0 dBm) RE: hcxtools - solution for capturing wlan traffic and conversion to hashcat formats - ZerBea - 10-24-2020 You have to take care about: the channels, modes and tx power supported by the interface and the channels, modes and tx power allowed by Regulatory domain Do you use a Software Defined Radio (SDR)? None of the common sold interfaces support this channels you posted because they are out of range of the oscillator. RE: hcxtools - solution for capturing wlan traffic and conversion to hashcat formats - ciccio17 - 10-24-2020 i just patched the ath9k driver and other other info, and airodump is working RE: hcxtools - solution for capturing wlan traffic and conversion to hashcat formats - ZerBea - 10-24-2020 You can modify hcxdumptool to work on your patched driver, too: here (we need int instead of uint8_t): https://github.com/ZerBea/hcxdumptool/blob/master/hcxdumptool.c#L132 https://github.com/ZerBea/hcxdumptool/blob/master/hcxdumptool.c#L6432 and here to allow an expanded range: https://github.com/ZerBea/hcxdumptool/blob/master/hcxdumptool.c#L226 and here to retrieve the expanded range: https://github.com/ZerBea/hcxdumptool/blob/master/hcxdumptool.c#L6464 Please notice: The signal become extreme crappy on the edge of the frequency range (you can verify this using a spectrum analyzer e.g.: R&SĀ®FSC3). RE: hcxtools - solution for capturing wlan traffic and conversion to hashcat formats - ZerBea - 10-24-2020 I pushed an update. This patch is not longer needed: here (we need int instead of uint8_t): https://github.com/ZerBea/hcxdumptool/bl...ool.c#L132 https://github.com/ZerBea/hcxdumptool/bl...ol.c#L6432 starting with this commit we use int instead of unit8_t: https://github.com/ZerBea/hcxdumptool/commit/c3f021bf915908da22c16b5289ec32ee0d43ea44 That allow us to use more than 255 channels and negative channels. BTW: You mentioned airodump-ng so please read this issue report: https://github.com/aircrack-ng/aircrack-ng/issues/2184 especially that one: https://github.com/aircrack-ng/aircrack-ng/issues/2184#issuecomment-699992260 Please re-compile aircrack-ng suite without libnl support. Than check if an out of range channel is really set. hcxdumptool doesn't use NETLINK (libnl) in favor of ioctl() system calls and it will notice you if the channel can't be set. And I have several more "good" reasons not to use NETLINK: https://www.quora.com/What-are-the-differences-between-netlink-sockets-and-ioctl-calls?share=1 Also you should notice that iw is also using libnl (NETLINK). RE: hcxtools - solution for capturing wlan traffic and conversion to hashcat formats - ciccio17 - 10-24-2020 hi zerbea, thanks for that alot, i 'll try soon as possible, i need to patch tree device to try really this commits, one ap one sta, and the other one for hcxdumptool, also do you need my strange range on 5 ghz? RE: hcxtools - solution for capturing wlan traffic and conversion to hashcat formats - ZerBea - 10-24-2020 It would be great, if you can comment the output of hcxdumptool -C (after you modified hcxdumptool), the Regulatory Domain setting (to allow the kernel to use the expanded channels) as well as some information about the interface (VENDOR). My HackRF one ends at 6GHz, but unfortunately the bandwidth is limited to 20MHz. My measurement equipment ends at 3GHz. All above this frequency makes it very expensive for a (retired) hobbyist. BTW: Your scan list (5Mhz step) looks like a spectral scan list: https://wireless.wiki.kernel.org/en/users/drivers/ath9k/spectral_scan Reporting FFT data is a nice feature of AR92xx and AR93xx. RE: hcxtools - solution for capturing wlan traffic and conversion to hashcat formats - ciccio17 - 10-24-2020 hi zerbea, compiled last commits, not working, some info? but on regular channels is working i receive an invalid channel message RE: hcxtools - solution for capturing wlan traffic and conversion to hashcat formats - ZerBea - 10-24-2020 Last commits only allow to add more than 255 channels and to use own channel numbers. If you want to expand frequency range you have to modify this functions, depending on your step size (e.g. 5 MHz steps), too: https://github.com/ZerBea/hcxdumptool/bl...ool.c#L226 https://github.com/ZerBea/hcxdumptool/bl...ol.c#L6464 I haven't added this, because it will only work on a modified firmware and a modified driver. Here we test that the interface set the desired channel: https://github.com/ZerBea/hcxdumptool/blob/master/hcxdumptool.c#L5105 We set the channel: if(ioctl(fd_socket, SIOCSIWFREQ, &pwrq) < 0) return false; and read the channel: if(ioctl(fd_socket, SIOCGIWFREQ, &pwrq) == 0) aktchannel = pwrq.u.freq.m; Depending on the answer of the driver we use the new channel or we increment error count. |