@@ -146,6 +146,7 @@ static int clientcountmax = CLIENTCOUNT_MAX;
146146static u64 packetcount = 1 ;
147147static u64 beaconrcascancount = 0 ;
148148static u64 proberesponsercascancount = 0 ;
149+ static u64 proberesponse1rcascancount = 0 ;
149150static u64 proberesponse2rcascancount = 0 ;
150151static u64 proberequestrcascancount = 0 ;
151152static u64 proberequestbcrxrcacount = 0 ;
@@ -2788,6 +2789,7 @@ for(i = 0; i < APLIST_MAX - 1; i++)
27882789 }
27892790(aplist + i )-> tsakt = tsakt ;
27902791memset ((aplist + i )-> apdata , 0 , APDATA_SIZE );
2792+ proberesponse1rcascancount ++ ;
27912793(aplist + i )-> apdata -> proberesponse = false;
27922794memcpy ((aplist + i )-> apdata -> maca , macfrx -> addr2 , ETH_ALEN );
27932795if (memcmp (macclientrg , macfrx -> addr1 , ETH_ALEN ) == 0 )
@@ -2895,6 +2897,7 @@ for(i = 0; i < APLIST_MAX - 1; i++)
28952897 }
28962898(aplist + i )-> tsakt = tsakt ;
28972899memset ((aplist + i )-> apdata , 0 , APDATA_SIZE );
2900+ proberesponse1rcascancount ++ ;
28982901(aplist + i )-> apdata -> proberesponse = false;
28992902memcpy ((aplist + i )-> apdata -> maca , macfrx -> addr2 , ETH_ALEN );
29002903(aplist + i )-> apdata -> rtfrequency = rtfrequency ;
@@ -6184,17 +6187,20 @@ if(rcascanmode == RCASCAN_ACTIVE)
61846187 {
61856188 if (beaconrcascancount > 0 ) fprintf (stderr , "%" PRIu64 " BEACONs received\n" , beaconrcascancount );
61866189 else fprintf (stderr , "0 BEACONs received (monitor mode probably won't work)\n" );
6187- if (proberesponsercascancount > 0 ) fprintf (stderr , "%" PRIu64 " PROBEREQUESTs transmitted\n%" PRIu64 " PROBERESPONSEs received from %" PRIu64 " ACCESS POINT(s) \n" , proberequestrcascancount , proberesponsercascancount , proberesponse2rcascancount );
6190+ if (proberesponsercascancount > 0 ) fprintf (stderr , "%" PRIu64 " PROBEREQUESTs transmitted\n%" PRIu64 " PROBERESPONSEs received\n" , proberequestrcascancount , proberesponsercascancount );
61886191 else fprintf (stderr , "0 PROBERESPONSEs received (packet injection probably won't work)\n" );
61896192 if (proberequestbcrxrcacount > 0 ) fprintf (stderr , "%" PRIu64 " undirected PROBEREQUESTs received\n" , proberequestbcrxrcacount );
61906193 if (proberequestdirxrcacount > 0 ) fprintf (stderr , "%" PRIu64 " directed PROBEREQUESTs received\n" , proberequestdirxrcacount );
6194+ if (proberesponse1rcascancount > 0 ) fprintf (stderr , "%" PRIu64 " ACCESS POINT(s) discovered\n" , proberesponse1rcascancount );
6195+ if (proberesponse2rcascancount > 0 ) fprintf (stderr , "%" PRIu64 " ACCESS POINT(s) have responded\n" , proberesponse2rcascancount );
61916196 }
61926197if (rcascanmode == RCASCAN_PASSIVE )
61936198 {
61946199 if (beaconrcascancount > 0 ) fprintf (stderr , "%" PRIu64 " BEACONs received\n" , beaconrcascancount );
61956200 else fprintf (stderr , "0 BEACONs received (monitor mode probably won't work)\n" );
61966201 if (proberequestbcrxrcacount > 0 ) fprintf (stderr , "%" PRIu64 " undirected PROBEREQUESTs received\n" , proberequestbcrxrcacount );
61976202 if (proberequestdirxrcacount > 0 ) fprintf (stderr , "%" PRIu64 " directed PROBEREQUESTs received\n" , proberequestdirxrcacount );
6203+ if (proberesponse1rcascancount > 0 ) fprintf (stderr , "%" PRIu64 " ACCESS POINT(s) discovered\n" , proberesponse1rcascancount );
61986204 }
61996205if ((uid == 0 ) && (ftcflag == true)) save_ftc ();
62006206if (exiteapolflag != 0 )
0 commit comments