dissect.evidence 3.13.dev3__py3-none-any.whl → 3.14.dev2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- dissect/evidence/ad1/ad1.py +2 -2
- dissect/evidence/asdf/__init__.py +2 -0
- dissect/evidence/asdf/stream.py +2 -0
- dissect/evidence/exception.py +7 -4
- dissect/evidence/tools/asdf/dd.py +2 -0
- {dissect_evidence-3.13.dev3.dist-info → dissect_evidence-3.14.dev2.dist-info}/METADATA +1 -1
- {dissect_evidence-3.13.dev3.dist-info → dissect_evidence-3.14.dev2.dist-info}/RECORD +12 -12
- {dissect_evidence-3.13.dev3.dist-info → dissect_evidence-3.14.dev2.dist-info}/WHEEL +1 -1
- {dissect_evidence-3.13.dev3.dist-info → dissect_evidence-3.14.dev2.dist-info}/entry_points.txt +0 -0
- {dissect_evidence-3.13.dev3.dist-info → dissect_evidence-3.14.dev2.dist-info}/licenses/COPYRIGHT +0 -0
- {dissect_evidence-3.13.dev3.dist-info → dissect_evidence-3.14.dev2.dist-info}/licenses/LICENSE +0 -0
- {dissect_evidence-3.13.dev3.dist-info → dissect_evidence-3.14.dev2.dist-info}/top_level.txt +0 -0
dissect/evidence/ad1/ad1.py
CHANGED
|
@@ -3,7 +3,7 @@ from __future__ import annotations
|
|
|
3
3
|
import re
|
|
4
4
|
from datetime import datetime, timezone
|
|
5
5
|
from functools import cached_property
|
|
6
|
-
from pathlib import Path,
|
|
6
|
+
from pathlib import Path, PurePosixPath, PureWindowsPath
|
|
7
7
|
from typing import TYPE_CHECKING, BinaryIO
|
|
8
8
|
|
|
9
9
|
from dissect.evidence.ad1.c_ad1 import c_ad1
|
|
@@ -13,6 +13,7 @@ from dissect.evidence.exception import FileNotFoundError, NotADirectoryError, No
|
|
|
13
13
|
|
|
14
14
|
if TYPE_CHECKING:
|
|
15
15
|
from collections.abc import Iterator
|
|
16
|
+
from pathlib import PurePath
|
|
16
17
|
|
|
17
18
|
EntryType = c_ad1.EntryType
|
|
18
19
|
MetaType = c_ad1.MetaType
|
|
@@ -440,7 +441,6 @@ class FileMeta:
|
|
|
440
441
|
|
|
441
442
|
def convert_ts(value: bytes) -> datetime:
|
|
442
443
|
"""Convert an AD1 timestamp to datetime object. Assuming this is UTC."""
|
|
443
|
-
|
|
444
444
|
# DateCreated does not (always) have ``.%f`` precision.
|
|
445
445
|
fmt = "%Y%m%dT%H%M%S.%f" if b"." in value else "%Y%m%dT%H%M%S"
|
|
446
446
|
return datetime.strptime(value.decode(), fmt).replace(tzinfo=timezone.utc)
|
dissect/evidence/asdf/stream.py
CHANGED
dissect/evidence/exception.py
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
|
|
1
4
|
class Error(Exception):
|
|
2
5
|
pass
|
|
3
6
|
|
|
@@ -19,16 +22,16 @@ class NotASymlinkError(Error):
|
|
|
19
22
|
|
|
20
23
|
|
|
21
24
|
class EWFError(Error):
|
|
22
|
-
"""Related to EWF (Expert Witness disk image Format)"""
|
|
25
|
+
"""Related to EWF (Expert Witness disk image Format)."""
|
|
23
26
|
|
|
24
27
|
|
|
25
28
|
class InvalidSnapshot(Error):
|
|
26
|
-
"""Related to ASDF (Acquire Snapshot Data Format)"""
|
|
29
|
+
"""Related to ASDF (Acquire Snapshot Data Format)."""
|
|
27
30
|
|
|
28
31
|
|
|
29
32
|
class InvalidBlock(Error):
|
|
30
|
-
"""Related to ASDF (Acquire Snapshot Data Format)"""
|
|
33
|
+
"""Related to ASDF (Acquire Snapshot Data Format)."""
|
|
31
34
|
|
|
32
35
|
|
|
33
36
|
class UnsupportedVersion(Error):
|
|
34
|
-
"""Related to ASDF (Acquire Snapshot Data Format)"""
|
|
37
|
+
"""Related to ASDF (Acquire Snapshot Data Format)."""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dissect.evidence
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.14.dev2
|
|
4
4
|
Summary: A Dissect module implementing a parsers for various forensic evidence file containers, currently: AD1, ASDF and EWF
|
|
5
5
|
Author-email: Dissect Team <dissect@fox-it.com>
|
|
6
6
|
License-Expression: AGPL-3.0-or-later
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
dissect/evidence/__init__.py,sha256=HBsn_m9aTzUqV0niqY6DV1GwKhtL2WfMf3i1LJFyxO4,257
|
|
2
|
-
dissect/evidence/exception.py,sha256=
|
|
2
|
+
dissect/evidence/exception.py,sha256=wWN1bkKu5dHezB3HM55Fs6rwIZ9ajUGo57iM48bguv4,656
|
|
3
3
|
dissect/evidence/ad1/__init__.py,sha256=p31RFzymZqk4dp2h8Ov9uAOk-lUqbT2rQujrfOFScTc,557
|
|
4
|
-
dissect/evidence/ad1/ad1.py,sha256=
|
|
4
|
+
dissect/evidence/ad1/ad1.py,sha256=1E_-bb2ePXz1Za6exrExnMkFyIJTDuVpaps5LNkhWpU,14993
|
|
5
5
|
dissect/evidence/ad1/c_ad1.py,sha256=3MWCTONFBj99M7ZZbzLMZM393uJqPqljMdvZZpeG78A,6421
|
|
6
6
|
dissect/evidence/ad1/c_ad1.pyi,sha256=m4m5VK1fRe4N5LNE-Cb1Datd1yutC6fptvKeq7fWH1k,7299
|
|
7
7
|
dissect/evidence/ad1/stream.py,sha256=clcugxOaTcgXS0C5M694pnmIRFgEI2Ip32iqkdBJ5hM,2539
|
|
@@ -10,11 +10,11 @@ dissect/evidence/adcrypt/adcrypt.py,sha256=u_YABDws6Q92tMK6K7Lmx7BcLyPfSqmlXgONO
|
|
|
10
10
|
dissect/evidence/adcrypt/c_adcrypt.py,sha256=rE17LHpx1pSbsIxAupEwM8ZFY4U9BODAY8aCyRljZoM,1000
|
|
11
11
|
dissect/evidence/adcrypt/c_adcrypt.pyi,sha256=-m3voe_rrLWCScds9tl9CRzoVbGn7GqhN9O7yUICtGA,2195
|
|
12
12
|
dissect/evidence/adcrypt/stream.py,sha256=gwsim1mzSJnskzDL-y7FRLUt-MuNezGkT_Un950Gnfc,1144
|
|
13
|
-
dissect/evidence/asdf/__init__.py,sha256=
|
|
13
|
+
dissect/evidence/asdf/__init__.py,sha256=Q7gUKk6Z5nR_DHnSo2ZfuUIlDNmARk420lC7A0GPwkg,213
|
|
14
14
|
dissect/evidence/asdf/asdf.py,sha256=5FvEQ0KsaCYvloNGbtqlQin1t52AvZFBpbgh8jbEkRY,22239
|
|
15
15
|
dissect/evidence/asdf/c_asdf.py,sha256=rfP2dVcJLxSbkNHZdDnCOM5Hs-ZKD_QY5e3iyxBQWQU,1803
|
|
16
16
|
dissect/evidence/asdf/c_asdf.pyi,sha256=_-uhzA7yuXtH-22ERL-vHxoUYMnXHAXqvq71Zvxi_LQ,3244
|
|
17
|
-
dissect/evidence/asdf/stream.py,sha256=
|
|
17
|
+
dissect/evidence/asdf/stream.py,sha256=v4oN8CHJu54Og_X5ZPvcGUOCLY-B8ApvQFsZjUy3Mbc,2637
|
|
18
18
|
dissect/evidence/ewf/__init__.py,sha256=SbU1qjVHgwddhxFVU-WujpfWRE4SxJT46Fhen8lahuY,460
|
|
19
19
|
dissect/evidence/ewf/c_ewf.py,sha256=DIZcUq3DK0V1HAjLQ-m6pzYhnsdllUN36BuMu7KEqQk,2115
|
|
20
20
|
dissect/evidence/ewf/c_ewf.pyi,sha256=hQPBSL0SyJpKWrO6bDHdXTBG1NY0wP85NV9aFw_b0Ls,5860
|
|
@@ -23,14 +23,14 @@ dissect/evidence/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3
|
|
|
23
23
|
dissect/evidence/tools/adcrypt.py,sha256=7D37eyPfvBOaIn3v1S-bUk-yOix6FZSi29CuO6F4dBg,2721
|
|
24
24
|
dissect/evidence/tools/util.py,sha256=js2OsSkDl8F4T-HHClQ-PW_EboUKIXW5ClDgYSOk9Wo,900
|
|
25
25
|
dissect/evidence/tools/asdf/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
26
|
-
dissect/evidence/tools/asdf/dd.py,sha256=
|
|
26
|
+
dissect/evidence/tools/asdf/dd.py,sha256=GPsEqyGBefXkUCHxZUTHDi1j2Nw1w39h2Qr-RoGyRCY,3145
|
|
27
27
|
dissect/evidence/tools/asdf/meta.py,sha256=bMb9pI49MgjeKhVXYPqhw74Cn0Sq-25YMzXU3cYaZro,2568
|
|
28
28
|
dissect/evidence/tools/asdf/repair.py,sha256=8iDzS7wmVfg35AKolMzOpbJVBx-CMPqOvxPAlBkKc9w,3071
|
|
29
29
|
dissect/evidence/tools/asdf/verify.py,sha256=zvxRvHNFZv6bicDE7RcT-jWgDKdYbLKMNTpGOwUJmfU,4161
|
|
30
|
-
dissect_evidence-3.
|
|
31
|
-
dissect_evidence-3.
|
|
32
|
-
dissect_evidence-3.
|
|
33
|
-
dissect_evidence-3.
|
|
34
|
-
dissect_evidence-3.
|
|
35
|
-
dissect_evidence-3.
|
|
36
|
-
dissect_evidence-3.
|
|
30
|
+
dissect_evidence-3.14.dev2.dist-info/licenses/COPYRIGHT,sha256=yExUrJwFMdmpUCxPrUiBR1pPQ_pGrr6hf3p231U6VnQ,303
|
|
31
|
+
dissect_evidence-3.14.dev2.dist-info/licenses/LICENSE,sha256=DZak_2itbUtvHzD3E7GNUYSRK6jdOJ-GqncQ2weavLA,34523
|
|
32
|
+
dissect_evidence-3.14.dev2.dist-info/METADATA,sha256=eDMOzSVL8wA0Jm5VALiclbpINmgl4Rbif43kutXZ4Cw,3340
|
|
33
|
+
dissect_evidence-3.14.dev2.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
34
|
+
dissect_evidence-3.14.dev2.dist-info/entry_points.txt,sha256=Wwci5PSqdS9koYEtx9lIsmPRfnKRJUG2UPAKpsJfGOI,268
|
|
35
|
+
dissect_evidence-3.14.dev2.dist-info/top_level.txt,sha256=Mn-CQzEYsAbkxrUI0TnplHuXnGVKzxpDw_po_sXpvv4,8
|
|
36
|
+
dissect_evidence-3.14.dev2.dist-info/RECORD,,
|
{dissect_evidence-3.13.dev3.dist-info → dissect_evidence-3.14.dev2.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{dissect_evidence-3.13.dev3.dist-info → dissect_evidence-3.14.dev2.dist-info}/licenses/COPYRIGHT
RENAMED
|
File without changes
|
{dissect_evidence-3.13.dev3.dist-info → dissect_evidence-3.14.dev2.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|