-
Notifications
You must be signed in to change notification settings - Fork 54
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
Fixed support for unprivileged accounts for the SMB loader & minor bug fix #466
Fixed support for unprivileged accounts for the SMB loader & minor bug fix #466
Conversation
…returned by `detect()` due to an AttributeError: 'NoneType' object has no attribute 'get'
Important to note is that the registry still logs a verbose error, but it seems like intended behavior since it's logged explicitly.
|
That should probably be separated out into a |
@Schamper applied changes, although the stack trace originates from the windows plugin meaning it will still be printed as far as I know |
You could change these lines: https://github.com/fox-it/dissect.target/blob/main/dissect/target/plugins/os/windows/_os.py#L80 self.target.log.warning("Failed to map drive letters")
self.target.log.debug("", exc_info=e) |
Co-authored-by: Erik Schamper <[email protected]>
Co-authored-by: Erik Schamper <[email protected]>
Co-authored-by: Erik Schamper <[email protected]>
Added :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you fix the CI errors?
@Schamper Fixed linting issues & added missing mock import |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #466 +/- ##
==========================================
- Coverage 73.94% 73.93% -0.02%
==========================================
Files 259 259
Lines 20878 20888 +10
==========================================
+ Hits 15439 15444 +5
- Misses 5439 5444 +5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Fixed two bugs:
target-shell
with the SMB loader would crash when using unprivileged accounts (resolves SMB loader crashes on startup when using unprivileged accounts #465)target-shell
if thedetect()
function failed to detect an OS (i.e.: when an unprivileged user only only able to list non OS-level shares).