mirror of
https://github.com/mandiant/capa.git
synced 2025-12-15 09:00:45 -08:00
docstrings: improve wording
This commit is contained in:
@@ -328,7 +328,7 @@ class CallHandle:
|
|||||||
reference to an api call extracted by the sandbox.
|
reference to an api call extracted by the sandbox.
|
||||||
|
|
||||||
Attributes:
|
Attributes:
|
||||||
address: call's id address
|
address: call's address, such as event index or id
|
||||||
inner: sandbox-specific data
|
inner: sandbox-specific data
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@@ -445,8 +445,8 @@ class DynamicFeatureExtractor:
|
|||||||
) -> Iterator[Tuple[Feature, Address]]:
|
) -> Iterator[Tuple[Feature, Address]]:
|
||||||
"""
|
"""
|
||||||
Yields all features of a call. These include:
|
Yields all features of a call. These include:
|
||||||
- api's
|
- api name
|
||||||
- arguments
|
- bytes/strings/numbers extracted from arguments
|
||||||
"""
|
"""
|
||||||
raise NotImplementedError()
|
raise NotImplementedError()
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ logger = logging.getLogger(__name__)
|
|||||||
|
|
||||||
def get_threads(behavior: Dict, ph: ProcessHandle) -> Iterator[ThreadHandle]:
|
def get_threads(behavior: Dict, ph: ProcessHandle) -> Iterator[ThreadHandle]:
|
||||||
"""
|
"""
|
||||||
get a thread's child processes
|
get the threads associated with a given process
|
||||||
"""
|
"""
|
||||||
|
|
||||||
process = capa.features.extractors.cape.helpers.find_process(behavior["processes"], ph)
|
process = capa.features.extractors.cape.helpers.find_process(behavior["processes"], ph)
|
||||||
|
|||||||
Reference in New Issue
Block a user