dissect.target 3.20.dev2__py3-none-any.whl → 3.20.dev4__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- dissect/target/loaders/mqtt.py +13 -0
- dissect/target/plugins/os/windows/defender.py +1 -0
- {dissect.target-3.20.dev2.dist-info → dissect.target-3.20.dev4.dist-info}/METADATA +1 -1
- {dissect.target-3.20.dev2.dist-info → dissect.target-3.20.dev4.dist-info}/RECORD +9 -9
- {dissect.target-3.20.dev2.dist-info → dissect.target-3.20.dev4.dist-info}/COPYRIGHT +0 -0
- {dissect.target-3.20.dev2.dist-info → dissect.target-3.20.dev4.dist-info}/LICENSE +0 -0
- {dissect.target-3.20.dev2.dist-info → dissect.target-3.20.dev4.dist-info}/WHEEL +0 -0
- {dissect.target-3.20.dev2.dist-info → dissect.target-3.20.dev4.dist-info}/entry_points.txt +0 -0
- {dissect.target-3.20.dev2.dist-info → dissect.target-3.20.dev4.dist-info}/top_level.txt +0 -0
dissect/target/loaders/mqtt.py
CHANGED
@@ -341,9 +341,20 @@ class Broker:
|
|
341
341
|
self.mqtt_client.subscribe(f"{self.case}/{host}/DISKS")
|
342
342
|
self.mqtt_client.subscribe(f"{self.case}/{host}/READ/#")
|
343
343
|
if self.command is not None:
|
344
|
+
self.mqtt_client.subscribe(f"{self.case}/{host}/CALLID")
|
344
345
|
self.mqtt_client.publish(f"{self.case}/{host}/COMM", self.command.encode("utf-8"))
|
345
346
|
time.sleep(1)
|
346
347
|
|
348
|
+
def _on_call_id(self, hostname: str, payload: bytes) -> None:
|
349
|
+
try:
|
350
|
+
decoded_payload = payload.decode("utf-8")
|
351
|
+
except UnicodeDecodeError as e:
|
352
|
+
log.error(f"Failed to decode payload for hostname {hostname}: {e}")
|
353
|
+
return
|
354
|
+
|
355
|
+
# The payload with the username and password is comma separated
|
356
|
+
print(f'"{hostname}",{decoded_payload}')
|
357
|
+
|
347
358
|
def _on_log(self, client: mqtt.Client, userdata: Any, log_level: int, message: str) -> None:
|
348
359
|
log.debug(message)
|
349
360
|
|
@@ -365,6 +376,8 @@ class Broker:
|
|
365
376
|
self._on_read(hostname, tokens, msg.payload)
|
366
377
|
elif response == "ID":
|
367
378
|
self._on_id(hostname, msg.payload)
|
379
|
+
elif response == "CALLID":
|
380
|
+
self._on_call_id(hostname, msg.payload)
|
368
381
|
|
369
382
|
def seek(self, host: str, disk_id: int, offset: int, flength: int, optimization_strategy: int) -> None:
|
370
383
|
length = int(flength / self.factor)
|
@@ -517,6 +517,7 @@ class MicrosoftDefenderPlugin(plugin.Plugin):
|
|
517
517
|
regf_mtime=exclusion_type_subkey.timestamp,
|
518
518
|
type=exclusion_type,
|
519
519
|
value=exclusion_value,
|
520
|
+
_target=self.target,
|
520
521
|
)
|
521
522
|
|
522
523
|
def _mplog_processimage(self, data: dict) -> Iterator[DefenderMPLogProcessImageRecord]:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: dissect.target
|
3
|
-
Version: 3.20.
|
3
|
+
Version: 3.20.dev4
|
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
|
@@ -88,7 +88,7 @@ dissect/target/loaders/kape.py,sha256=t5TfrGLqPeIpUUpXzIl6aHsqXMEGDqJ5YwDCs07DiB
|
|
88
88
|
dissect/target/loaders/libvirt.py,sha256=_3EFIytMGbiLMISHx4QXVrDebsRO6J6sMkE3TH68qsg,1374
|
89
89
|
dissect/target/loaders/local.py,sha256=Ul-LCd_fY7SyWOVR6nH-NqbkuNpxoZVmffwrkvQElU8,16453
|
90
90
|
dissect/target/loaders/log.py,sha256=cCkDIRS4aPlX3U-n_jUKaI2FPSV3BDpfqKceaU7rBbo,1507
|
91
|
-
dissect/target/loaders/mqtt.py,sha256=
|
91
|
+
dissect/target/loaders/mqtt.py,sha256=28gmDFZ-9ikR2NXJ2mClUhXqH_YiAk1JpK-5yChmBjY,17095
|
92
92
|
dissect/target/loaders/multiraw.py,sha256=4a3ZST0NwjnfPDxHkcEfAcX2ddUlT_C-rcrMHNg1wp4,1046
|
93
93
|
dissect/target/loaders/ova.py,sha256=6h4O-7i87J394C6KgLsPkdXRAKNwtPubzLNS3vBGs7U,744
|
94
94
|
dissect/target/loaders/overlay.py,sha256=tj99HKvNG5_JbGfb1WCv4KNSbXXSnEcPQY5XT-JUxn8,992
|
@@ -270,7 +270,7 @@ dissect/target/plugins/os/windows/catroot.py,sha256=QVwMF5nuMzCkWnoOMs5BkwYoKN61
|
|
270
270
|
dissect/target/plugins/os/windows/cim.py,sha256=jsrpu6TZpBUh7VWI9AV2Ib5bebTwsvqOwRfa5gjJd7c,3056
|
271
271
|
dissect/target/plugins/os/windows/clfs.py,sha256=begVsZ-CY97Ksh6S1g03LjyBgu8ERY2hfNDWYPj0GXI,4872
|
272
272
|
dissect/target/plugins/os/windows/datetime.py,sha256=YKHUZU6lkKJocq15y0yCwvIIOb1Ej-kfvEBmHbrdIGw,9467
|
273
|
-
dissect/target/plugins/os/windows/defender.py,sha256=
|
273
|
+
dissect/target/plugins/os/windows/defender.py,sha256=Z1KAwSiTEgzs2cS7BW0Rttc3gcVKCCbiwKvnenxU_E8,32761
|
274
274
|
dissect/target/plugins/os/windows/env.py,sha256=-u9F9xWy6PUbQmu5Tv_MDoVmy6YB-7CbHokIK_T3S44,13891
|
275
275
|
dissect/target/plugins/os/windows/generic.py,sha256=BSvDPfB9faU0uquMj0guw5tnR_97Nn0XAEE4k05BFSQ,22273
|
276
276
|
dissect/target/plugins/os/windows/jumplist.py,sha256=3gZk6O1B3lKK2Jxe0B-HapOCEehk94CYNvCVDpQC9nQ,11773
|
@@ -364,10 +364,10 @@ dissect/target/volumes/luks.py,sha256=OmCMsw6rCUXG1_plnLVLTpsvE1n_6WtoRUGQbpmu1z
|
|
364
364
|
dissect/target/volumes/lvm.py,sha256=wwQVR9I3G9YzmY6UxFsH2Y4MXGBcKL9aayWGCDTiWMU,2269
|
365
365
|
dissect/target/volumes/md.py,sha256=7ShPtusuLGaIv27SvEETtgsuoQyAa4iAAeOR1NEaajI,1689
|
366
366
|
dissect/target/volumes/vmfs.py,sha256=-LoUbn9WNwTtLi_4K34uV_-wDw2W5hgaqxZNj4UmqAQ,1730
|
367
|
-
dissect.target-3.20.
|
368
|
-
dissect.target-3.20.
|
369
|
-
dissect.target-3.20.
|
370
|
-
dissect.target-3.20.
|
371
|
-
dissect.target-3.20.
|
372
|
-
dissect.target-3.20.
|
373
|
-
dissect.target-3.20.
|
367
|
+
dissect.target-3.20.dev4.dist-info/COPYRIGHT,sha256=m-9ih2RVhMiXHI2bf_oNSSgHgkeIvaYRVfKTwFbnJPA,301
|
368
|
+
dissect.target-3.20.dev4.dist-info/LICENSE,sha256=DZak_2itbUtvHzD3E7GNUYSRK6jdOJ-GqncQ2weavLA,34523
|
369
|
+
dissect.target-3.20.dev4.dist-info/METADATA,sha256=-UKtuhQiUY4OhJbAtGRU1GcyyCoHAHqkHJs51thHJOg,12896
|
370
|
+
dissect.target-3.20.dev4.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
|
371
|
+
dissect.target-3.20.dev4.dist-info/entry_points.txt,sha256=BWuxAb_6AvUAQpIQOQU0IMTlaF6TDht2AIZK8bHd-zE,492
|
372
|
+
dissect.target-3.20.dev4.dist-info/top_level.txt,sha256=Mn-CQzEYsAbkxrUI0TnplHuXnGVKzxpDw_po_sXpvv4,8
|
373
|
+
dissect.target-3.20.dev4.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|