summaryrefslogtreecommitdiff
path: root/net-wireless/aircrack-ng/files/airodump-ng.ignore-negative-one.v4.patch
blob: fd1df04189b5cc27dcf18248e6a2cc568d61f53a (plain)
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
Index: src/airodump-ng.c
===================================================================
--- src/airodump-ng.c	(revision 1916)
+++ src/airodump-ng.c	(working copy)
@@ -589,42 +589,44 @@
 "  usage: airodump-ng <options> <interface>[,<interface>,...]\n"
 "\n"
 "  Options:\n"
-"      --ivs               : Save only captured IVs\n"
-"      --gpsd              : Use GPSd\n"
-"      --write    <prefix> : Dump file prefix\n"
-"      -w                  : same as --write \n"
-"      --beacons           : Record all beacons in dump file\n"
-"      --update     <secs> : Display update delay in seconds\n"
-"      --showack           : Prints ack/cts/rts statistics\n"
-"      -h                  : Hides known stations for --showack\n"
-"      -f          <msecs> : Time in ms between hopping channels\n"
-"      --berlin     <secs> : Time before removing the AP/client\n"
-"                            from the screen when no more packets\n"
-"                            are received (Default: 120 seconds)\n"
-"      -r           <file> : Read packets from that file\n"
-"      -x          <msecs> : Active Scanning Simulation\n"
+"      --ivs                 : Save only captured IVs\n"
+"      --gpsd                : Use GPSd\n"
+"      --write      <prefix> : Dump file prefix\n"
+"      -w                    : same as --write \n"
+"      --beacons             : Record all beacons in dump file\n"
+"      --update       <secs> : Display update delay in seconds\n"
+"      --showack             : Prints ack/cts/rts statistics\n"
+"      -h                    : Hides known stations for --showack\n"
+"      -f            <msecs> : Time in ms between hopping channels\n"
+"      --berlin       <secs> : Time before removing the AP/client\n"
+"                              from the screen when no more packets\n"
+"                              are received (Default: 120 seconds)\n"
+"      -r             <file> : Read packets from that file\n"
+"      -x            <msecs> : Active Scanning Simulation\n"
 "      --output-format\n"
-"                <formats> : Output format. Possible values:\n"
-"                            pcap, ivs, csv, gps, kismet, netxml\n"
+"                  <formats> : Output format. Possible values:\n"
+"                              pcap, ivs, csv, gps, kismet, netxml\n"
+"      --ignore-negative-one : Removes the message that says\n"
+"                              fixed channel <interface>: -1\n"
 "\n"
 "  Filter options:\n"
-"      --encrypt   <suite> : Filter APs by cipher suite\n"
-"      --netmask <netmask> : Filter APs by mask\n"
-"      --bssid     <bssid> : Filter APs by BSSID\n"
-"      -a                  : Filter unassociated clients\n"
+"      --encrypt   <suite>   : Filter APs by cipher suite\n"
+"      --netmask <netmask>   : Filter APs by mask\n"
+"      --bssid     <bssid>   : Filter APs by BSSID\n"
+"      -a                    : Filter unassociated clients\n"
 "\n"
 "  By default, airodump-ng hop on 2.4GHz channels.\n"
 "  You can make it capture on other/specific channel(s) by using:\n"
-"      --channel <channels>: Capture on specific channels\n"
-"      --band <abg>        : Band on which airodump-ng should hop\n"
-"      -C    <frequencies> : Uses these frequencies in MHz to hop\n"
-"      --cswitch  <method> : Set channel switching method\n"
-"                    0     : FIFO (default)\n"
-"                    1     : Round Robin\n"
-"                    2     : Hop on last\n"
-"      -s                  : same as --cswitch\n"
+"      --channel <channels>  : Capture on specific channels\n"
+"      --band <abg>          : Band on which airodump-ng should hop\n"
+"      -C    <frequencies>   : Uses these frequencies in MHz to hop\n"
+"      --cswitch  <method>   : Set channel switching method\n"
+"                    0       : FIFO (default)\n"
+"                    1       : Round Robin\n"
+"                    2       : Hop on last\n"
+"      -s                    : same as --cswitch\n"
 "\n"
-"      --help              : Displays this usage screen\n"
+"      --help                : Displays this usage screen\n"
 "\n";
 
 int is_filtered_netmask(uchar *bssid)
@@ -5037,6 +5039,7 @@
     for(i=0; i<cards; i++)
     {
         chan = wi_get_channel(wi[i]);
+        if(G.ignore_negative_one == 1 && chan==-1) return 0;
         if(G.channel[i] != chan)
         {
             memset(G.message, '\x00', sizeof(G.message));
@@ -5237,6 +5240,7 @@
         {"showack",  0, 0, 'A'},
         {"detect-anomaly", 0, 0, 'E'},
         {"output-format",  1, 0, 'o'},
+        {"ignore-negative-one", 0, &G.ignore_negative_one, 1},
         {0,          0, 0,  0 }
     };
 
Index: src/airodump-ng.h
===================================================================
--- src/airodump-ng.h	(revision 1916)
+++ src/airodump-ng.h	(working copy)
@@ -418,6 +418,8 @@
     pthread_mutex_t mx_sort;			 /* lock write access to ap LL   */
     
     uchar selected_bssid[6];	/* bssid that is selected */
+
+    int ignore_negative_one;
 }
 G;
 
Index: manpages/airodump-ng.1
===================================================================
--- manpages/airodump-ng.1	(revision 1916)
+++ manpages/airodump-ng.1	(working copy)
@@ -58,6 +58,9 @@
 'pcap' is for recording a capture in pcap format, 'ivs' is for ivs format (it is a shortcut for --ivs). 'csv' will create an airodump-ng CSV file, 'kismet' will create a kismet csv file and 'kismet-newcore' will create the kismet netxml file. 'gps' is a shortcut for --gps.
 .br
 Theses values can be combined with the exception of ivs and pcap.
+.TP
+.I --ignore-negative-one
+Removes the message that says 'fixed channel <interface>: -1'.
 .PP
 .B Filter options:
 .TP