dissect.target 3.9.dev5__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.
- dissect/target/helpers/network_managers.py +4 -4
- {dissect.target-3.9.dev5.dist-info → dissect.target-3.9.dev6.dist-info}/METADATA +1 -1
- {dissect.target-3.9.dev5.dist-info → dissect.target-3.9.dev6.dist-info}/RECORD +8 -8
- {dissect.target-3.9.dev5.dist-info → dissect.target-3.9.dev6.dist-info}/COPYRIGHT +0 -0
- {dissect.target-3.9.dev5.dist-info → dissect.target-3.9.dev6.dist-info}/LICENSE +0 -0
- {dissect.target-3.9.dev5.dist-info → dissect.target-3.9.dev6.dist-info}/WHEEL +0 -0
- {dissect.target-3.9.dev5.dist-info → dissect.target-3.9.dev6.dist-info}/entry_points.txt +0 -0
- {dissect.target-3.9.dev5.dist-info → dissect.target-3.9.dev6.dist-info}/top_level.txt +0 -0
@@ -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
|
-
|
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
|
-
|
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
|
-
|
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.
|
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
|
@@ -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=
|
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.
|
258
|
-
dissect.target-3.9.
|
259
|
-
dissect.target-3.9.
|
260
|
-
dissect.target-3.9.
|
261
|
-
dissect.target-3.9.
|
262
|
-
dissect.target-3.9.
|
263
|
-
dissect.target-3.9.
|
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,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|