Skip to content

Commit

Permalink
for idaholab#288, file carve download with password-protected zip file
Browse files Browse the repository at this point in the history
  • Loading branch information
mmguero committed Dec 21, 2023
1 parent 7bb5c1d commit 34aeea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/bin/zeek_carved_http_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 34aeea0

Please sign in to comment.