Skip to content

Commit 558835b

Browse files
author
=
committed
ad information how many different APs respond to hcxdumptool PROBEREQUEST when running active rcascan
1 parent 8bbc061 commit 558835b

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

hcxdumptool.c

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ static int clientcountmax = CLIENTCOUNT_MAX;
146146
static u64 packetcount = 1;
147147
static u64 beaconrcascancount = 0;
148148
static u64 proberesponsercascancount = 0;
149+
static u64 proberesponse2rcascancount = 0;
149150
static u64 proberequestrcascancount = 0;
150151
static u64 proberequestbcrxrcacount = 0;
151152
static u64 proberequestdirxrcacount = 0;
@@ -2771,6 +2772,11 @@ for(i = 0; i < APLIST_MAX - 1; i++)
27712772
{
27722773
(aplist + i)->apdata->tsresponse = tsakt;
27732774
proberesponsercascancount++;
2775+
if((aplist + i)->apdata->proberesponse == false)
2776+
{
2777+
(aplist + i)->apdata->proberesponse = true;
2778+
proberesponse2rcascancount++;
2779+
}
27742780
}
27752781
(aplist + i)->apdata->rtfrequency = rtfrequency;
27762782
(aplist + i)->apdata->rtrssi = rtrssi;
@@ -2782,11 +2788,14 @@ for(i = 0; i < APLIST_MAX - 1; i++)
27822788
}
27832789
(aplist + i)->tsakt = tsakt;
27842790
memset((aplist + i)->apdata, 0, APDATA_SIZE);
2791+
(aplist + i)->apdata->proberesponse = false;
27852792
memcpy((aplist + i)->apdata->maca, macfrx->addr2, ETH_ALEN);
27862793
if(memcmp(macclientrg, macfrx->addr1, ETH_ALEN) == 0)
27872794
{
27882795
(aplist + i)->apdata->tsresponse = tsakt;
27892796
proberesponsercascancount++;
2797+
(aplist + i)->apdata->proberesponse = true;
2798+
proberesponse2rcascancount++;
27902799
}
27912800
(aplist + i)->apdata->rtfrequency = rtfrequency;
27922801
(aplist + i)->apdata->rtrssi = rtrssi;
@@ -2886,6 +2895,7 @@ for(i = 0; i < APLIST_MAX - 1; i++)
28862895
}
28872896
(aplist + i)->tsakt = tsakt;
28882897
memset((aplist + i)->apdata, 0, APDATA_SIZE);
2898+
(aplist + i)->apdata->proberesponse = false;
28892899
memcpy((aplist + i)->apdata->maca, macfrx->addr2, ETH_ALEN);
28902900
(aplist + i)->apdata->rtfrequency = rtfrequency;
28912901
(aplist + i)->apdata->rtrssi = rtrssi;
@@ -6174,7 +6184,7 @@ if(rcascanmode == RCASCAN_ACTIVE)
61746184
{
61756185
if(beaconrcascancount > 0) fprintf(stderr, "%" PRIu64 " BEACONs received\n", beaconrcascancount);
61766186
else fprintf(stderr, "0 BEACONs received (monitor mode probably won't work)\n");
6177-
if(proberesponsercascancount > 0) fprintf(stderr, "%" PRIu64 " PROBEREQUESTs transmitted\n%" PRIu64 " PROBERESPONSEs received\n", proberequestrcascancount, proberesponsercascancount);
6187+
if(proberesponsercascancount > 0) fprintf(stderr, "%" PRIu64 " PROBEREQUESTs transmitted\n%" PRIu64 " PROBERESPONSEs received from %" PRIu64 " ACCESS POINT(s)\n", proberequestrcascancount, proberesponsercascancount, proberesponse2rcascancount);
61786188
else fprintf(stderr, "0 PROBERESPONSEs received (packet injection probably won't work)\n");
61796189
if(proberequestbcrxrcacount > 0) fprintf(stderr, "%" PRIu64 " undirected PROBEREQUESTs received\n", proberequestbcrxrcacount);
61806190
if(proberequestdirxrcacount > 0) fprintf(stderr, "%" PRIu64 " directed PROBEREQUESTs received\n", proberequestdirxrcacount);

0 commit comments

Comments
 (0)