def main():
services = ServiceSearch()<EOL>argparse = services.argparser<EOL>argparse.add_argument('<STR_LIT>', '<STR_LIT>', type=str, help="<STR_LIT>")<EOL>arguments = argparse.parse_args()<EOL>if not arguments.file:<EOL><INDENT>print_error("<STR_LIT>")<EOL>sys.exit()<EOL><DEDENT>services = services.get_services(search=["<STR_LIT>"], up=True, tags=['<STR_LIT>'])<EOL>credentials = []<EOL>with open(arguments.file, '<STR_LIT:r>') as f:<EOL><INDENT>credentials = f.readlines()<EOL><DEDENT>for service in services:<EOL><INDENT>print_notification("<STR_LIT>".format(service.address, service.port))<EOL>url = '<STR_LIT>'<EOL>gevent.spawn(brutefore_passwords, service.address, url.format(service.address, service.port), credentials, service)<EOL>service.add_tag('<STR_LIT>')<EOL>service.update(tags=service.tags)<EOL><DEDENT>gevent.wait()<EOL>Logger().log("<STR_LIT>", "<STR_LIT>", {'<STR_LIT>': len(services)})<EOL>
Checks the arguments to brutefore and spawns greenlets to perform the bruteforcing.