- also search for instances with detected software
parser.add_argument("--no-software", action="store_true", help="Checks only entries with no software type detected.")
parser.add_argument("--no-auto", action="store_true", help="Checks only entries with other than AUTO_DISCOVERY as detection mode.")
parser.add_argument("--no-detection", action="store_true", help="Checks only entries with no detection mode set.")
+ parser.add_argument("--with-software", action="store_true", help="Checks only entries with any software type detected.")
### Fetch instances from instances.social ###
parser = subparser_command.add_parser(
elif args.no_software:
logger.info("Fetching domains with no software type detected ...")
database.cursor.execute("SELECT domain, software FROM instances WHERE software IS NULL ORDER BY last_updated ASC")
+ elif args.with_software:
+ logger.info("Fetching domains with any software type detected ...")
+ database.cursor.execute("SELECT domain, software FROM instances WHERE software IS NOT NULL ORDER BY last_updated ASC")
elif args.no_auto:
logger.info("Fetching domains with other detection mode than AUTO_DISOVERY being set ...")
database.cursor.execute("SELECT domain, software FROM instances WHERE detection_mode IS NOT NULL AND detection_mode != 'AUTO_DISCOVERY' ORDER BY last_updated ASC")