Skip to content

Commit 0e629ec

Browse files
author
=
committed
cosmetic in injection/monitor mode status display
1 parent 492e19d commit 0e629ec

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

hcxdumptool.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5803,15 +5803,15 @@ close_lists();
58035803
if(rooterrorflag == true) exit(EXIT_FAILURE);
58045804
if((monitormodeflag == true) || (interfacelistflag == true) || (interfaceinfoflag == true) || (interfacelistshortflag == true)) return EXIT_SUCCESS;
58055805
fprintf(stdout, "\n\033[?25h");
5806-
if(rcascanmode == RCASCAN_ACTIVE)
5807-
{
5808-
if(beaconrcascancount == 0) fprintf(stderr, "0 BEACONs received (monitor mode is possibly broken)\n");
5809-
if(proberesponsercascancount == 0) fprintf(stderr, "0 PROBERESPONSEs received (packet injection is possibly broken)\n");
5810-
}
58115806
if(errorcount > 0) fprintf(stderr, "%u ERROR(s) during runtime (mostly caused by a broken driver)\n", errorcount);
58125807
if(errortxcount > 0) fprintf(stderr, "%u TX ERROR(s) during runtime (mostly caused by a broken driver)\n", errortxcount);
58135808
fprintf(stdout, "%u Packet(s) captured by kernel\n", lStats.tp_packets);
58145809
fprintf(stdout, "%u Packet(s) dropped by kernel\n", lStats.tp_drops);
5810+
if(rcascanmode == RCASCAN_ACTIVE)
5811+
{
5812+
if(beaconrcascancount == 0) fprintf(stderr, "0 BEACONs received (monitor mode is possibly not working)\n");
5813+
if(proberesponsercascancount == 0) fprintf(stderr, "0 PROBERESPONSEs received (packet injection is possibly notworking)\n");
5814+
}
58155815
if((uid == 0) && (ftcflag == true)) save_ftc();
58165816
if(exiteapolflag != 0)
58175817
{

0 commit comments

Comments
 (0)