dissect.hypervisor 3.13.dev4__py3-none-any.whl → 3.14.dev2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- from dissect import cstruct
1
+ from dissect.cstruct import cstruct
2
2
 
3
3
  vma_def = """
4
4
  #define VMA_BLOCK_BITS 12
@@ -53,8 +53,7 @@ struct VmaExtentHeader {
53
53
  };
54
54
  """
55
55
 
56
- c_vma = cstruct.cstruct(endian=">")
57
- c_vma.load(vma_def)
56
+ c_vma = cstruct(endian=">").load(vma_def)
58
57
 
59
58
 
60
59
  VMA_MAGIC = b"VMA\x00"
@@ -1,4 +1,4 @@
1
- from dissect import cstruct
1
+ from dissect.cstruct import cstruct
2
2
 
3
3
  hyperv_def = """
4
4
  /* ======== File header ======== */
@@ -112,8 +112,7 @@ struct HyperVStorageKeyTableEntryHeader {
112
112
  };
113
113
  """
114
114
 
115
- c_hyperv = cstruct.cstruct()
116
- c_hyperv.load(hyperv_def)
115
+ c_hyperv = cstruct().load(hyperv_def)
117
116
 
118
117
  ObjectEntryType = c_hyperv.ObjectEntryType
119
118
  KeyDataType = c_hyperv.KeyDataType
@@ -3,7 +3,7 @@
3
3
  # - https://github.com/qemu/qemu/blob/master/docs/interop/parallels.txt
4
4
 
5
5
 
6
- from dissect import cstruct
6
+ from dissect.cstruct import cstruct
7
7
 
8
8
  hdd_def = """
9
9
  /* Compressed disk v1 signature */
@@ -62,7 +62,6 @@ struct pvd_dirty_bitmap_raw {
62
62
  };
63
63
  """
64
64
 
65
- c_hdd = cstruct.cstruct()
66
- c_hdd.load(hdd_def)
65
+ c_hdd = cstruct().load(hdd_def)
67
66
 
68
67
  SECTOR_SIZE = c_hdd.SECTOR_SIZE
@@ -1,4 +1,4 @@
1
- from dissect import cstruct
1
+ from dissect.cstruct import cstruct
2
2
 
3
3
  qcow2_def = """
4
4
  #define MIN_CLUSTER_BITS 9
@@ -136,8 +136,7 @@ enum QCow2SubclusterType {
136
136
  };
137
137
  """
138
138
 
139
- c_qcow2 = cstruct.cstruct(endian=">")
140
- c_qcow2.load(qcow2_def)
139
+ c_qcow2 = cstruct(endian=">").load(qcow2_def)
141
140
 
142
141
  QCOW2_MAGIC = 0x514649FB
143
142
  QCOW2_MAGIC_BYTES = c_qcow2.uint32.dumps(QCOW2_MAGIC)
@@ -1,4 +1,4 @@
1
- from dissect import cstruct
1
+ from dissect.cstruct import cstruct
2
2
 
3
3
  # https://www.virtualbox.org/browser/vbox/trunk/src/VBox/Storage/VDICore.h
4
4
  # https://forums.virtualbox.org/viewtopic.php?t=8046
@@ -81,8 +81,7 @@ struct HeaderDescriptor {
81
81
  };
82
82
  """
83
83
 
84
- c_vdi = cstruct.cstruct()
85
- c_vdi.load(vdi_def)
84
+ c_vdi = cstruct().load(vdi_def)
86
85
 
87
86
  VDI_SIGNATURE = 0xBEDA107F
88
87
 
@@ -1,4 +1,4 @@
1
- from dissect import cstruct
1
+ from dissect.cstruct import cstruct
2
2
 
3
3
  vhd_def = """
4
4
  struct footer {
@@ -38,14 +38,13 @@ struct dynamic_header {
38
38
  uint32 checksum;
39
39
  char parent_unique_id[16];
40
40
  uint32 parent_timestamp;
41
- uint32 reserved;
41
+ uint32 reserved1;
42
42
  char parent_unicode_name[512];
43
43
  parent_locator parent_locators[8];
44
- char reserved[256];
44
+ char reserved2[256];
45
45
  };
46
46
  """
47
47
 
48
- c_vhd = cstruct.cstruct(endian=">")
49
- c_vhd.load(vhd_def)
48
+ c_vhd = cstruct(endian=">").load(vhd_def)
50
49
 
51
50
  SECTOR_SIZE = 512
@@ -1,6 +1,6 @@
1
1
  from uuid import UUID
2
2
 
3
- from dissect import cstruct
3
+ from dissect.cstruct import cstruct
4
4
 
5
5
  vhdx_def = """
6
6
  #define PAYLOAD_BLOCK_NOT_PRESENT 0
@@ -99,8 +99,7 @@ struct parent_locator_entry {
99
99
  };
100
100
  """
101
101
 
102
- c_vhdx = cstruct.cstruct()
103
- c_vhdx.load(vhdx_def)
102
+ c_vhdx = cstruct().load(vhdx_def)
104
103
 
105
104
  ALIGNMENT = 64 * 1024
106
105
  MB = 1024 * 1024
@@ -1,6 +1,6 @@
1
1
  import struct
2
2
 
3
- from dissect import cstruct
3
+ from dissect.cstruct import cstruct
4
4
 
5
5
  vmdk_def = """
6
6
  typedef struct {
@@ -132,8 +132,7 @@ typedef struct {
132
132
  #define GRAIN_MARKER_PROGRESS 4
133
133
  """
134
134
 
135
- c_vmdk = cstruct.cstruct()
136
- c_vmdk.load(vmdk_def)
135
+ c_vmdk = cstruct().load(vmdk_def)
137
136
 
138
137
  SECTOR_SIZE = 512
139
138
 
@@ -25,7 +25,7 @@ try:
25
25
  except ImportError:
26
26
  HAS_PYCRYPTODOME = False
27
27
 
28
- from dissect import cstruct
28
+ from dissect.cstruct import cstruct
29
29
  from dissect.util.stream import RangeStream
30
30
 
31
31
  c_def = """
@@ -69,8 +69,7 @@ enum AttributeType : uint8 {
69
69
  Bytes = 0xC
70
70
  };
71
71
  """
72
- c_envelope = cstruct.cstruct()
73
- c_envelope.load(c_def)
72
+ c_envelope = cstruct().load(c_def)
74
73
 
75
74
  FILE_HEADER_MAGIC = b"DataTransformEnvelope"
76
75
  FOOTER_AEAD_MAGIC = b"DataTransformAeadFooter"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dissect.hypervisor
3
- Version: 3.13.dev4
3
+ Version: 3.14.dev2
4
4
  Summary: A Dissect module implementing parsers for various hypervisor disk, backup and configuration files
5
5
  Author-email: Dissect Team <dissect@fox-it.com>
6
6
  License: Affero General Public License v3
@@ -23,8 +23,12 @@ Description-Content-Type: text/markdown
23
23
  License-File: LICENSE
24
24
  License-File: COPYRIGHT
25
25
  Requires-Dist: defusedxml
26
- Requires-Dist: dissect.cstruct <4.0.dev,>=3.0.dev
27
- Requires-Dist: dissect.util <4.0.dev,>=3.0.dev
26
+ Requires-Dist: dissect.cstruct <5,>=4.dev
27
+ Requires-Dist: dissect.util <4,>=3
28
+ Provides-Extra: dev
29
+ Requires-Dist: dissect.hypervisor[full] ; extra == 'dev'
30
+ Requires-Dist: dissect.cstruct <5.0.dev,>=4.0.dev ; extra == 'dev'
31
+ Requires-Dist: dissect.util <4.0.dev,>=3.0.dev ; extra == 'dev'
28
32
  Provides-Extra: full
29
33
  Requires-Dist: pycryptodome ; extra == 'full'
30
34
  Requires-Dist: rich ; extra == 'full'
@@ -1,23 +1,23 @@
1
1
  dissect/hypervisor/__init__.py,sha256=0wWcbmVN8F-6inSkNhEdxhnWVt2_oOxwZQC2ANQzNRM,433
2
2
  dissect/hypervisor/exceptions.py,sha256=7DzM0r3_-a7t7pM1V7EGR8gQZBVdxfCOYyWOtTXMc0s,163
3
3
  dissect/hypervisor/backup/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- dissect/hypervisor/backup/c_vma.py,sha256=MkIbF43GSh9Xm7FPcTOkoiOeTcbtmVFxYecW6ArHMb0,1487
4
+ dissect/hypervisor/backup/c_vma.py,sha256=H85EQ1vyy9ew1nGRA6mkvir1zbCutXSjIvQRa6kKqnM,1481
5
5
  dissect/hypervisor/backup/vma.py,sha256=C72t_qjseVICQh4P4nOOqPFWZpth2raWSSZZE4WGkSU,9039
6
6
  dissect/hypervisor/backup/xva.py,sha256=xfP9KzxGUXbnrg-JqFdGeuBoHWMY2xVXyEQe543jptw,4572
7
7
  dissect/hypervisor/descriptor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
- dissect/hypervisor/descriptor/c_hyperv.py,sha256=rNb1MbO_epg5_D3KnRDxc0tcbHyFVeH10x4jELsCfIs,4378
8
+ dissect/hypervisor/descriptor/c_hyperv.py,sha256=QsMIn5sLeirmHM6mfwEpXoUpl0rJYTwE7VJpAxE3-0w,4369
9
9
  dissect/hypervisor/descriptor/hyperv.py,sha256=MQTpcAK9oxiiCyCSSrLNElmQ0lS1vzAcXqImDPmhLQ0,17692
10
10
  dissect/hypervisor/descriptor/ovf.py,sha256=99Q0IO9sCs9g-N8iFSkwQYFsBK17Fcqsdex6JqJFJdc,1815
11
11
  dissect/hypervisor/descriptor/pvs.py,sha256=m4sjaCU0dcoB4zTBWlxo2qrOD0kuSmEe97-8UpcFdPI,588
12
12
  dissect/hypervisor/descriptor/vbox.py,sha256=mPmgD0Hyr5c7lFCnZjt0mUS1h490LlRiTyE4CiBW6tc,509
13
13
  dissect/hypervisor/descriptor/vmx.py,sha256=LABtrrh-LYwHxsP07iZ6F2zoKiVXWxaxwCe5ArsDf-M,12500
14
14
  dissect/hypervisor/disk/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
- dissect/hypervisor/disk/c_hdd.py,sha256=xQ8CvKo5X6BY__yV1ioyUMIxxZL8xkJ_q59vzFcgaBA,2207
16
- dissect/hypervisor/disk/c_qcow2.py,sha256=9lqidhbLBWA3aIXXLlema7GykT2KAVLRsTQih0vBC1U,5055
17
- dissect/hypervisor/disk/c_vdi.py,sha256=BsjvtU8lwsizg1cvGlO8Lz9avy2xfyWREEAF8Ip9Hz0,3813
18
- dissect/hypervisor/disk/c_vhd.py,sha256=Whzhbo0BrAA6Vbmh2ZQVmwy9-mQ8jGQm0JHnriizOzM,1461
19
- dissect/hypervisor/disk/c_vhdx.py,sha256=IWHcyDbWDOrDTUkkWfmeHjNF7_NhgErlSgWOzuJFy_M,2891
20
- dissect/hypervisor/disk/c_vmdk.py,sha256=jM_fdrx4eu-ZoQiEmzw6hamqPJwf0YgBKgiS5iijUZI,5959
15
+ dissect/hypervisor/disk/c_hdd.py,sha256=2kmoZyFgXB2JL7m7iPEgMzSD5oD5WFGhmF1VjH6Hzuk,2201
16
+ dissect/hypervisor/disk/c_qcow2.py,sha256=wX2haLBSzTk4T_PeFc7KzzwkSFWxUsEGWwyoR9wa2q4,5047
17
+ dissect/hypervisor/disk/c_vdi.py,sha256=TFjO9s19JgA6Hvv0LjHFcoJu08G7qi0SpVxlxBcH45w,3807
18
+ dissect/hypervisor/disk/c_vhd.py,sha256=4lxGjUEyFR3OCKc7E0cjdTXkOr1LG0zdnPuqo1h3_L0,1457
19
+ dissect/hypervisor/disk/c_vhdx.py,sha256=CAI1WC0E7D5clsTyO-2Dejdttp8_bBvTWK5Qa3rpxi0,2884
20
+ dissect/hypervisor/disk/c_vmdk.py,sha256=ZnGYognILB9EgZE_bgWCQrMxJOsQ1dDbPCLzTbSJNA4,5952
21
21
  dissect/hypervisor/disk/hdd.py,sha256=p4oFLD9X0v39htwSU4pxPBJ37CnAiufi8vgx4T2o8sM,13023
22
22
  dissect/hypervisor/disk/qcow2.py,sha256=K4zstjte7SxX2psSbAj4YqwGeplfIvfbq5ScP4mzuvI,20245
23
23
  dissect/hypervisor/disk/vdi.py,sha256=_kX7ZGOVo_98ckMaiaDEmw4VjNgM57cY4YUSYrk2JGs,1851
@@ -28,12 +28,12 @@ dissect/hypervisor/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
28
28
  dissect/hypervisor/tools/envelope.py,sha256=6_RLtKmFnZ69fx8HlvFgsjDjNrfnXD73dgszpG1mYQE,967
29
29
  dissect/hypervisor/tools/vma.py,sha256=N8x4Yh45BM5MweLSriwhAfSegbjw_Ko4i2yayMWF3rw,5422
30
30
  dissect/hypervisor/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
31
- dissect/hypervisor/util/envelope.py,sha256=yt2FXRX2L5FUJ587oCMMmVUHqkuYiMbPRPMhH_mB_qk,10338
31
+ dissect/hypervisor/util/envelope.py,sha256=dRVyhtMTL5CKRxv40bAeRTrHx1MTOZ5czJbIV2brmL0,10327
32
32
  dissect/hypervisor/util/vmtar.py,sha256=oNJ-qTvQVOl7al_vExpg_T4LnGyE72O9hjOmQBiTKSA,1469
33
- dissect.hypervisor-3.13.dev4.dist-info/COPYRIGHT,sha256=EOOoIwk_inOMUD4c1ylpzMtYLjGzmc-MLEVAEdLLr20,305
34
- dissect.hypervisor-3.13.dev4.dist-info/LICENSE,sha256=DZak_2itbUtvHzD3E7GNUYSRK6jdOJ-GqncQ2weavLA,34523
35
- dissect.hypervisor-3.13.dev4.dist-info/METADATA,sha256=SXCnbx7Qvov_KYQzRF18fLOOXki6WpbT3C9FOo4D9ds,3274
36
- dissect.hypervisor-3.13.dev4.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
37
- dissect.hypervisor-3.13.dev4.dist-info/entry_points.txt,sha256=qwOrIPRV4bYsKo2sAZznUqegFTMu1sm7ld-o7w_h_5U,124
38
- dissect.hypervisor-3.13.dev4.dist-info/top_level.txt,sha256=Mn-CQzEYsAbkxrUI0TnplHuXnGVKzxpDw_po_sXpvv4,8
39
- dissect.hypervisor-3.13.dev4.dist-info/RECORD,,
33
+ dissect.hypervisor-3.14.dev2.dist-info/COPYRIGHT,sha256=EOOoIwk_inOMUD4c1ylpzMtYLjGzmc-MLEVAEdLLr20,305
34
+ dissect.hypervisor-3.14.dev2.dist-info/LICENSE,sha256=DZak_2itbUtvHzD3E7GNUYSRK6jdOJ-GqncQ2weavLA,34523
35
+ dissect.hypervisor-3.14.dev2.dist-info/METADATA,sha256=J4Wz4wrJHIoG_HwRvWdvmRRcC6-KumhkKui28H5pyKI,3462
36
+ dissect.hypervisor-3.14.dev2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
37
+ dissect.hypervisor-3.14.dev2.dist-info/entry_points.txt,sha256=qwOrIPRV4bYsKo2sAZznUqegFTMu1sm7ld-o7w_h_5U,124
38
+ dissect.hypervisor-3.14.dev2.dist-info/top_level.txt,sha256=Mn-CQzEYsAbkxrUI0TnplHuXnGVKzxpDw_po_sXpvv4,8
39
+ dissect.hypervisor-3.14.dev2.dist-info/RECORD,,