dissect.target 3.17.dev37__py3-none-any.whl → 3.18.dev1__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- dissect/target/exceptions.py +4 -0
- dissect/target/loaders/raw.py +7 -0
- dissect/target/target.py +6 -1
- {dissect.target-3.17.dev37.dist-info → dissect.target-3.18.dev1.dist-info}/METADATA +1 -1
- {dissect.target-3.17.dev37.dist-info → dissect.target-3.18.dev1.dist-info}/RECORD +10 -10
- {dissect.target-3.17.dev37.dist-info → dissect.target-3.18.dev1.dist-info}/COPYRIGHT +0 -0
- {dissect.target-3.17.dev37.dist-info → dissect.target-3.18.dev1.dist-info}/LICENSE +0 -0
- {dissect.target-3.17.dev37.dist-info → dissect.target-3.18.dev1.dist-info}/WHEEL +0 -0
- {dissect.target-3.17.dev37.dist-info → dissect.target-3.18.dev1.dist-info}/entry_points.txt +0 -0
- {dissect.target-3.17.dev37.dist-info → dissect.target-3.18.dev1.dist-info}/top_level.txt +0 -0
dissect/target/exceptions.py
CHANGED
dissect/target/loaders/raw.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
from pathlib import Path
|
2
2
|
|
3
3
|
from dissect.target import container
|
4
|
+
from dissect.target.exceptions import TargetPathNotFoundError
|
4
5
|
from dissect.target.loader import Loader
|
5
6
|
from dissect.target.target import Target
|
6
7
|
|
@@ -8,6 +9,12 @@ from dissect.target.target import Target
|
|
8
9
|
class RawLoader(Loader):
|
9
10
|
"""Load raw container files such as disk images."""
|
10
11
|
|
12
|
+
def __init__(self, path: Path, **kwargs):
|
13
|
+
if not path.exists():
|
14
|
+
raise TargetPathNotFoundError("Provided target path does not exist")
|
15
|
+
|
16
|
+
super().__init__(path, **kwargs)
|
17
|
+
|
11
18
|
@staticmethod
|
12
19
|
def detect(path: Path) -> bool:
|
13
20
|
return not path.is_dir()
|
dissect/target/target.py
CHANGED
@@ -14,6 +14,7 @@ from dissect.target.exceptions import (
|
|
14
14
|
PluginError,
|
15
15
|
PluginNotFoundError,
|
16
16
|
TargetError,
|
17
|
+
TargetPathNotFoundError,
|
17
18
|
UnsupportedPluginError,
|
18
19
|
VolumeSystemError,
|
19
20
|
)
|
@@ -284,7 +285,11 @@ class Target:
|
|
284
285
|
try:
|
285
286
|
ldr = loader_cls(sub_entry, parsed_path=parsed_path)
|
286
287
|
except Exception as e:
|
287
|
-
|
288
|
+
message = "Failed to initiate loader: %s"
|
289
|
+
if isinstance(e, TargetPathNotFoundError):
|
290
|
+
message = "%s"
|
291
|
+
|
292
|
+
getlogger(sub_entry).error(message, e)
|
288
293
|
getlogger(sub_entry).debug("", exc_info=e)
|
289
294
|
continue
|
290
295
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: dissect.target
|
3
|
-
Version: 3.
|
3
|
+
Version: 3.18.dev1
|
4
4
|
Summary: This module ties all other Dissect modules together, it provides a programming API and command line tools which allow easy access to various data sources inside disk images or file collections (a.k.a. targets)
|
5
5
|
Author-email: Dissect Team <dissect@fox-it.com>
|
6
6
|
License: Affero General Public License v3
|
@@ -1,11 +1,11 @@
|
|
1
1
|
dissect/target/__init__.py,sha256=Oc7ounTgq2hE4nR6YcNabetc7SQA40ldSa35VEdZcQU,63
|
2
2
|
dissect/target/container.py,sha256=0YcwcGmfJjhPXUB6DEcjWEoSuAtTDxMDpoTviMrLsxM,9353
|
3
|
-
dissect/target/exceptions.py,sha256=
|
3
|
+
dissect/target/exceptions.py,sha256=ULi7NXlqju_d8KENEL3aimmfKTFfbNssfeWhAnOB654,2972
|
4
4
|
dissect/target/filesystem.py,sha256=1i-lToeTX-HgQXQOYxPXH-90M_eq43W4FFzNDRdpgpk,60094
|
5
5
|
dissect/target/loader.py,sha256=hjKInZAEcv43RiqxZJ0yBI4Y2YZ2-nrsKWu_BKrgba4,7336
|
6
6
|
dissect/target/plugin.py,sha256=HAN8maaDt-Rlqt8Rr1IW7gXQpzNQZjCVz-i4aSPphSw,48677
|
7
7
|
dissect/target/report.py,sha256=06uiP4MbNI8cWMVrC1SasNS-Yg6ptjVjckwj8Yhe0Js,7958
|
8
|
-
dissect/target/target.py,sha256=
|
8
|
+
dissect/target/target.py,sha256=8vg0VdEQuy5Ih5ewlm0b64o3HcJq_Nley4Ygyp2fLI4,32362
|
9
9
|
dissect/target/volume.py,sha256=aQZAJiny8jjwkc9UtwIRwy7nINXjCxwpO-_UDfh6-BA,15801
|
10
10
|
dissect/target/containers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
11
11
|
dissect/target/containers/asdf.py,sha256=DJp0QEFwUjy2MFwKYcYqIR_BS1fQT1Yi9Kcmqt0aChM,1366
|
@@ -95,7 +95,7 @@ dissect/target/loaders/phobos.py,sha256=XtxF7FZXfZrXJruFUZUQzxlREyfc86dTxph7BNoN
|
|
95
95
|
dissect/target/loaders/profile.py,sha256=5ylgmzEEGyBFW3izvb-BZ7dGByXN9OFyRnnggR98P9w,1667
|
96
96
|
dissect/target/loaders/pvm.py,sha256=b-PvHNTbRVdOnf7-OR5dbikbDTCFlW85b-9Z8PEL2Cs,406
|
97
97
|
dissect/target/loaders/pvs.py,sha256=dMqdYSBQtH9QLM3tdu0mokLBcn73edg_HUtYtqrdi6E,955
|
98
|
-
dissect/target/loaders/raw.py,sha256=
|
98
|
+
dissect/target/loaders/raw.py,sha256=tleNWoO0BkC32ExBIPVOpzrQHXXHChZXoZr02oYuC8A,674
|
99
99
|
dissect/target/loaders/remote.py,sha256=4cGCQfBwuhh5vo0zgVCK8V3I0w9SSWX3AjbW9eebPRg,9512
|
100
100
|
dissect/target/loaders/res.py,sha256=8b178x05t9K31wOeP8yGD1IdR3RpiMGz7wcvtHmmHjk,8819
|
101
101
|
dissect/target/loaders/smb.py,sha256=qP8m4Jq7hvAvUCF9jB4yr2Zut7p_R02_vxziNN3R1to,13070
|
@@ -340,10 +340,10 @@ dissect/target/volumes/luks.py,sha256=OmCMsw6rCUXG1_plnLVLTpsvE1n_6WtoRUGQbpmu1z
|
|
340
340
|
dissect/target/volumes/lvm.py,sha256=wwQVR9I3G9YzmY6UxFsH2Y4MXGBcKL9aayWGCDTiWMU,2269
|
341
341
|
dissect/target/volumes/md.py,sha256=j1K1iKmspl0C_OJFc7-Q1BMWN2OCC5EVANIgVlJ_fIE,1673
|
342
342
|
dissect/target/volumes/vmfs.py,sha256=-LoUbn9WNwTtLi_4K34uV_-wDw2W5hgaqxZNj4UmqAQ,1730
|
343
|
-
dissect.target-3.
|
344
|
-
dissect.target-3.
|
345
|
-
dissect.target-3.
|
346
|
-
dissect.target-3.
|
347
|
-
dissect.target-3.
|
348
|
-
dissect.target-3.
|
349
|
-
dissect.target-3.
|
343
|
+
dissect.target-3.18.dev1.dist-info/COPYRIGHT,sha256=m-9ih2RVhMiXHI2bf_oNSSgHgkeIvaYRVfKTwFbnJPA,301
|
344
|
+
dissect.target-3.18.dev1.dist-info/LICENSE,sha256=DZak_2itbUtvHzD3E7GNUYSRK6jdOJ-GqncQ2weavLA,34523
|
345
|
+
dissect.target-3.18.dev1.dist-info/METADATA,sha256=tJDE-kFB1FiUX5R-PfAhVrhV6HLoQ5v12zzo9n3jumk,11299
|
346
|
+
dissect.target-3.18.dev1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
347
|
+
dissect.target-3.18.dev1.dist-info/entry_points.txt,sha256=tvFPa-Ap-gakjaPwRc6Fl6mxHzxEZ_arAVU-IUYeo_s,447
|
348
|
+
dissect.target-3.18.dev1.dist-info/top_level.txt,sha256=Mn-CQzEYsAbkxrUI0TnplHuXnGVKzxpDw_po_sXpvv4,8
|
349
|
+
dissect.target-3.18.dev1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|