act.metasearch(criteria, scriptsJS, geoloc) elif args.action == 'search_ip': act.search_ip(geoloc, scriptsJS, args.range) elif args.action == 'create_network': act.create_network() elif args.action == 'metadata': act.metadata_exctract() elif args.action == 'create_result': if not criteria and not db: parser.print_help() else: if collection: act.create_result(collection, criteria) elif args.action == 'dnstree': if db: act.dnstree(db) elif args.action == 'crawl' and args.domains: if db: act.crawl(args.domains) elif args.action == 'cleandb': if db and filters: act.clean_db(filters) elif args.action == 'screenshots': if db and args.threadpool: act.screenshots(db, args.threadpool) else: parser.print_help() elif args.action == 'init': if db and attr and collection: act.init(db, collection, attr) else:
act.metasearch(criteria,scriptsJS,geoloc) elif args.action=='search_ip': act.search_ip(geoloc,scriptsJS) elif args.action =='create_network': act.create_network() elif args.action=='metadata': act.metadata_exctract() elif args.action == 'create_result': if not criteria and not db: parser.print_help() else: if collection: act.create_result(collection,criteria) elif args.action =='dnstree': if db: act.dnstree() elif args.action =='crawl': if db: act.crawl() elif args.action =='cleandb': if db and filters: act.clean_db(filters) elif args.action == 'screenshots': if db and args.threadpool: act.screenshots(args.threadpool) else: parser.print_help() elif args.action == 'init': if db and attr and collection: act.init(collection, attr) else: