-
Notifications
You must be signed in to change notification settings - Fork 38
Add NTFS and RemoteAccess paths #259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -359,8 +359,15 @@ class NTFS(Module): | |
| def _run(cls, target: Target, cli_args: argparse.Namespace, collector: Collector) -> None: | ||
| for fs, main_mountpoint, name, mountpoints in iter_ntfs_filesystems(target): | ||
| log.info("Acquiring from %s as %s (%s)", fs, name, mountpoints) | ||
| filenames = [ | ||
| "$MFT", | ||
| "$Boot", | ||
| "$Secure:$SII", | ||
| "$Secure:$SDS", | ||
| "$LogFile", | ||
| ] | ||
|
|
||
| for filename in ("$MFT", "$Boot", "$Secure:$SDS"): | ||
| for filename in filenames: | ||
| if main_mountpoint is not None: | ||
| path = fsutil.join(main_mountpoint, filename) | ||
| collector.collect_path(path) | ||
|
|
@@ -372,6 +379,7 @@ def _run(cls, target: Target, cli_args: argparse.Namespace, collector: Collector | |
| collector.collect_file_raw(filename, fs, name) | ||
|
|
||
| cls.collect_usnjrnl(collector, fs, name) | ||
| cls.collect_rmmetadata(collector, fs, name) | ||
|
|
||
| @classmethod | ||
| def collect_usnjrnl(cls, collector: Collector, fs: Filesystem, name: str) -> None: | ||
|
|
@@ -389,12 +397,26 @@ def usnjrnl_accessor(journal: BinaryIO) -> tuple[BinaryIO, int]: | |
|
|
||
| return (journal, size) | ||
|
|
||
| collector.collect_file_raw( | ||
| "$Extend/$Usnjrnl:$J", | ||
| fs, | ||
| name, | ||
| file_accessor=usnjrnl_accessor, | ||
| ) | ||
| for filename in ("$Extend/$Usnjrnl:$J", "$Extend/$Usnjrnl:$Max"): | ||
| collector.collect_file_raw( | ||
| filename, | ||
| fs, | ||
| name, | ||
| file_accessor=usnjrnl_accessor, | ||
| ) | ||
|
|
||
| @classmethod | ||
| def collect_rmmetadata(cls, collector: Collector, fs: Filesystem, name: str) -> None: | ||
| filenames = [ | ||
| "$Extend/$RmMetadata/$TxfLog/$T", | ||
| "$Extend/$RmMetadata/$TxfLog/$Tops:$T", | ||
| ] | ||
| for filename in filenames: | ||
| collector.collect_file_raw( | ||
| filename, | ||
| fs, | ||
| name, | ||
| ) | ||
|
|
||
|
|
||
| @register_module("-r", "--registry") | ||
|
|
@@ -1323,11 +1345,15 @@ def get_spec_additions(cls, target: Target, cli_args: argparse.Namespace) -> Ite | |
| class RemoteAccess(Module): | ||
| DESC = "common remote access tools' log files" | ||
| SPEC = ( | ||
| # teamviewer | ||
| # teamviewer - Windows | ||
| ("glob", "sysvol/Program Files/TeamViewer/*.log"), | ||
| ("glob", "sysvol/Program Files/TeamViewer/Connections_incoming.txt"), | ||
| ("glob", "sysvol/Program Files (x86)/TeamViewer/*.log"), | ||
| ("glob", "/var/log/teamviewer*/*.log"), | ||
| ("glob", "sysvol/Program Files (x86)/TeamViewer/Connections_incoming.txt"), | ||
qmadev marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ("glob", "AppData/Roaming/TeamViewer/*.log", from_user_home), | ||
| ("glob", "AppData/Roaming/TeamViewer/Connections.txt", from_user_home), | ||
qmadev marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| # teamviewer - Mac + Linux | ||
| ("glob", "/var/log/teamviewer*/*.log"), | ||
| ("glob", "Library/Logs/TeamViewer/*.log", from_user_home), | ||
| # anydesk - Windows | ||
| ("path", "sysvol/ProgramData/AnyDesk"), | ||
|
|
@@ -1336,12 +1362,11 @@ class RemoteAccess(Module): | |
| ("glob", ".anydesk*/*", from_user_home), | ||
| ("path", "/var/log/anydesk.trace"), | ||
| # RustDesk - Windows | ||
| ("path", "sysvol/ProgramData/RustDesk"), | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Where'd this one go? Our parser for it suggests that server logs are stored here. @lhaagsma?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I did a full install on 2 machines, used RustDesk to connect them. On both hosts, no
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any news on this?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure based on what I added this path. Perhaps I added this path 'just to be sure' as I believe Anydesk does store data there and the two are very similar.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If there's no evidence that RustDesk actually stores data there then I think it's fine to remove it. |
||
| ("path", "AppData/Roaming/RustDesk/log/server/", from_user_home), | ||
| ("path", "AppData/Roaming/RustDesk/log/", from_user_home), | ||
| # RustDesk - Mac + Linux | ||
| ("path", ".local/share/logs/RustDesk/server/", from_user_home), | ||
| ("path", "/var/log/RustDesk"), | ||
| ("path", "Library/Logs/RustDesk/Server", from_user_home), | ||
| ("path", ".local/share/logs/RustDesk/", from_user_home), | ||
| ("path", "/var/log/RustDesk/"), | ||
| ("path", "Library/Logs/RustDesk/", from_user_home), | ||
| # zoho | ||
| ("path", "sysvol/ProgramData/ZohoMeeting/log"), | ||
| ("path", "AppData/Local/ZohoMeeting/log", from_user_home), | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.