Skip to content
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

Make Mssql errorlog plugin more robust #978

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

Horofic
Copy link
Contributor

@Horofic Horofic commented Dec 19, 2024

Fixes #977

Copy link

codecov bot commented Dec 19, 2024

Codecov Report

Attention: Patch coverage is 83.33333% with 1 line in your changes missing coverage. Please review.

Project coverage is 77.72%. Comparing base (f2f50a5) to head (9132869).

Files with missing lines Patch % Lines
dissect/target/plugins/os/windows/log/mssql.py 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #978      +/-   ##
==========================================
- Coverage   77.72%   77.72%   -0.01%     
==========================================
  Files         326      326              
  Lines       28575    28574       -1     
==========================================
- Hits        22210    22209       -1     
  Misses       6365     6365              
Flag Coverage Δ
unittests 77.72% <83.33%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

dissect/target/plugins/os/windows/log/mssql.py Outdated Show resolved Hide resolved
dissect/target/plugins/os/windows/log/mssql.py Outdated Show resolved Hide resolved
@Horofic Horofic requested a review from Schamper December 19, 2024 13:55
subkey.name,
self.target.fs.path(subkey.subkey("SQLServerAgent").value("ErrorLogFile").value).parent,
)
for subkey in self.target.registry.glob_ext(self.MSSQL_KEY_GLOB):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe make this a comprehension, not sure if it'll become too large.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mssql errorlog plugin fails unexpectedly during compatibility check
2 participants