Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
yelhamer committed Jul 21, 2023
1 parent c4ba5af commit 830bad5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions capa/features/extractors/dnfile/extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ def __init__(self, path: Path):
def get_base_address(self):
return NO_ADDRESS

def get_sample_hashes(self) -> SampleHashes:
return self.sample_hashes

def extract_global_features(self):
yield from self.global_features

Expand Down
3 changes: 3 additions & 0 deletions capa/features/extractors/dnfile_.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ def __init__(self, path: Path):
def get_base_address(self) -> AbsoluteVirtualAddress:
return AbsoluteVirtualAddress(0x0)

def get_sample_hashes(self) -> SampleHashes:
return self.sample_hashes

def get_entry_point(self) -> int:
# self.pe.net.Flags.CLT_NATIVE_ENTRYPOINT
# True: native EP: Token
Expand Down
3 changes: 3 additions & 0 deletions capa/features/extractors/dotnetfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ def __init__(self, path: Path):
def get_base_address(self):
return NO_ADDRESS

def get_sample_hashes(self) -> SampleHashes:
return self.sample_hashes

def get_entry_point(self) -> int:
# self.pe.net.Flags.CLT_NATIVE_ENTRYPOINT
# True: native EP: Token
Expand Down

0 comments on commit 830bad5

Please sign in to comment.