diff --git a/lib/cuckoo/core/startup.py b/lib/cuckoo/core/startup.py index cdac1e19496..257d29579d6 100644 --- a/lib/cuckoo/core/startup.py +++ b/lib/cuckoo/core/startup.py @@ -350,9 +350,9 @@ def check_snapshot_state(): continue try: - domain = conn.lookupByName(machine_name) machine_config = machinery_config.get(machine_name) - + machine_name = machine_config.get("label") + domain = conn.lookupByName(machine_name) # Check for valid architecture configuration. arch = machine_config.get("arch") if not arch: diff --git a/modules/processing/pcapng.py b/modules/processing/pcapng.py index f33fb5ec621..351cd76679d 100644 --- a/modules/processing/pcapng.py +++ b/modules/processing/pcapng.py @@ -30,4 +30,4 @@ def run(self) -> dict[str, str | None]: if not is_pcapng(self.pcapng_path): log.warning("generated pcapng file is not valid: %s", self.pcapng_path) return {} - return {"sha256": File(self.pcapng_path).get_sha256()} + return {"sha256": File(str(self.pcapng_path)).get_sha256()}