diff --git a/shared/bin/zeek_carved_http_server.py b/shared/bin/zeek_carved_http_server.py index 2c0707a09..e1373c294 100755 --- a/shared/bin/zeek_carved_http_server.py +++ b/shared/bin/zeek_carved_http_server.py @@ -80,7 +80,7 @@ def do_GET(self): self.send_header('Content-Disposition', f'attachment; filename={os.path.basename(fullpath)}.zip') self.end_headers() - if args.encrypt: + if args.key: # password-protected ZIP file (temporarily persisted to disk) with temporary_filename(suffix='.zip') as tmpFileName: pyminizip.compress(fullpath, None, tmpFileName, args.key, 1)