dissect.hypervisor 3.10.dev1__tar.gz → 3.11.dev1__tar.gz

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.
Files changed (92) hide show
  1. {dissect.hypervisor-3.10.dev1/dissect.hypervisor.egg-info → dissect.hypervisor-3.11.dev1}/PKG-INFO +1 -1
  2. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/dissect/hypervisor/__init__.py +1 -2
  3. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1/dissect.hypervisor.egg-info}/PKG-INFO +1 -1
  4. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/dissect.hypervisor.egg-info/SOURCES.txt +0 -2
  5. dissect.hypervisor-3.10.dev1/dissect/hypervisor/backup/c_wim.py +0 -62
  6. dissect.hypervisor-3.10.dev1/dissect/hypervisor/backup/wim.py +0 -11
  7. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/COPYRIGHT +0 -0
  8. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/LICENSE +0 -0
  9. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/MANIFEST.in +0 -0
  10. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/README.md +0 -0
  11. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/dissect/hypervisor/backup/__init__.py +0 -0
  12. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/dissect/hypervisor/backup/c_vma.py +0 -0
  13. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/dissect/hypervisor/backup/vma.py +0 -0
  14. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/dissect/hypervisor/backup/xva.py +0 -0
  15. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/dissect/hypervisor/descriptor/__init__.py +0 -0
  16. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/dissect/hypervisor/descriptor/c_hyperv.py +0 -0
  17. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/dissect/hypervisor/descriptor/hyperv.py +0 -0
  18. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/dissect/hypervisor/descriptor/ovf.py +0 -0
  19. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/dissect/hypervisor/descriptor/pvs.py +0 -0
  20. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/dissect/hypervisor/descriptor/vbox.py +0 -0
  21. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/dissect/hypervisor/descriptor/vmx.py +0 -0
  22. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/dissect/hypervisor/disk/__init__.py +0 -0
  23. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/dissect/hypervisor/disk/c_hdd.py +0 -0
  24. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/dissect/hypervisor/disk/c_qcow2.py +0 -0
  25. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/dissect/hypervisor/disk/c_vdi.py +0 -0
  26. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/dissect/hypervisor/disk/c_vhd.py +0 -0
  27. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/dissect/hypervisor/disk/c_vhdx.py +0 -0
  28. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/dissect/hypervisor/disk/c_vmdk.py +0 -0
  29. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/dissect/hypervisor/disk/hdd.py +0 -0
  30. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/dissect/hypervisor/disk/qcow2.py +0 -0
  31. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/dissect/hypervisor/disk/vdi.py +0 -0
  32. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/dissect/hypervisor/disk/vhd.py +0 -0
  33. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/dissect/hypervisor/disk/vhdx.py +0 -0
  34. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/dissect/hypervisor/disk/vmdk.py +0 -0
  35. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/dissect/hypervisor/exceptions.py +0 -0
  36. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/dissect/hypervisor/tools/__init__.py +0 -0
  37. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/dissect/hypervisor/tools/envelope.py +0 -0
  38. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/dissect/hypervisor/tools/vma.py +0 -0
  39. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/dissect/hypervisor/util/__init__.py +0 -0
  40. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/dissect/hypervisor/util/envelope.py +0 -0
  41. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/dissect/hypervisor/util/vmtar.py +0 -0
  42. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/dissect.hypervisor.egg-info/dependency_links.txt +0 -0
  43. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/dissect.hypervisor.egg-info/entry_points.txt +0 -0
  44. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/dissect.hypervisor.egg-info/requires.txt +0 -0
  45. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/dissect.hypervisor.egg-info/top_level.txt +0 -0
  46. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/pyproject.toml +0 -0
  47. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/setup.cfg +0 -0
  48. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/__init__.py +0 -0
  49. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/conftest.py +0 -0
  50. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/data/differencing.avhdx.gz +0 -0
  51. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/data/dynamic.vhd.gz +0 -0
  52. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/data/dynamic.vhdx.gz +0 -0
  53. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/data/encrypted.vmx +0 -0
  54. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/data/encryption.info +0 -0
  55. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/data/expanding.hdd/DiskDescriptor.xml +0 -0
  56. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/data/expanding.hdd/expanding.hdd +0 -0
  57. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/data/expanding.hdd/expanding.hdd.0.{5fbaabe3-6958-40ff-92a7-860e329aab41}.hds.gz +0 -0
  58. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/data/fixed.vhd.gz +0 -0
  59. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/data/fixed.vhdx.gz +0 -0
  60. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/data/local.tgz.ve +0 -0
  61. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/data/plain.hdd/DiskDescriptor.xml +0 -0
  62. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/data/plain.hdd/plain.hdd +0 -0
  63. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/data/plain.hdd/plain.hdd.0.{5fbaabe3-6958-40ff-92a7-860e329aab41}.hds.gz +0 -0
  64. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/data/sesparse.vmdk.gz +0 -0
  65. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/data/split.hdd/DiskDescriptor.xml +0 -0
  66. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/data/split.hdd/split.hdd +0 -0
  67. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/data/split.hdd/split.hdd.0.{5fbaabe3-6958-40ff-92a7-860e329aab41}.hds.gz +0 -0
  68. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/data/split.hdd/split.hdd.1.{5fbaabe3-6958-40ff-92a7-860e329aab41}.hds.gz +0 -0
  69. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/data/split.hdd/split.hdd.2.{5fbaabe3-6958-40ff-92a7-860e329aab41}.hds.gz +0 -0
  70. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/data/split.hdd/split.hdd.3.{5fbaabe3-6958-40ff-92a7-860e329aab41}.hds.gz +0 -0
  71. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/data/split.hdd/split.hdd.4.{5fbaabe3-6958-40ff-92a7-860e329aab41}.hds.gz +0 -0
  72. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/data/split.hdd/split.hdd.5.{5fbaabe3-6958-40ff-92a7-860e329aab41}.hds.gz +0 -0
  73. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/data/test.VMRS +0 -0
  74. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/data/test.vgz +0 -0
  75. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/data/test.vma.gz +0 -0
  76. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/data/test.vmcx +0 -0
  77. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/docs/Makefile +0 -0
  78. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/docs/conf.py +0 -0
  79. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/docs/index.rst +0 -0
  80. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/test_envelope.py +0 -0
  81. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/test_hdd.py +0 -0
  82. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/test_hyperv.py +0 -0
  83. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/test_ovf.py +0 -0
  84. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/test_pvs.py +0 -0
  85. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/test_vbox.py +0 -0
  86. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/test_vhd.py +0 -0
  87. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/test_vhdx.py +0 -0
  88. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/test_vma.py +0 -0
  89. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/test_vmdk.py +0 -0
  90. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/test_vmtar.py +0 -0
  91. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tests/test_vmx.py +0 -0
  92. {dissect.hypervisor-3.10.dev1 → dissect.hypervisor-3.11.dev1}/tox.ini +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dissect.hypervisor
3
- Version: 3.10.dev1
3
+ Version: 3.11.dev1
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
@@ -1,4 +1,4 @@
1
- from dissect.hypervisor.backup import vma, wim, xva
1
+ from dissect.hypervisor.backup import vma, xva
2
2
  from dissect.hypervisor.descriptor import hyperv, ovf, pvs, vbox, vmx
3
3
  from dissect.hypervisor.disk import hdd, qcow2, vdi, vhd, vhdx, vmdk
4
4
  from dissect.hypervisor.util import envelope, vmtar
@@ -18,6 +18,5 @@ __all__ = [
18
18
  "vmdk",
19
19
  "vmtar",
20
20
  "vmx",
21
- "wim",
22
21
  "xva",
23
22
  ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dissect.hypervisor
3
- Version: 3.10.dev1
3
+ Version: 3.11.dev1
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
@@ -14,9 +14,7 @@ dissect/hypervisor/__init__.py
14
14
  dissect/hypervisor/exceptions.py
15
15
  dissect/hypervisor/backup/__init__.py
16
16
  dissect/hypervisor/backup/c_vma.py
17
- dissect/hypervisor/backup/c_wim.py
18
17
  dissect/hypervisor/backup/vma.py
19
- dissect/hypervisor/backup/wim.py
20
18
  dissect/hypervisor/backup/xva.py
21
19
  dissect/hypervisor/descriptor/__init__.py
22
20
  dissect/hypervisor/descriptor/c_hyperv.py
@@ -1,62 +0,0 @@
1
- from dissect import cstruct
2
-
3
- wim_def = """
4
- typedef char[16] GUID;
5
- typedef uint64 LARGE_INTEGER;
6
-
7
- #define FLAG_HEADER_RESERVED 0x00000001
8
- #define FLAG_HEADER_COMPRESSION 0x00000002
9
- #define FLAG_HEADER_READONLY 0x00000004
10
- #define FLAG_HEADER_SPANNED 0x00000008
11
- #define FLAG_HEADER_RESOURCE_ONLY 0x00000010
12
- #define FLAG_HEADER_METADATA_ONLY 0x00000020
13
- #define FLAG_HEADER_WRITE_IN_PROGRESS 0x00000040
14
- #define FLAG_HEADER_RP_FIX 0x00000080 // reparse point fixup
15
- #define FLAG_HEADER_COMPRESS_RESERVED 0x00010000
16
- #define FLAG_HEADER_COMPRESS_XPRESS 0x00020000
17
- #define FLAG_HEADER_COMPRESS_LZX 0x00040000
18
-
19
- typedef struct _RESHDR_BASE_DISK
20
- {
21
- union
22
- {
23
- ULONGLONG ullSize;
24
- struct
25
- {
26
- BYTE sizebytes[7];
27
- BYTE bFlags;
28
- };
29
- };
30
- LARGE_INTEGER liOffset;
31
- } RESHDR_BASE_DISK;
32
-
33
- typedef struct _RESHDR_DISK_SHORT
34
- {
35
- RESHDR_BASE_DISK Base; // Must be first.
36
- LARGE_INTEGER liOriginalSize;
37
- } RESHDR_DISK_SHORT;
38
-
39
- typedef struct _WIMHEADER_V1_PACKED
40
- {
41
- CHAR ImageTag[8]; // "MSWIM\0\0"
42
- DWORD cbSize;
43
- DWORD dwVersion;
44
- DWORD dwFlags;
45
- DWORD dwCompressionSize;
46
- GUID gWIMGuid;
47
- USHORT usPartNumber;
48
- USHORT usTotalParts;
49
- DWORD dwImageCount;
50
- RESHDR_DISK_SHORT rhOffsetTable;
51
- RESHDR_DISK_SHORT rhXmlData;
52
- RESHDR_DISK_SHORT rhBootMetadata;
53
- DWORD dwBootIndex;
54
- RESHDR_DISK_SHORT rhIntegrity;
55
- BYTE bUnused[60];
56
- } WIMHEADER_V1_PACKED;
57
- """
58
-
59
- c_wim = cstruct.cstruct()
60
- c_wim.load(wim_def)
61
-
62
- WIM_IMAGE_TAG = b"MSWIM\x00\x00\x00"
@@ -1,11 +0,0 @@
1
- from dissect.hypervisor.backup.c_wim import WIM_IMAGE_TAG, c_wim
2
- from dissect.hypervisor.exceptions import InvalidHeaderError
3
-
4
-
5
- class WIM:
6
- def __init__(self, fh):
7
- self.fh = fh
8
- self.header = c_wim.WIMHEADER_V1_PACKED(fh)
9
-
10
- if self.header.ImageTag != WIM_IMAGE_TAG:
11
- raise InvalidHeaderError("Expected MSWIM header, got: {!r}".format(self.header.ImageTag))