Skip to content

Commit e52a772

Browse files
author
=
committed
added AP counter and AP response counter to final status oh rcascan
1 parent 558835b commit e52a772

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

hcxdumptool.c

Lines changed: 7 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 proberesponse1rcascancount = 0;
149150
static u64 proberesponse2rcascancount = 0;
150151
static u64 proberequestrcascancount = 0;
151152
static u64 proberequestbcrxrcacount = 0;
@@ -2788,6 +2789,7 @@ for(i = 0; i < APLIST_MAX - 1; i++)
27882789
}
27892790
(aplist + i)->tsakt = tsakt;
27902791
memset((aplist + i)->apdata, 0, APDATA_SIZE);
2792+
proberesponse1rcascancount++;
27912793
(aplist + i)->apdata->proberesponse = false;
27922794
memcpy((aplist + i)->apdata->maca, macfrx->addr2, ETH_ALEN);
27932795
if(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;
28972899
memset((aplist + i)->apdata, 0, APDATA_SIZE);
2900+
proberesponse1rcascancount++;
28982901
(aplist + i)->apdata->proberesponse = false;
28992902
memcpy((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
}
61926197
if(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
}
61996205
if((uid == 0) && (ftcflag == true)) save_ftc();
62006206
if(exiteapolflag != 0)

0 commit comments

Comments
 (0)