def main(path): multi_av = CMultiAV() ret = multi_av.scan(path, AV_SPEED_ALL) import pprint pprint.pprint(ret)
name=name, plugin_type=plugin_type, has_internet=has_internet, speed=speed, signature_version=signature_version, engine_version=engine_version if engine_version is not None else "-") return updated_rows # ----------------------------------------------------------------------- # MultiAV Instance try: overprovisioning_multiplyer=1 config_name = "config.cfg" scanner_strategy = AutoScaleDockerStrategy(config_name, min_machines=2, max_machines = 5, max_containers_per_machine = cpu_count() * overprovisioning_multiplyer, max_scans_per_container = 1) CAV = CMultiAV(scanner_strategy, config_name, auto_start=True, auto_pull=True) except PullPluginException as e: print(e) exit(2) except StartPluginException as e: print(e) exit(3) except CreateNetworkException as e: print(e) exit(4) if not os.path.isdir(os.path.join(CURRENT_PATH, 'static')): raise Exception('runserver.py must be run in the directory {0}'.format(ROOT_PATH)) # ----------------------------------------------------------------------- def convert_result_rows_to_ui_datastructure(rows):
def __init__(self): self.multi_av = CMultiAV("%s/cmultiav.cfg" % os.path.dirname(__file__))