fix: Handling of status code 0, export capture UUID

pull/258/head
Raphaël Vinot 2021-09-06 16:12:41 +02:00
parent 827c466004
commit 074bb675f6
3 changed files with 7 additions and 5 deletions

View File

@ -696,6 +696,8 @@ class Lookyloo():
with open(all_paths[0], 'rb') as f:
return BytesIO(f.read())
to_return = BytesIO()
# Add uuid file to the export, allows to keep the same UUID across platforms.
all_paths.append(capture_dir / 'uuid')
with ZipFile(to_return, 'w') as myzip:
for path in all_paths:
if path.name.endswith('pickle'):

8
poetry.lock generated
View File

@ -361,7 +361,7 @@ hyperframe = ">=5.2.0,<6"
[[package]]
name = "har2tree"
version = "1.8.3"
version = "1.8.4"
description = "HTTP Archive (HAR) to ETE Toolkit generator"
category = "main"
optional = false
@ -1300,7 +1300,7 @@ misp = ["python-magic", "pydeep"]
[metadata]
lock-version = "1.1"
python-versions = "^3.8"
content-hash = "dbaf93dd4f05bdd9bfd602cf0e37855a08cccf816c33dcbcad7e4d864ac05d1c"
content-hash = "65128f4aa0b3fb1da0a83d35de3b77fd4033146be25ee0caeecd1f984f18db6d"
[metadata.files]
aiohttp = [
@ -1540,8 +1540,8 @@ h2 = [
{file = "h2-3.2.0.tar.gz", hash = "sha256:875f41ebd6f2c44781259005b157faed1a5031df3ae5aa7bcb4628a6c0782f14"},
]
har2tree = [
{file = "har2tree-1.8.3-py3-none-any.whl", hash = "sha256:0adc8dbc0a4a0eabacc250c0501fe18fc9a4a98785b298d5adc3399d4e22cee8"},
{file = "har2tree-1.8.3.tar.gz", hash = "sha256:94dc41fb389acadfa14e5b4587de20505713085bb93f5f8c219880ade2d99c39"},
{file = "har2tree-1.8.4-py3-none-any.whl", hash = "sha256:449ffe7a5149a8bbfcf9056a7018504d51eff32a9819a8272790443ad3f68676"},
{file = "har2tree-1.8.4.tar.gz", hash = "sha256:5df81366acd99b4937d83d357f9099dabc22915fb40567bdab3d941498b9bcaa"},
]
hiredis = [
{file = "hiredis-2.0.0-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:b4c8b0bc5841e578d5fb32a16e0c305359b987b850a06964bd5a62739d688048"},

View File

@ -49,7 +49,7 @@ vt-py = "^0.7.2"
pyeupi = "^1.1"
scrapysplashwrapper = "^1.8"
pysanejs = "^1.5"
har2tree = "^1.8.3"
har2tree = "^1.8.4"
pylookyloo = "^1.8"
dnspython = "^2.1.0"
pytaxonomies = "^1.4.1"