def METHOD_NAME(
    hosts_to_exploit,
    exploiter_config,
    callback,
    scan_completed,
    stop,
):
    def inner(puppet, num_workers, hosts=hosts_to_exploit, exploiter_config=exploiter_config):
        # Set this so that Exploiter() exits once it has processed all victims
        scan_completed.set()
        e = Exploiter(puppet, num_workers)
        e.exploit_hosts(exploiter_config, hosts, 1, SERVERS, callback, scan_completed, stop)
    return inner