EXIT_FAILURE if user add only interface option -i
@@ -9414,19 +9414,25 @@ while((auswahl = getopt_long(argc, argv, short_options, long_options, &index)) !
}
}
-if(infinityflag == true)
+setbuf(stdout, NULL);
+if(argc < 2)
{
- owm1m2roguemax = 1000000;
- attackstopcount = 1000000;
+ fprintf(stderr, "no option selected\nrun %s --help to get more information\n", (basename(argv[0])));
+ exit(EXIT_FAILURE);
}
-setbuf(stdout, NULL);
-if(argc < 2)
+if((argc == 3) && (interfacename[0] != 0))
{
- fprintf(stderr, "no option selected\n");
+ fprintf(stderr, "not enough options selected for an attack vector\nrun %s --help to get more information\n", (basename(argv[0])));
exit(EXIT_FAILURE);
}
+if(infinityflag == true)
+ {
+ owm1m2roguemax = 1000000;
+ attackstopcount = 1000000;
+ }
+
if(interfacename[0] != 0) getphyifname();
if((rebootflag == true) && (poweroffflag == true))
