dissect.target 3.17.dev5__py3-none-any.whl → 3.17.dev6__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 +4 -0
- {dissect.target-3.17.dev5.dist-info → dissect.target-3.17.dev6.dist-info}/METADATA +1 -1
- {dissect.target-3.17.dev5.dist-info → dissect.target-3.17.dev6.dist-info}/RECORD +8 -8
- {dissect.target-3.17.dev5.dist-info → dissect.target-3.17.dev6.dist-info}/COPYRIGHT +0 -0
- {dissect.target-3.17.dev5.dist-info → dissect.target-3.17.dev6.dist-info}/LICENSE +0 -0
- {dissect.target-3.17.dev5.dist-info → dissect.target-3.17.dev6.dist-info}/WHEEL +0 -0
- {dissect.target-3.17.dev5.dist-info → dissect.target-3.17.dev6.dist-info}/entry_points.txt +0 -0
- {dissect.target-3.17.dev5.dist-info → dissect.target-3.17.dev6.dist-info}/top_level.txt +0 -0
dissect/target/loaders/mqtt.py
CHANGED
@@ -137,6 +137,7 @@ class Broker:
|
|
137
137
|
self.certificate_file = crt
|
138
138
|
self.cacert_file = ca
|
139
139
|
self.case = case
|
140
|
+
self.command = kwargs.get("command", None)
|
140
141
|
|
141
142
|
@suppress
|
142
143
|
def read(self, host: str, disk_id: int, seek_address: int, read_length: int) -> SeekMessage:
|
@@ -182,6 +183,8 @@ class Broker:
|
|
182
183
|
self.topo[key].append(payload.decode("utf-8"))
|
183
184
|
self.mqtt_client.subscribe(f"{self.case}/{host}/DISKS")
|
184
185
|
self.mqtt_client.subscribe(f"{self.case}/{host}/READ/#")
|
186
|
+
if self.command is not None:
|
187
|
+
self.mqtt_client.publish(f"{self.case}/{host}/COMM", self.command.encode("utf-8"))
|
185
188
|
time.sleep(1)
|
186
189
|
|
187
190
|
def _on_log(self, client: mqtt.Client, userdata: Any, log_level: int, message: str) -> None:
|
@@ -245,6 +248,7 @@ class Broker:
|
|
245
248
|
@arg("--mqtt-key", dest="key", help="private key file")
|
246
249
|
@arg("--mqtt-crt", dest="crt", help="client certificate file")
|
247
250
|
@arg("--mqtt-ca", dest="ca", help="certificate authority file")
|
251
|
+
@arg("--mqtt-command", dest="command", help="direct command to client(s)")
|
248
252
|
class MQTTLoader(Loader):
|
249
253
|
"""Load remote targets through a broker."""
|
250
254
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: dissect.target
|
3
|
-
Version: 3.17.
|
3
|
+
Version: 3.17.dev6
|
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
|
@@ -84,7 +84,7 @@ dissect/target/loaders/itunes.py,sha256=69aMTQiiGYpmD_EYSmf9mO1re8C3jAZIEStmwlMx
|
|
84
84
|
dissect/target/loaders/kape.py,sha256=t5TfrGLqPeIpUUpXzIl6aHsqXMEGDqJ5YwDCs07DiBA,1237
|
85
85
|
dissect/target/loaders/local.py,sha256=Ul-LCd_fY7SyWOVR6nH-NqbkuNpxoZVmffwrkvQElU8,16453
|
86
86
|
dissect/target/loaders/log.py,sha256=cCkDIRS4aPlX3U-n_jUKaI2FPSV3BDpfqKceaU7rBbo,1507
|
87
|
-
dissect/target/loaders/mqtt.py,sha256=
|
87
|
+
dissect/target/loaders/mqtt.py,sha256=qEP1Fe4eQU1_sYPrwc4IXXK0A6k9ygEoMUUUXaON344,10214
|
88
88
|
dissect/target/loaders/multiraw.py,sha256=4a3ZST0NwjnfPDxHkcEfAcX2ddUlT_C-rcrMHNg1wp4,1046
|
89
89
|
dissect/target/loaders/ova.py,sha256=6h4O-7i87J394C6KgLsPkdXRAKNwtPubzLNS3vBGs7U,744
|
90
90
|
dissect/target/loaders/ovf.py,sha256=ELMq6J2y6cPKbp7pjWAqMMnFYefWxXNqzIiAQdvGGXQ,1061
|
@@ -336,10 +336,10 @@ dissect/target/volumes/luks.py,sha256=OmCMsw6rCUXG1_plnLVLTpsvE1n_6WtoRUGQbpmu1z
|
|
336
336
|
dissect/target/volumes/lvm.py,sha256=wwQVR9I3G9YzmY6UxFsH2Y4MXGBcKL9aayWGCDTiWMU,2269
|
337
337
|
dissect/target/volumes/md.py,sha256=j1K1iKmspl0C_OJFc7-Q1BMWN2OCC5EVANIgVlJ_fIE,1673
|
338
338
|
dissect/target/volumes/vmfs.py,sha256=-LoUbn9WNwTtLi_4K34uV_-wDw2W5hgaqxZNj4UmqAQ,1730
|
339
|
-
dissect.target-3.17.
|
340
|
-
dissect.target-3.17.
|
341
|
-
dissect.target-3.17.
|
342
|
-
dissect.target-3.17.
|
343
|
-
dissect.target-3.17.
|
344
|
-
dissect.target-3.17.
|
345
|
-
dissect.target-3.17.
|
339
|
+
dissect.target-3.17.dev6.dist-info/COPYRIGHT,sha256=m-9ih2RVhMiXHI2bf_oNSSgHgkeIvaYRVfKTwFbnJPA,301
|
340
|
+
dissect.target-3.17.dev6.dist-info/LICENSE,sha256=DZak_2itbUtvHzD3E7GNUYSRK6jdOJ-GqncQ2weavLA,34523
|
341
|
+
dissect.target-3.17.dev6.dist-info/METADATA,sha256=0z30PmDcl6WROJjWUPDfWBNB5JhLEW01_fox4JDTq8E,11225
|
342
|
+
dissect.target-3.17.dev6.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
343
|
+
dissect.target-3.17.dev6.dist-info/entry_points.txt,sha256=tvFPa-Ap-gakjaPwRc6Fl6mxHzxEZ_arAVU-IUYeo_s,447
|
344
|
+
dissect.target-3.17.dev6.dist-info/top_level.txt,sha256=Mn-CQzEYsAbkxrUI0TnplHuXnGVKzxpDw_po_sXpvv4,8
|
345
|
+
dissect.target-3.17.dev6.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|