Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

Commit

Permalink
Put inits back
Browse files Browse the repository at this point in the history
  • Loading branch information
john-cado committed Sep 24, 2024
1 parent 3c0e91d commit 7563560
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions varc_core/systems/linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@ class IOVec(ctypes.Structure):

class LinuxSystem(BaseSystem):

def __init__(
self,
include_memory: bool,
include_open: bool,
extract_dumps: bool,
yara_file: Optional[str],
**kwargs: Any
) -> None:
super().__init__(include_memory=include_memory, include_open=include_open, extract_dumps=extract_dumps, yara_file=yara_file, **kwargs)

def parse_mem_map(self, pid: int, p_name: str) -> List[Tuple[int, int]]:
"""Returns a list of (start address, end address) tuples of the regions of process memory that are mapped
Expand Down
10 changes: 10 additions & 0 deletions varc_core/systems/windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@

class WindowsSystem(BaseSystem):

def __init__(
self,
include_memory: bool,
include_open: bool,
extract_dumps: bool,
yara_file: Optional[str],
**kwargs: Any
) -> None:
super().__init__(include_memory=include_memory, include_open=include_open, extract_dumps=extract_dumps, yara_file=yara_file, **kwargs)

def read_process(self, handle: int, address: int) -> Tuple[Optional[bytes], int]:
""" Read a process. Based on pymems pattern module
Expand Down

0 comments on commit 7563560

Please sign in to comment.