ntmemoryapi 1.3.0__tar.gz → 1.4.0__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: ntmemoryapi
3
- Version: 1.3.0
3
+ Version: 1.4.0
4
4
  Summary: Simple library for Windows to manipulate process virtual memory with stelthy syscall wraps
5
5
  Author: Xenely
6
6
  Requires-Dist: psutil>=7.1.3
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "ntmemoryapi"
3
- version = "1.3.0"
3
+ version = "1.4.0"
4
4
  description = "Simple library for Windows to manipulate process virtual memory with stelthy syscall wraps"
5
5
  authors = [
6
6
  {name = "Xenely"}
@@ -611,6 +611,8 @@ class Process:
611
611
  else:
612
612
  raise Exception("NtReadVirtualMemory failed with status: 0x%s" % hex(result)[2:].upper())
613
613
 
614
+ return buffer.value
615
+
614
616
  def read_uint16(self, address: int) -> int:
615
617
  """Read 2 byte unsigned integer value located at given address."""
616
618
 
@@ -623,6 +625,8 @@ class Process:
623
625
  else:
624
626
  raise Exception("NtReadVirtualMemory failed with status: 0x%s" % hex(result)[2:].upper())
625
627
 
628
+ return buffer.value
629
+
626
630
  def read_uint32(self, address: int) -> int:
627
631
  """Read 4 byte unsigned integer value located at given address."""
628
632
 
@@ -635,6 +639,8 @@ class Process:
635
639
  else:
636
640
  raise Exception("NtReadVirtualMemory failed with status: 0x%s" % hex(result)[2:].upper())
637
641
 
642
+ return buffer.value
643
+
638
644
  def read_uint64(self, address: int) -> int:
639
645
  """Read 8 byte unsigned integer value located at given address."""
640
646
 
@@ -647,6 +653,8 @@ class Process:
647
653
  else:
648
654
  raise Exception("NtReadVirtualMemory failed with status: 0x%s" % hex(result)[2:].upper())
649
655
 
656
+ return buffer.value
657
+
650
658
  def read_float32(self, address: int) -> int:
651
659
  """Read 4 byte floating-point digit value located at given address."""
652
660
 
@@ -659,6 +667,8 @@ class Process:
659
667
  else:
660
668
  raise Exception("NtReadVirtualMemory failed with status: 0x%s" % hex(result)[2:].upper())
661
669
 
670
+ return buffer.value
671
+
662
672
  def read_float64(self, address: int) -> int:
663
673
  """Read 8 byte floating-point digit value located at given address."""
664
674
 
@@ -671,6 +681,8 @@ class Process:
671
681
  else:
672
682
  raise Exception("NtReadVirtualMemory failed with status: 0x%s" % hex(result)[2:].upper())
673
683
 
684
+ return buffer.value
685
+
674
686
  def read_bytes(self, address: int, size: int) -> bytes:
675
687
  """Read bytes array of variadic size located at given address."""
676
688
 
File without changes