forked from ZerBea/hcxdumptool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
changelog
1841 lines (1475 loc) · 69.8 KB
/
changelog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
07.08.2022
==========
release v6.2.7
several bug fixes
still using OpenSSL 1.1
02.06.2022
==========
hcxdumptool: added warning if a not recommended driver has been detected
31.05.2022
==========
hcxpcapngtool: added new option according to https://github.com/ZerBea/hcxdumptool/issues/220
--passive : channel management is completely disabled - initial channel must be set by a third party tool
hcxdumptool is acting like a passive dumper (silent mode)
expect possible heavy packet loss
22.04.2022
==========
release v6.2.6
several bug fixes
license update
still supporting OpenSSL 1.1
01.12.2021
==========
release v6.2.5
still supporting OpenSSL 1.1
08.11.2021
==========
hcxdumptool: replaced channel scan engine by frequency scan engine
this is high experimental
tested devices:
USB:
Bus 005 Device 060: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter
Bus 005 Device 062: ID 148f:761a Ralink Technology, Corp. MT7610U ("Archer T2U" 2.4G+5G WLAN Adapter
Bus 005 Device 064: ID 148f:5572 Ralink Technology, Corp. RT5572 Wireless Adapter
Bus 005 Device 065: ID 0e8d:7612 MediaTek Inc. MT7612U 802.11a/b/g/n/ac Wireless Adapter
Bus 005 Device 066: ID 0cf3:9271 Qualcomm Atheros Communications AR9271 802.11n
Bus 005 Device 068: ID 0bda:8178 Realtek Semiconductor Corp. RTL8192CU 802.11n WLAN Adapter
Bus 005 Device 071: ID 7392:7710 Edimax Technology Co., Ltd Edimax Wi-Fi
Bus 005 Device 073: ID 148f:7601 Ralink Technology, Corp. MT7601U Wireless Adapter
Bus 005 Device 075: ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter
Bus 005 Device 078: ID 0b05:17d1 ASUSTek Computer, Inc. AC51 802.11a/b/g/n/ac Wireless Adapter [Mediatek MT7610U]
Bus 005 Device 082: ID 0bda:8187 Realtek Semiconductor Corp. RTL8187 Wireless Adapter
PCI:
04:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter
That is neccessary because, since WiFi 6, channel numbers are no longer unique:
https://en.wikipedia.org/wiki/List_of_WLAN_channels
24.10.2021
==========
hcxdumptool: added new option to ignore ioctl() warnings
--force_interface : ignore all ioctl() warnings
do not report issues, if attacks or channel switch is not working as expected
23.10.2021
==========
added generic hcxdumptool.1 man page
22.10.2021
==========
moved install dir from usr/local/bin to /usr/bin
14.09.2021
==========
release v6.2.4
This is the last version, supporting OpenSSL 1.1
Next version 6.3.0 will need OpenSSL 3.0.0
01.09.2021
==========
hcxdumptool: added new option to the next EAP request entry contained in the sequence passed to
--eapreq with a type matching the Desired Auth Type requested in a client's Legacy NAK response
--eapreq_follownak : jump to Auth Type requested by client in Legacy Nak response, if type available in remaining request sequence
29.08.2021
==========
hcxdumptool: GPIO flash intervall not longer hardcoded
--gpio_statusled_intervall=<digit> : Raspberry Pi GPIO LED flash intervall
default = flash every 5 seconds
15.08.2021
==========
hcxdumptool: allow MAC instead of filter list
--filterlist_ap=<file or MAC> : ACCESS POINT MAC or MAC filter list
format: 112233445566, 11:22:33:44:55:66, 11-22-33-44-55-66 # comment
maximum entries 256
run first --do_rcascan to retrieve information about the target
--filterlist_client=<file or MAC> : CLIENT MAC or MAC filter list
format: 112233445566, 11:22:33:44:55:66, 11-22-33-44-55-66 # comment
maximum entries 256
due to MAC randomization of the CLIENT, it does not always work!
17.05.2021
==========
release v 6.1.6
get ready for gcc 11.1.0
18.03.2021
==========
hcxdumptool: added VENDOR filter
--filterlist_ap_vendor=<file> : ACCESS POINT MAC filter list by VENDOR
format: 112233, 11:22:33, 11-22-33 # comment
maximum entries 256
run first --do_rcascan to retrieve information about the target
--filterlist_client_VENDOR=<file> : CLIENT MAC filter list
format: 112233, 11:22:33, 11-22-33 # comment
maximum entries 256
due to MAC randomization of the CLIENT, it does not always work!
09.03.2021
==========
release v 6.1.6
get ready for OpenSSL 3.0
05.03.2021
==========
hcxdumptool: removed preamble option, because it is ignored by most wlan adapters
04.03.2021
==========
hcxdumptool: added new option to use short preamble
--short_preamble : use short preamble
default: use long preamble
that may not work on older devices!
23.02.2021
==========
hcxdumptool: allow output to stdout
-o <dump file> : output file in pcapng format, filename '-' outputs to stdout
including radiotap header (LINKTYPE_IEEE802_11_RADIOTAP)
14.02.2021
==========
sll_pkttype = PACKET_OUTGOING is completey ingnored in promiscuous mode
At least I found a way to detect outgoing packets.
Luckily IEEE80211_RADIOTAP_TX_FLAGS is set on outgoing packets. If we check this, we are able to ignore them.
That save us CPU time.
13.02.2021
==========
hcxdumptool: added WATCHDOG - we need that to determine if USB device died
Raspberry Pi LED will flash twice if now packet received turing the last past 600 seconds
print AGE of last received packet in status
09.02.2021
==========
started to prepare to use openssl 3.0
Many structures have been made opaque in OpenSSL 3.0 since OpenSSL 1.0.2
https://wiki.openssl.org/index.php/OpenSSL_3.0
it is recommended to upgrade to at least to OpenSSL 1.1
06.02.2021
==========
hcxdumptool: fixed handling of BE (according to hcxpcapngtool fixes)
18.01.2021
==========
hcxdumptool: added auto channel/auto band.
therefore default channel list and predefined channel lists changed!
-c <digit> : set channel (1,2,3, ...)
default: auto channel/auto band
maximum entries: 255
standard 802.11 channels (depends on device, driver and world regulatory domain):
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14
36, 38, 40, 44, 48, 52, 56, 60, 64
100, 104, 108, 112, 116, 120, 124, 128
132, 136, 140, 144, 149, 153, 157, 161, 165
201, 205, 209, 213, 217, 221, 225, 229, 233
-s <digit> : set predefined scanlist
0 = auto channel/auto band (default)
1 = 1,6,11,3,5,1,6,11,2,4,1,6,11,7,9,1,6,11,8,10,1,6,11,12,13 (optimized 2.4GHz)
2 = 1,2,3,4,5,6,7,8,9,10,11,12,13 (standard 2.4 GHz)
3 = 36,40,44,48,52,56,60,64,100,104,108,112,116,120,124,128,132,136,140,149,153,157,161,165 (standard 5GHz)
4 = 1,2,3,4,5,6,7,8,9,10,11,12,13,36,40,44,48,52,56,60,64,100,104,108,112,116,120,124,128,132,136,140,149,153,157,161,165 (standard 2.4GHz/5GHz)
5 = 201,205,209,213,217,221,225,229,233 (standard 6GHz)
16.01.2021
==========
hcxdumptool: added new option - rcascan ranking is no longer hard coded
--rcascan_order=digit> : rcascan sorting order:
0 = sort by HIT (PROBERESPONSE) (default)
1 = sort by COUNT (BEACON)
2 = sort by CHANNEL
14.01.2021
==========
release v 6.1.5
03.01.2021
==========
hcxdummptool: added new option to limit status of rcascan to n lines
--rcascan_max=digit> : show only n highest ranking lines
default: 256 lines
21.12.2020
==========
removed TP-LINK TL-WN722N v1 (ath9k driver) from list of working devices due to driver issue
hcxdumptool: moved from select() to pselect()
20.12.2020
==========
hcxdumptool: added tot (transmission timeout timer)
hcxdumptool will no longer freeze if driver died
this is a workaround on ath9k driver issue:
https://github.com/ZerBea/hcxdumptool/issues/80#issuecomment-748622644
not caused by hcxdumptool:
https://bugs.archlinux.org/task/68578
19.12.2020
==========
hcxdumptool: added support for 6GHz channels 201,205,209,213,217,221,225,229,233 on option -c and option -s
-s <digit> : set predefined scanlist
0 = 1,6,11,3,5,1,6,11,2,4,1,6,11,7,9,1,6,11,8,10,1,6,11,12,13 (default)
1 = 1,2,3,4,5,6,7,8,9,10,11,12,13
2 = 36,40,44,48,52,56,60,64,100,104,108,112,116,120,124,128,132,136,140,149,153,157,161,165
3 = 1,2,3,4,5,6,7,8,9,10,11,12,13,36,40,44,48,52,56,60,64,100,104,108,112,116,120,124,128,132,136,140,149,153,157,161,165
4 = 201,205,209,213,217,221,225,229,233
10.12.2020
==========
Makefile: make use of pkg-config
02.12.2020
==========
release v 6.1.4
27.11.2020
==========
hcxdumptool: show openSSL version in status
24.10.2020
==========
hcxdumptool: Default channels are not longer hard coded.
Now hcxdumptool test if channel is available. That allow handling of channels
from a patched driver.
Some 2 GHz ath9k radios are actually tunable on 2312-2732 on 5 MHz steps
CHAN2G(2407, 14)
CHAN2G(2402, 15)
CHAN2G(2397, 16)
CHAN2G(2392, 17)
CHAN2G(2387, 18)
CHAN2G(2382, 19)
CHAN2G(2377, 20)
CHAN2G(2372, 21)
CHAN2G(2367, 22)
CHAN2G(2362, 23)
CHAN2G(2357, 24)
CHAN2G(2352, 25)
CHAN2G(2347, 26)
CHAN2G(2342, 27)
CHAN2G(2337, 28)
CHAN2G(2332, 29)
CHAN2G(2327, 30)
CHAN2G(2322, 31)
CHAN2G(2317, 32)
CHAN2G(2312, 33)
09.10.2020
==========
release v 6.1.3
fixed broken GPS handling
added better GPS error handling
03.10.2020
==========
hcxdumptool: added new option
--example : show some example command lines
30.09.2020
==========
hcxdumptool: added new options
--eapreq=<type><data>[:<term>],... : send max. 20 subsequent EAP requests after initial EAP ID request, hex string starting with EAP Type
response is terminated with:
:F = EAP Failure
:S = EAP Success
:I = EAP ERP Initiate
:F = EAP ERP Finish
:D = Deauthentication
:T = TLS shutdown
:- = no packet
default behavior is terminating all responses with a EAP Failure, after last one the client is deauthenticated
--eaptlstun : activate TLS tunnel negotiation and Phase 2 EAP requests when requesting PEAP using --eapreq
requires --eap_server_cert and --eap_server_key
--eap_server_cert=<server.pem> : EAP TLS tunnel Server cert PEM file
--eap_server_key=<server.key> : EAP TLS tunnel Server private key file
17.09.2020
==========
release v 6.1.2
15.09.2020
==========
hcxdumptool: added new option
--stop_client_m2_attacks=<digit> : stop attacks against CLIENTS after 10 M2 frames received
affected: ap-less (EAPOL 2/4 - M2) attack
require hcxpcangtool --all option
24.08.2020
==========
hcxdumptool: added new option
--eapreq=<type><data>[:<term>],... : send max. 20 subsequent EAP requests after initial EAP ID request, hex string starting with EAP Type
response is terminated with :F = EAP Failure, :S = EAP Success, :I = EAP ERP Initiate, :F = EAP ERP Finish,
:D = Deauthentication, :- = no packet
default behavior is terminating all responses with a Failure packet, after last one the client is deauthenticated
14.08.2020
==========
hcxdumptool: added new option --wpaent to announce WPA ENTERPRISE
06.08.2020
==========
release v 6.1.1
fixed handling of long opts
30.07.2020
==========
hcxdumptool: added new option --ip to allow to set IP for server / client mode
29.07.2020
==========
hcxdumptool: add new radiotap flag: IEEE80211_RADIOTAP_F_TX_NOSEQNO
https://patchwork.kernel.org/patch/11680527/
29.07.2020
==========
release v 6.1.0
19.07.2020
==========
hcxdumptool: new option
--beaconparams=<TLVs> : update or add Information Elements in all transmitted beacons
maximum 50 IEs as TLV hex string, tag id 0 (ESSID) will be ignored, tag id 3 (channel) overwritten
multiple IEs with same tag id are added, default IE is overwritten by the first
06.07.2020
==========
hcxdumptool: allow to set channel (-c) on --check_injection
fixed display channel if tags.channel is empty
added new option -s to set predefined scanlists
-s <digit> : set predefined scanlist
0 = 1,6,11,3,5,1,6,11,2,4,1,6,11,7,9,1,6,11,8,10,1,6,11,12,13 (default)
1 = 1,2,3,4,5,6,7,8,9,10,11,12,13
2 = 36,40,44,48,52,56,60,64,100,104,108,112,116,120,124,128,132,136,140,149,153,157,161,165
3 = 1,2,3,4,5,6,7,8,9,10,11,12,13,36,40,44,48,52,56,60,64,100,104,108,112,116,120,124,128,132,136,140,149,153,157,161,165
15.06.2020
==========
release v 6.0.7
10.06.2020
==========
hcxdumptool: changed behavior of --essidlist and --active_beacon
according to https://github.com/ZerBea/hcxdumptool/issues/115
--essidlist - transmit beacons from this list only
--active_beacon - transmit beacons from collected ESSIDs and from essidlist
21.05.2020
==========
release v 6.0.6
18.05.2020
==========
hcxdumptool: added new option --do_targetscan
--do_targetscan=<MAC_AP> : same as do_rcascan - hide all networks, except target
17.05.2020
==========
hcxdumptool: fixed issue that caused hcxdumptool to respond on probereuest even if --silent is selcted
allow MAC format 11:22:33:44:55:66 and 11-22-33-44-55-66 in filterlists
01.05.2020
==========
hcxdumptool: added option mask to save vendor defined action frames
-f <frames> : frames to save
bitmask:
0: clear default values
1: MANAGEMENT frames (default)
2: EAP and EAPOL frames (default)
4: IPV4 frames
8: IPV6 frames
16: WEP encrypted frames
32: WPA encrypted frames
64: vendor defined frames (AWDL)
05.04.2020
==========
release v 6.0.5
Security fix: We do not want to disturb uninvolved users!
Increase error count and terminate hcxdumptool if channel was changed by a third party tool.
After transmitting a request, hcxdumptool expect an answer on the same channel.
If the channel was changed by a third party tool, hcxdumptool will never get this answer and transmit again, again and again. This will jam all channels, set by the third party tool.
https://forum.hashkiller.io/index.php?threads/ap-less-attack-with-hcxtools.21036/page-4#post-237403
04.04.2020
==========
release v 6.0.4
27.03.2020
==========
hcxdumptool: ERROR_MAX not longer hard coded
--error_max=<digit> : terminate hcxdumptool if error maximum reached
default: 100 errors
26.03.2020
==========
Some drivers / firmwares provide only limited monitor functions instead of full packet injection capabilities.
hcxdumptool: added packet injection test
--check_injection : run packet injection test to determine that driver support full packet injection\n"
18.03.2020
==========
release v 6.0.3
removed debug message "OS not supported" from Makefile
14.03.2020
==========
release v 6.0.2
complete rewrite from scratch
the Raspberry Pi is a little bit too slow, so we have to reduce status output. Most CLIENTs running randomized MACs. They are no longer displayed.
improved IE tag walk similar to hcxpcapngtool
improved attack vector
added new options to improve attack vector against hardened targets
added more information to help menu
added option to import Berkeley packet Filter code fom tcpdump as alternative to apfilterlist and clientfilterlist
make less noise on the the channel (receive more, transmit less)
WLAN REASON CODE (deauthentication) no longer hardcoded
moved to git versioning on non releases
$ hcxdumptool -h
hcxdumptool 6.0.2 (C) 2020 ZeroBeat
usage : hcxdumptool <options>
press the switch to terminate hcxdumptool
hardware modification is necessary, read more:
https://github.com/ZerBea/hcxdumptool/tree/master/docs
example: hcxdumptool -o output.pcapng -i wlp39s0f3u4u5 -t 5 --enable_status=3
do not run hcxdumptool on logical (NETLINK) interfaces (monx, wlanxmon)
do not use hcxdumptool in combination with other 3rd party tools, which take access to the interface
short options:
-i <interface> : interface (monitor mode will be enabled by hcxdumptool)
can also be done manually:
ip link set <interface> down
iw dev <interface> set type monitor
ip link set <interface> up
WARNING: iw use NETLINK (libnl) and hcxdumptool will not work on pure NETLINK interfaces
-o <dump file> : output file in pcapng format
including radiotap header (LINKTYPE_IEEE802_11_RADIOTAP)
-f <frames> : frames to save
bitmask:
0: clear default values
1: MANAGEMENT frames (default)
2: EAP and EAPOL frames (default)
4: IPV4 frames
8: IPV6 frames
16: WEP encrypted frames
32: WPA encrypted frames
to clear default values use -f 0 first, followed by desired frame type (e.g. -f 0 -f 4)
-c <digit> : set scan list (1,2,3, ...)
default scan list: 1...13
maximum entries: 127
allowed channels (depends on the device):
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14
32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 68, 96
100, 102, 104, 106, 108, 110, 112, 114, 116, 118, 120, 122, 124, 126, 128
132, 134, 136, 138, 140, 142, 144, 149, 151, 153, 155, 157, 159
161, 165, 169, 173
-t <seconds> : stay time on channel before hopping to the next channel
default 4 seconds
-m <interface> : set monitor mode by ioctl() system call and quit
-I : show WLAN interfaces and quit
-C : show available channels and quit
if no channels are available, interface is probably in use or doesn't support monitor mode
long options:
--do_rcascan : show radio channel assignment (scan for target access points)
this can be used to test that ioctl() calls and packet injection is working
if you got no HIT, packet injection is possible not working
also it can be used to get information about the target
and to determine that the target is in range
use this mode to collect data for the filter list
run this mode at least for 2 minutes
to save all received raw packets use option -o
--reason_code=<digit> : deauthentication reason code
recommended codes:
1 WLAN_REASON_UNSPECIFIED
2 WLAN_REASON_PREV_AUTH_NOT_VALID
4 WLAN_REASON_DISASSOC_DUE_TO_INACTIVITY
5 WLAN_REASON_DISASSOC_AP_BUSY
6 WLAN_REASON_CLASS2_FRAME_FROM_NONAUTH_STA
7 WLAN_REASON_CLASS3_FRAME_FROM_NONASSOC_STA (default)
9 WLAN_REASON_STA_REQ_ASSOC_WITHOUT_AUTH
--disable_client_attacks : do not attack clients
affected: ap-less (EAPOL 2/4 - M2) attack
--disable_ap_attacks : do not attack access points
affected: connected clients and client-less (PMKID) attack
--stop_ap_attacks=<digit> : stop attacks against ACCESS POINTs if <n> BEACONs received
default: stop after 600 BEACONs
--resume_ap_attacks=<digit> : resume attacks against ACCESS POINTs after <n> BEACONs received
default: 864000 BEACONs
--disable_deauthentication : do not send deauthentication or disassociation frames
affected: conntected clients
--silent : do not transmit!
hcxdumptool is acting like a passive dumper
expect possible packet loss
--eapoltimeout=<digit> : set EAPOL TIMEOUT (microseconds)
default: 20000 usec
--bpfc=<file> : input Berkeley Packet Filter (BPF) code
steps to create a BPF (it only has to be done once):
set hcxdumptool monitormode
$ hcxumptool -m <interface>
create BPF to protect a MAC
$ tcpdump -i <interface> not wlan addr1 11:22:33:44:55:66 and not wlan addr2 11:22:33:44:55:66 -ddd > protect.bpf
recommended to protect own devices
or create BPF to attack a MAC
$ tcpdump -i <interface> wlan addr1 11:22:33:44:55:66 or wlan addr2 11:22:33:44:55:66 -ddd > attack.bpf
not recommended, because important pre-authentication frames will be lost due to MAC randomization of the CLIENTs
use the BPF code
$ hcxumptool -i <interface> --bpfc=attack.bpf ...
see man pcap-filter for a list of all filter options
--filterlist_ap=<file> : ACCESS POINT MAC filter list
format: 112233445566 + comment
maximum entries 256
run first --do_rcascan to retrieve information about the target
--filterlist_client=<file> : CLIENT MAC filter list
format: 112233445566 # comment
maximum entries 256
due to MAC randomization of the CLIENT, it does not always work!
--filtermode=<digit> : mode for filter list
mandatory in combination with --filterlist_ap and/or --filterlist_client
0: ignore filter list (default)
1: use filter list as protection list
do not interact with ACCESS POINTs and CLIENTs from this list
2: use filter list as target list
only interact with ACCESS POINTs and CLIENTs from this list
not recommended, because important pre-authentication frames will be lost due to MAC randomization of the CLIENTs
--weakcandidate=<password> : use this pre shared key (8...63 characters) for weak candidate alert
will be saved to pcapng to inform hcxpcaptool
default:
--mac_ap : use this MAC as ACCESS POINT MAC instead of a randomized one
format: 112233445566
--mac_client : use this MAC as CLIENT MAC instead of a randomized one
format: 112233445566
--essidlist=<file> : transmit beacons from this ESSID list
maximum entries: 256 ESSIDs
--active_beacon : transmit beacon once every 200000 usec
affected: ap-less
--flood_beacon : transmit beacon on every received beacon
affected: ap-less
--infinity : prevent that a CLIENT can establish a connection to an assigned ACCESS POINT
affected: ACCESS POINTs and CLIENTs
--use_gps_device=<device> : use GPS device
/dev/ttyACM0, /dev/ttyUSB0, ...
NMEA 0183 $GPGGA $GPGGA
--use_gpsd : use GPSD device
NMEA 0183 $GPGGA, $GPRMC
--nmea=<file> : save track to file
format: NMEA 0183 $GPGGA, $GPRMC, $GPWPL
to convert it to gpx, use GPSBabel:
gpsbabel -i nmea -f hcxdumptool.nmea -o gpx -F file.gpx
to display the track, open file.gpx with viking
--gpio_button=<digit> : Raspberry Pi GPIO pin number of button (2...27)
default = GPIO not in use
--gpio_statusled=<digit> : Raspberry Pi GPIO number of status LED (2...27)
default = GPIO not in use
--tot=<digit> : enable timeout timer in minutes (minimum = 2 minutes)
: hcxdumptool will terminate if tot reached (EXIT code = 2)
--reboot : once hcxdumptool terminated, reboot system
--poweroff : once hcxdumptool terminated, power off system
--enable_status=<digit> : enable real-time display (waterfall)
only incomming traffic
only once at the first occurrence due to MAC randomization of CLIENTs
bitmask:
0: no status (default)
1: EAP and EAPOL
2: ASSOCIATION and REASSOCIATION
4: AUTHENTICATION
8: BEACON and PROBERESPONSE
16: ROGUE AP
32: GPS (once a minute)
64: internal status (once a minute)
128: run as server
256: run as client
characters < 0x20 && > 0x7e are replaced by .
example: show everything but don't run as server or client (1+2+4+8+16 = 31)
show only EAP and EAPOL and ASSOCIATION and REASSOCIATION (1+2 = 3)
--server_port=<digit> : define port for server status output (1...65535)
: default IP: 224.0.0.255
: default port: 60123
--client_port=<digit> : define port for client status read (1...65535)
: default IP: 224.0.0.255
: default port: 60123
--check_driver : run several tests to determine that driver support all(!) required ioctl() system calls
--help : show this help
--version : show version
Run hcxdumptool -i interface --do_rcascan for at least 30 seconds, before you start an attack!
Do not edit, merge or convert this pcapng files, because it will remove optional comment fields!
It is much better to run gzip to compress the files. Wireshark, tshark and hcxpcapngtool will understand this.
If hcxdumptool captured your password from WiFi traffic, you should check all your devices immediately!
If you use GPS, make sure GPS device is inserted and has a GPS FIX, before you start hcxdumptool!
06.03.2020
==========
complete rewrite from scratch
the Raspberry Pi is a little bit too slow, so we have to reduce status output. Most CLIENTs running randomized MACs. They are no longer displayed.
improved IE tag walk similar to hcxpcapngtool
improved attack vector
added new options to improve attack vector against hardened targets
added more information to help menu
added option to import Berkeley packet Filter code fom tcpdump as alternative to apfilterlist and clientfilterlist
make less noise on the the channel (receive more, transmit less)
WLAN REASON CODE (deauthentication) no longer hardcoded
moved to git versioning on non releases
29.01.2020
==========
moved to v6.0.1
removed options to set userdefined MAC_AP and/or MAC_CLIENT, because they make hcxdumptool's stealth capability ineffective
improved handling of association/reassociation frames
improved handling of null/powersave frames
added counter for PMKID/EAPOL frames
handle EAP request/response frames
improved IE tag walk similar to hcxpcapngtool
fixed cipher suite and AKM suite handling
handle wrong FCS
reduce pcapng size
fixed internal counters
allow mixed attack vector PSK/PSK256
handle PMKID in reassociationrequest
11.12.2019
==========
moved to v6.0.0
hcxdumptool: complete rewrite from scratch
filterlist splitted (APs, CLIENTs), entries increased upt to 256 each list:
--filterlist_ap
--filterlist_client
improved real time display:
driver information and firmware information (if available)
detailed information about PMKID and MESSAGE PAIR)
allow more than one option (--enable_status)
0: no status (default)
1: EAPOL
2: PROBE REQUEST/PROBE RESPONSE
4: AUTHENTICATON
8: ASSOCIATION/REASSOCIATION
16: BEACON
32: GPS (once a minute)
64: internal status
128: send status to client
choose pcapng frames to save (-f) using option -o
improved rca_scan:
0: no real time display
1: show only access points in range (default)
2: show only access points not range
3: show all access points
improved GPS handling:
read GPS information directly from device
--use_gps_device=<device>
or us GPSD
--use_gpsd
use full standard NMEA raw sentence $GPGGA, $GPRMC, $GPGWL
this version need hcxpcaptool v6.0.0 to convert GPS information or gpsbabel
gpsbabel -i nmea -f nmea.txt -o gpx -F test.gpx
then open test.gpx with viking (layer -> waypoint -> BSSID)
ignore M4 if SNONCE is zeroed
ignore PMKID if zeroed
improved handling of radiatapheader on ath9k_htc driver
new option codes:
ENTERPRISE NUMBER 0x2a, 0xce, 0x46, 0xa1
MAGIC NUMBER 0x2a, 0xce, 0x46, 0xa1, 0x79, 0xa0, 0x72, 0x33,
0x83, 0x37, 0x27, 0xab, 0x59, 0x33, 0xb3, 0x62,
0x45, 0x37, 0x11, 0x47, 0xa7, 0xcf, 0x32, 0x7f,
0x8d, 0x69, 0x80, 0xc0, 0x89, 0x5e, 0x5e, 0x98
OPTIONCODE_MACMYORIG 0xf29a (6 byte)
OPTIONCODE_MACMYAP 0xf29b (6 byte)
OPTIONCODE_RC 0xf29c (8 byte)
OPTIONCODE_ANONCE 0xf29d (32 byte)
OPTIONCODE_MACMYSTA 0xf29e (6 byte)
OPTIONCODE_SNONCE 0xf29f (32 byte)
OPTIONCODE_WEAKCANDIDATE 0xf2a0 (32 byte)
OPTIONCODE_GPS 0xf2a1 (max 128 byte)
removed weak candidate check, because it leads to many, many unauthorized MP:M1M2
hcxpioff: new options --tot, --poweroff, --reboot
--tot=<digit> : enable timeout timer in minutes (minimum = 2 minutes)
: hcxpioff will terminate if tot reached
--reboot : once hcxpioff terminated, reboot system
20.09.2019
==========
hcxdumptool: added pcapng custom block
we store all custom information inside this block
list of used pcapng option codes:
#define OPTIONCODE_MACMYORIG 0xf29a
#define OPTIONCODE_MACMYAP 0xf29b
#define OPTIONCODE_RC 0xf29c
#define OPTIONCODE_ANONCE 0xf29d
#define OPTIONCODE_MACMYSTA 0xf29e
#define OPTIONCODE_SNONCE 0xf29f
#define OPTIONCODE_WEAKCANDIDATE 0xf2a0
18.09.2019
==========
hcxdumptool: added new option --weak_candidate
added weak candidate detection on PMKID and WPA1
weak candidate is no longer "hard coded"
---weak_candidate=<password> : use this password (8...63 characters) for weak candidate alert
default: 00000000
affected: client-less attack
list of used pcapng option codes:
#define OPTIONCODE_MACMYAP 62107
#define OPTIONCODE_RC 62108
#define OPTIONCODE_ANONCE 62109
#define OPTIONCODE_MACMYSTA 62110
#define OPTIONCODE_SNONCE 62111
#define OPTIONCODE_WEAKCANDIDATE 62112
17.09.2019
==========
hcxdumptool: added weak password check
high experimental, only on WPA2 QOS
new dependency: lib crypto (openssl)
07.09.2019
==========
hcxdumptool: added new options
--reactive_beacon : send internal/external beacon on every received proberequest
affected: ap-less
--flood_beacon=<digit> : transmit internal/external beacon after every <x> received management packet
affected: ap-less
05.09.2019
==========
hcxdumptool: added new options (feature request: https://github.com/ZerBea/hcxdumptool/issues/70)
--disable_internal_beacons : do not transmit beacons using received ESSIDs
default: transmit this kind of beacon once on channel change or every five seconds
affected: ap-less and reactive_beacon, flood_beacon
--use_external_beaconlist=<file> : transmit beacons from this list
maximum ESSID length 32, maximum entries 4095
default: transmit this kind of beacon once on channel change or every five seconds
affected: ap-less and reactive_beacon, flood_beacon
28.08.2019
==========
moved to v5.2.2
02.09.2019
==========
hcxdumptool : added bind() ll.sll_pkttype = PACKET_OTHERHOST | PACKET_OUTGOING
added setsockopt() r.mr_type = PACKET_MR_PROMISC
now dmesg will show when device entered promiscuous mode
during hcxdumptool initialization:
[ 6313.657830] device wlp3s0f0u11u1 entered promiscuous mode
and when it left promiscuous mode when hcxdumptool terminated:
[ 6313.735833] device wlp3s0f0u11u1 left promiscuous mode
01.09.2019
==========
hcxdumptool : print additional information about interfering services
first_steps.txt : added quickstart guide to docs
28.08.2019
==========
moved to v5.2.1
25.08.2019
==========
hcxdumptool: removed option --ignore_warning (no longer needed)
hcxdumptool forces to set monitor mode running ioctl(SIOCGIWMODE) IW_MODE_MONITOR
if that doesn't work on first try, try it again and/or
do monitor mode manually:
ip link set <interface> down
iw dev <interface> set type monitor
ip link set <interface> up
warning: on some drivers rtlXXXX netlink will not notice that we use forced ioctl() system calls
in that case iw dev wlp3s0f0u11u4 will show you that the "netlink part" is still managed
Interface wlp3s0f0u11u4
ifindex 11
wdev 0x800000001
addr 70:f1:1c:27:ae:ec
type managed
wiphy 8
txpower 13.00 dBm
19.08.2019
==========
moved to v5.2.0
18.08.2019
==========
hcxdumptool: print ESSID on status 1
15.08.2019
==========
hcxdumptool: added server - client status output (only local networkes)
--server_port=<digit> : define port for server status output (1...65535)
: default IP: 224.0.0.255
--client_port=<digit> : define port for client status read (1...65535)
: default IP: 224.0.0.255
example:
on client machine run hcxdumptool with option --client_port=12345
$ hcxdumptool -i <interface> -o test.pcapng --enable_status=1 --client_port=12345
on caputure machine run hcxdumptool with option --server_port=12345
$ hcxdumptool -i <interface> -o test.pcapng --enable_status=1 --server_port=12345
13.08.2019
==========
hcxdumptool: added new option --check_driver
--check_driver : run several tests to determine that driver support all(!) required system calls
If everything is fine, result should look like this:
$ sudo hcxdumptool -i wlp3s0f0u10u4 --check_driver
driver tests passed - all required ioctl() system calls are supported by driver
If not, hcxdumptool will show which test failed:
$ sudo hcxdumptool -i wlp3s0f0u10u5 --check_driver
ioctl(SIOCGIFFLAGS) failed: No such device
ioctl(SIOCGIWMODE) failed: No such device
ioctl(SIOCSIFFLAGS) failed: No such device
ioctl(SIOCSIWMODE) - IW_MODE_MONITOR failed: No such device
ioctl(SIOCGIWMODE) failed: No such device
ioctl(SIOCGIWMODE) - IW_MODE_MONITOR failed
ioctl(SIOCSIFFLAGS) -IFF_UP failed: No such device
ioctl(SIOCGIFFLAGS) failed: No such device
ioctl(SIOCGIFFLAGS) - IFF_UP | IFF_RUNNING | IFF_BROADCAST failed
ioctl(SIOCGIFINDEX) failed: No such device
ioctl(SIOCETHTOOL) - ETHTOOL_GPERMADDR failed: No such device
ioctl(SIOCSIWFREQ) - IW_FREQ_FIXED failed: No such device
it looks like this interface/driver isn't suitable for hcxdumptool
possible reasons:
wrong interface selected
interface is blocked by another tool
driver doesn't support required ioctl() system calls
12.08.2019
==========
hcxdumptool: a crappy filter list is not longer a reason to terminate initialization
11.08.2019
==========
hcxdumptool: added new options --tot and --reboot
--tot=<digit> : enable timeout timer in minutes (minimum = 2 minutes)
: hcxdumptool will terminate if tot reached (EXIT code = 2)
--reboot : once hcxdumptool terminated, reboot system
hcxdumptool return values:
0 = every thing is fine
1 = error occured
2 = tot reached
23.07.2019
==========
hcxdumptool: moved from usleep() to nanosleep()
hcxpioff: moved from usleep() to nanosleep()
17.07.2019
==========
added some additional information which ioctl() command isn't supported by driver
added warning on option --do_rcascan if packet injection fails (driver doesn't support
full packet injection) after 20 seconds
Remarks:
nl80211/cfg80211/mac80211 doesn't use use ioctl() calls, they use netlink.
hcxdumptool use ioctl() calls and will not work on netlink.
That is the case, if ioctl(SIOCGIWMODE) or ioctl(SIOCSIWMODE) calls failed!
Read more here:
https://www.quora.com/What-are-the-differences-between-netlink-sockets-and-ioctl-calls
30.06.2019
==========
increased maximum filter list entries from 64 up to 255
this will have a price tag, because hcxdumptool's respond time increases.
25.06.2019
==========
detect Raspberry Pi 4
23.06.2019
==========
moved to v 5.1.7
hcxdumptool: improved help
fixed pcpng option header
12.06.2019
==========
hcxdumptool: ignore more warnings if --ignore_warning is selcted
do not report issues if you run this option!!!
29.05.2019
==========
hcxdumptool moved to v 5.1.5
19.05.2019
==========
hcxdumptool: activated option --ignore warning
--ignore_warning : ignore warnings