dissect.target 3.9.dev4__py3-none-any.whl → 3.9.dev6__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -770,7 +770,7 @@ class VirtualDirectory(FilesystemEntry):
770
770
 
771
771
  self.entries[name] = entry
772
772
 
773
- def get(self, path) -> FilesystemEntry:
773
+ def get(self, path: str) -> FilesystemEntry:
774
774
  return self.fs.get(path, relentry=self)
775
775
 
776
776
  def iterdir(self) -> Iterator[str]:
@@ -516,25 +516,25 @@ def parse_unix_dhcp_log_messages(target) -> list[str]:
516
516
  line = record.message
517
517
 
518
518
  # Ubuntu DHCP
519
- if "DHCPv4" in line or "DHCPv6" in line:
519
+ if ("DHCPv4" in line or "DHCPv6" in line) and " address " in line and " via " in line:
520
520
  ip = line.split(" address ")[1].split(" via ")[0].strip().split("/")[0]
521
521
  if ip not in ips:
522
522
  ips.append(ip)
523
523
 
524
524
  # Ubuntu DHCP NetworkManager
525
- if "option ip_address" in line and ("dhcp4" in line or "dhcp6" in line):
525
+ elif "option ip_address" in line and ("dhcp4" in line or "dhcp6" in line) and "=> '" in line:
526
526
  ip = line.split("=> '")[1].replace("'", "").strip()
527
527
  if ip not in ips:
528
528
  ips.append(ip)
529
529
 
530
530
  # Debian and CentOS dhclient
531
- if record.daemon == "dhclient" and "bound to" in line:
531
+ elif record.daemon == "dhclient" and "bound to" in line:
532
532
  ip = line.split("bound to")[1].split(" ")[1].strip()
533
533
  if ip not in ips:
534
534
  ips.append(ip)
535
535
 
536
536
  # CentOS DHCP and general NetworkManager
537
- if " address " in line and ("dhcp4" in line or "dhcp6" in line):
537
+ elif " address " in line and ("dhcp4" in line or "dhcp6" in line):
538
538
  ip = line.split(" address ")[1].strip()
539
539
  if ip not in ips:
540
540
  ips.append(ip)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dissect.target
3
- Version: 3.9.dev4
3
+ Version: 3.9.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
@@ -1,7 +1,7 @@
1
1
  dissect/target/__init__.py,sha256=Oc7ounTgq2hE4nR6YcNabetc7SQA40ldSa35VEdZcQU,63
2
2
  dissect/target/container.py,sha256=udYYpr2qZfNdP3_iwToh8kvjWJlIyV0MUNrXJ-NjYdM,7668
3
3
  dissect/target/exceptions.py,sha256=w3qNa4dtGpxUkOCfmAQtvseQrpQq9qmO9wIbztRlIDQ,2273
4
- dissect/target/filesystem.py,sha256=rnq9F3QQyesrWwGPhYPVHQQC7jODkBqjJSZEVFTHHWA,46274
4
+ dissect/target/filesystem.py,sha256=NXDWUd4Q_Jrov8SYoBTcmXF_3hvhdbSRLSVG-pP4Mqg,46279
5
5
  dissect/target/loader.py,sha256=e7MsFZyCmRXEADCaBymbscvMszlBNMCnHHk99oKp2xs,6862
6
6
  dissect/target/plugin.py,sha256=qF0okKg7TxYfiLVxpCWhb18gvDsNtr9nCYD7kSeaYIU,31955
7
7
  dissect/target/report.py,sha256=06uiP4MbNI8cWMVrC1SasNS-Yg6ptjVjckwj8Yhe0Js,7958
@@ -44,7 +44,7 @@ dissect/target/helpers/lazy.py,sha256=4VnF-fUKor1K77Z09F4YnLpxM9PMHULzS9SJwVOnUS
44
44
  dissect/target/helpers/loaderutil.py,sha256=txtY6uE3vctiHH_V75pwe3OB1qcQWuf54Qdk5gzkCZc,2146
45
45
  dissect/target/helpers/localeutil.py,sha256=Y4Fh4jDSGfm5356xSLMriUCN8SZP_FAHg_iodkAxNq4,1504
46
46
  dissect/target/helpers/mount.py,sha256=KdmMJX0E5svZr9xURAp6knbK8bngxQGIyB_n2fzVEEs,2734
47
- dissect/target/helpers/network_managers.py,sha256=v4yf1hW4pFBaOz5vQ6ieCqhwrJ-Q87QeJAt7N70Mlzg,24476
47
+ dissect/target/helpers/network_managers.py,sha256=jzrcblmDthl1o5-dP-Qh7mroAzcMzmLrnNZaE5trrJ4,24547
48
48
  dissect/target/helpers/record.py,sha256=zXg4tgPVpMB4U3Z8VCN_VeuOKTFAHQLMkw5fqZ5to-4,4798
49
49
  dissect/target/helpers/regutil.py,sha256=iSmJDCHNaicYfJZxHdMh3GseFEdo6UpaHm_YSjQ3n38,21820
50
50
  dissect/target/helpers/shell_folder_ids.py,sha256=Behhb8oh0kMxrEk6YYKYigCDZe8Hw5QS6iK_d2hTs2Y,24978
@@ -254,10 +254,10 @@ dissect/target/volumes/bde.py,sha256=gYGg5yF9MNARwNzEkrEfZmKkxyZW4rhLkpdnPJCbhGk
254
254
  dissect/target/volumes/disk.py,sha256=95grSsPt1BLVpKwTclwQYzPFGKTkFFqapIk0RoGWf38,968
255
255
  dissect/target/volumes/lvm.py,sha256=zXAfszxNR6tOGrKAtAa_E-JhjI-sXQyR4VYLXD-kqCw,1616
256
256
  dissect/target/volumes/vmfs.py,sha256=mlAJ8278tYaoRjk1u6tFFlCaDQUrVu5ZZE4ikiFvxi8,1707
257
- dissect.target-3.9.dev4.dist-info/COPYRIGHT,sha256=m-9ih2RVhMiXHI2bf_oNSSgHgkeIvaYRVfKTwFbnJPA,301
258
- dissect.target-3.9.dev4.dist-info/LICENSE,sha256=DZak_2itbUtvHzD3E7GNUYSRK6jdOJ-GqncQ2weavLA,34523
259
- dissect.target-3.9.dev4.dist-info/METADATA,sha256=9ggahfCt_XQUvUpo6UPIvOeImwDrWdVkced0-r1_x7A,9751
260
- dissect.target-3.9.dev4.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
261
- dissect.target-3.9.dev4.dist-info/entry_points.txt,sha256=tvFPa-Ap-gakjaPwRc6Fl6mxHzxEZ_arAVU-IUYeo_s,447
262
- dissect.target-3.9.dev4.dist-info/top_level.txt,sha256=Mn-CQzEYsAbkxrUI0TnplHuXnGVKzxpDw_po_sXpvv4,8
263
- dissect.target-3.9.dev4.dist-info/RECORD,,
257
+ dissect.target-3.9.dev6.dist-info/COPYRIGHT,sha256=m-9ih2RVhMiXHI2bf_oNSSgHgkeIvaYRVfKTwFbnJPA,301
258
+ dissect.target-3.9.dev6.dist-info/LICENSE,sha256=DZak_2itbUtvHzD3E7GNUYSRK6jdOJ-GqncQ2weavLA,34523
259
+ dissect.target-3.9.dev6.dist-info/METADATA,sha256=gqfaYSMWs78cm0_j7cwoAw1-tXDHt0ompeBiKM4H4tA,9751
260
+ dissect.target-3.9.dev6.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
261
+ dissect.target-3.9.dev6.dist-info/entry_points.txt,sha256=tvFPa-Ap-gakjaPwRc6Fl6mxHzxEZ_arAVU-IUYeo_s,447
262
+ dissect.target-3.9.dev6.dist-info/top_level.txt,sha256=Mn-CQzEYsAbkxrUI0TnplHuXnGVKzxpDw_po_sXpvv4,8
263
+ dissect.target-3.9.dev6.dist-info/RECORD,,