@@ -147,6 +147,8 @@ static u64 packetcount = 1;
147147static u64 beaconrcascancount = 0 ;
148148static u64 proberesponsercascancount = 0 ;
149149static u64 proberequestrcascancount = 0 ;
150+ static u64 proberequestbcrxrcacount = 0 ;
151+ static u64 proberequestdirxrcacount = 0 ;
150152static size_t proberesponsetxindex = 0 ;
151153static u32 proberesponsetxmax = PROBERESPONSETX_MAX ;
152154
@@ -3203,6 +3205,11 @@ if(macfrx->type == IEEE80211_FTYPE_MGMT)
32033205 get_radiotapfield (__hcx16le (rth -> it_len ));
32043206 process80211proberesponse_rcascan ();
32053207 }
3208+ else if (macfrx -> subtype == IEEE80211_STYPE_PROBE_REQ )
3209+ {
3210+ if (memcmp (macbc , macfrx -> addr1 , ETH_ALEN ) == 0 ) proberequestbcrxrcacount ++ ;
3211+ else proberequestdirxrcacount ++ ;
3212+ }
32063213 }
32073214return ;
32083215}
@@ -6119,13 +6126,16 @@ if(rcascanmode == RCASCAN_ACTIVE)
61196126 else fprintf (stderr , "0 BEACONs received (monitor mode probably won't work)\n" );
61206127 if (proberesponsercascancount > 0 ) fprintf (stderr , "%" PRIu64 " PROBEREQUESTs transmitted\n%" PRIu64 " PROBERESPONSEs received\n" , proberequestrcascancount , proberesponsercascancount );
61216128 else fprintf (stderr , "0 PROBERESPONSEs received (packet injection probably won't work)\n" );
6129+ if (proberequestbcrxrcacount > 0 ) fprintf (stderr , "%" PRIu64 " undirected PROBEREQUESTs received\n" , proberequestbcrxrcacount );
6130+ if (proberequestdirxrcacount > 0 ) fprintf (stderr , "%" PRIu64 " directed PROBEREQUESTs received\n" , proberequestdirxrcacount );
61226131 }
61236132if (rcascanmode == RCASCAN_PASSIVE )
61246133 {
61256134 if (beaconrcascancount > 0 ) fprintf (stderr , "%" PRIu64 " BEACONs received\n" , beaconrcascancount );
61266135 else fprintf (stderr , "0 BEACONs received (monitor mode probably won't work)\n" );
6136+ if (proberequestbcrxrcacount > 0 ) fprintf (stderr , "%" PRIu64 " undirected PROBEREQUESTs received\n" , proberequestbcrxrcacount );
6137+ if (proberequestdirxrcacount > 0 ) fprintf (stderr , "%" PRIu64 " directed PROBEREQUESTs received\n" , proberequestdirxrcacount );
61276138 }
6128-
61296139if ((uid == 0 ) && (ftcflag == true)) save_ftc ();
61306140if (exiteapolflag != 0 )
61316141 {
0 commit comments