# Path: processing/docker_utils.py
#     HAVE_DOCKER = True
#     HAVE_DOCKER = False
# def temp_volume(target):


import os
from shutil import copyfile
from fame.core.module import ProcessingModule, ModuleInitializationError
from fame.common.utils import tempdir
from ..docker_utils import HAVE_DOCKER, docker_client




class Extract(ProcessingModule):
    name = "extract"
    description = "Extract most compressed archives (zip, rar, 7z...)"
    acts_on = ["zip", "rar", "7z", "iso"]

    config = [
        {
            "name": "password_candidates",
            "type": "text",
            "default": "virus\ninfected",
            "description": "List of passwords to try when unpacking an encrypted archive file (one per line).",
        },
        {
            "name": "maximum_extracted_files",

# Path: processing/docker_utils.py
#     HAVE_DOCKER = True
#     HAVE_DOCKER = False
# def temp_volume(target):


# Path: processing/extract/extract.py
import os
from shutil import copyfile
from fame.core.module import ProcessingModule, ModuleInitializationError
from fame.common.utils import tempdir
from ..docker_utils import HAVE_DOCKER, docker_client





class Extract(ProcessingModule):
    name = "extract"
    description = "Extract most compressed archives (zip, rar, 7z...)"
    acts_on = ["zip", "rar", "7z", "iso"]

    config = [
        {
            "name": "password_candidates",
            "type": "text",
            "default": "virus\ninfected",
            "description": "List of passwords to try when unpacking an encrypted archive file (one per line).",
        },
        {
            "name": "maximum_extracted_files",

            "type": "integer",