-
Notifications
You must be signed in to change notification settings - Fork 492
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
With the plugin module __path__ variable updated at runtime, and plugin imports based on this updated path within their own module definitions, static type checkers and language servers cannot resolve these imports to provide support for autocompletion, type-checking, etc. This commit: - Adds the required stub files to make development easier when working on plugins - Removes the stubs directory from the .gitignore file - Adds a [tool.pyright] section to tell pyright where to look for stubs Development: Additional stub updates
- Loading branch information
Showing
8 changed files
with
333 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from importlib import abc | ||
from typing import Any, Callable | ||
|
||
class classproperty(property): | ||
def __init__(self, func: Callable[[_S], _T]) -> None: ... | ||
Check failure on line 5 in stubs/volatility3/__init__.pyi
|
||
def __get__(self, obj: Any, type: _S | None = None) -> _T: ... | ||
Check failure on line 6 in stubs/volatility3/__init__.pyi
|
||
|
||
class WarningFindSpec(abc.MetaPathFinder): | ||
@staticmethod | ||
def find_spec( | ||
fullname: str, path: list[str] | None, target: None = None, **kwargs | ||
) -> None: ... | ||
|
||
warning_find_spec: list[abc.MetaPathFinder] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from volatility3.framework.plugins import ( | ||
banners, | ||
configwriter, | ||
isfinfo, | ||
layerwriter, | ||
linux, | ||
mac, | ||
regexscan, | ||
timeliner, | ||
vmscan, | ||
windows, | ||
yarascan, | ||
) | ||
|
||
__all__ = [ | ||
"banners", | ||
"configwriter", | ||
"isfinfo", | ||
"layerwriter", | ||
"linux", | ||
"mac", | ||
"regexscan", | ||
"timeliner", | ||
"vmscan", | ||
"windows", | ||
"yarascan", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
from volatility3.framework.plugins.linux import ( | ||
bash, | ||
boottime, | ||
capabilities, | ||
check_afinfo, | ||
check_creds, | ||
check_idt, | ||
check_modules, | ||
check_syscall, | ||
ebpf, | ||
elfs, | ||
envars, | ||
hidden_modules, | ||
iomem, | ||
ip, | ||
kallsyms, | ||
keyboard_notifiers, | ||
kmsg, | ||
kthreads, | ||
library_list, | ||
lsmod, | ||
lsof, | ||
malfind, | ||
modxview, | ||
mountinfo, | ||
netfilter, | ||
pagecache, | ||
pidhashtable, | ||
proc, | ||
psaux, | ||
pscallstack, | ||
pslist, | ||
psscan, | ||
pstree, | ||
ptrace, | ||
sockstat, | ||
tracing, | ||
tty_check, | ||
vmaregexscan, | ||
vmayarascan, | ||
vmcoreinfo, | ||
) | ||
|
||
__all__ = [ | ||
"bash", | ||
"boottime", | ||
"capabilities", | ||
"check_afinfo", | ||
"check_creds", | ||
"check_idt", | ||
"check_modules", | ||
"check_syscall", | ||
"ebpf", | ||
"elfs", | ||
"envars", | ||
"hidden_modules", | ||
"iomem", | ||
"ip", | ||
"kallsyms", | ||
"keyboard_notifiers", | ||
"kmsg", | ||
"kthreads", | ||
"library_list", | ||
"lsmod", | ||
"lsof", | ||
"malfind", | ||
"modxview", | ||
"mountinfo", | ||
"netfilter", | ||
"pagecache", | ||
"pidhashtable", | ||
"proc", | ||
"psaux", | ||
"pscallstack", | ||
"pslist", | ||
"psscan", | ||
"pstree", | ||
"ptrace", | ||
"sockstat", | ||
"tracing", | ||
"tty_check", | ||
"vmaregexscan", | ||
"vmayarascan", | ||
"vmcoreinfo", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
from volatility3.framework.plugins.mac import ( | ||
bash, | ||
check_syscall, | ||
check_sysctl, | ||
check_trap_table, | ||
dmesg, | ||
ifconfig, | ||
kauth_listeners, | ||
kauth_scopes, | ||
kevents, | ||
list_files, | ||
lsmod, | ||
lsof, | ||
malfind, | ||
mount, | ||
netstat, | ||
proc_maps, | ||
psaux, | ||
pslist, | ||
pstree, | ||
socket_filters, | ||
timers, | ||
trustedbsd, | ||
vfsevents, | ||
) | ||
|
||
__all__ = [ | ||
"bash", | ||
"check_syscall", | ||
"check_sysctl", | ||
"check_trap_table", | ||
"dmesg", | ||
"ifconfig", | ||
"kauth_listeners", | ||
"kauth_scopes", | ||
"kevents", | ||
"list_files", | ||
"lsmod", | ||
"lsof", | ||
"malfind", | ||
"mount", | ||
"netstat", | ||
"proc_maps", | ||
"psaux", | ||
"pslist", | ||
"pstree", | ||
"socket_filters", | ||
"timers", | ||
"trustedbsd", | ||
"vfsevents", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,153 @@ | ||
from volatility3.framework.plugins.windows import ( | ||
amcache, | ||
bigpools, | ||
cachedump, | ||
callbacks, | ||
cmdline, | ||
cmdscan, | ||
consoles, | ||
crashinfo, | ||
debugregisters, | ||
devicetree, | ||
direct_system_calls, | ||
dlllist, | ||
driverirp, | ||
drivermodule, | ||
driverscan, | ||
dumpfiles, | ||
envars, | ||
filescan, | ||
getservicesids, | ||
getsids, | ||
handles, | ||
hashdump, | ||
hollowprocesses, | ||
iat, | ||
indirect_system_calls, | ||
info, | ||
joblinks, | ||
kpcrs, | ||
ldrmodules, | ||
lsadump, | ||
malfind, | ||
mbrscan, | ||
memmap, | ||
mftscan, | ||
modscan, | ||
modules, | ||
mutantscan, | ||
netscan, | ||
netstat, | ||
orphan_kernel_threads, | ||
pe_symbols, | ||
pedump, | ||
poolscanner, | ||
privileges, | ||
processghosting, | ||
pslist, | ||
psscan, | ||
pstree, | ||
psxview, | ||
registry, | ||
scheduled_tasks, | ||
sessions, | ||
shimcachemem, | ||
skeleton_key_check, | ||
ssdt, | ||
strings, | ||
suspended_threads, | ||
suspicious_threads, | ||
svcdiff, | ||
svclist, | ||
svcscan, | ||
symlinkscan, | ||
thrdscan, | ||
threads, | ||
timers, | ||
truecrypt, | ||
unhooked_system_calls, | ||
unloadedmodules, | ||
vadinfo, | ||
vadregexscan, | ||
vadwalk, | ||
vadyarascan, | ||
verinfo, | ||
virtmap, | ||
) | ||
|
||
__all__ = [ | ||
"amcache", | ||
"bigpools", | ||
"cachedump", | ||
"callbacks", | ||
"cmdline", | ||
"cmdscan", | ||
"consoles", | ||
"crashinfo", | ||
"debugregisters", | ||
"devicetree", | ||
"direct_system_calls", | ||
"dlllist", | ||
"driverirp", | ||
"drivermodule", | ||
"driverscan", | ||
"dumpfiles", | ||
"envars", | ||
"filescan", | ||
"getservicesids", | ||
"getsids", | ||
"handles", | ||
"hashdump", | ||
"hollowprocesses", | ||
"iat", | ||
"indirect_system_calls", | ||
"info", | ||
"joblinks", | ||
"kpcrs", | ||
"ldrmodules", | ||
"lsadump", | ||
"malfind", | ||
"mbrscan", | ||
"memmap", | ||
"mftscan", | ||
"modscan", | ||
"modules", | ||
"mutantscan", | ||
"netscan", | ||
"netstat", | ||
"orphan_kernel_threads", | ||
"pe_symbols", | ||
"pedump", | ||
"poolscanner", | ||
"privileges", | ||
"processghosting", | ||
"pslist", | ||
"psscan", | ||
"pstree", | ||
"psxview", | ||
"registry", | ||
"scheduled_tasks", | ||
"sessions", | ||
"shimcachemem", | ||
"skeleton_key_check", | ||
"ssdt", | ||
"strings", | ||
"suspended_threads", | ||
"suspicious_threads", | ||
"svcdiff", | ||
"svclist", | ||
"svcscan", | ||
"symlinkscan", | ||
"thrdscan", | ||
"threads", | ||
"timers", | ||
"truecrypt", | ||
"unhooked_system_calls", | ||
"unloadedmodules", | ||
"vadinfo", | ||
"vadregexscan", | ||
"vadwalk", | ||
"vadyarascan", | ||
"verinfo", | ||
"virtmap", | ||
] |
Empty file.