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

Fix inconsistency of target.ips output #870

Merged
merged 20 commits into from
Oct 31, 2024
Merged

Conversation

JSCU-CNI
Copy link
Contributor

@JSCU-CNI JSCU-CNI commented Oct 1, 2024

Fixes #877.

@JSCU-CNI JSCU-CNI changed the title Fix consistency of ip address output Fix inconsistency of target.ips output Oct 1, 2024
@EinatFox
Copy link

EinatFox commented Oct 2, 2024

Hi @JSCU-CNI , please open an issue and attache this PR so we can schedule a review into our sprints.

dissect/target/plugins/os/unix/bsd/osx/_os.py Outdated Show resolved Hide resolved
dissect/target/plugins/os/windows/_os.py Outdated Show resolved Hide resolved
dissect/target/tools/info.py Outdated Show resolved Hide resolved
Copy link
Member

@Schamper Schamper left a comment

Choose a reason for hiding this comment

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

Sorry for the broken suggestion 😄 would it be possible to make a regression test too?

dissect/target/plugins/os/unix/linux/_os.py Outdated Show resolved Hide resolved
Copy link

codecov bot commented Oct 7, 2024

Codecov Report

Attention: Patch coverage is 95.08197% with 3 lines in your changes missing coverage. Please review.

Project coverage is 77.01%. Comparing base (3b60c96) to head (db9e425).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
dissect/target/plugins/os/windows/network.py 95.91% 2 Missing ⚠️
dissect/target/tools/info.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #870      +/-   ##
==========================================
- Coverage   77.02%   77.01%   -0.01%     
==========================================
  Files         322      322              
  Lines       27575    27566       -9     
==========================================
- Hits        21239    21231       -8     
+ Misses       6336     6335       -1     
Flag Coverage Δ
unittests 77.01% <95.08%> (-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.

@JSCU-CNI
Copy link
Contributor Author

JSCU-CNI commented Oct 7, 2024

Couldn't figure out how to properly modify a VirtualHive in a way the RegistryPlugin registers multiple ControlSets. Perhaps you know of a better way @Schamper?

@JSCU-CNI
Copy link
Contributor Author

JSCU-CNI commented Oct 8, 2024

We can further simplify the general network plugin when fox-it/flow.record#148 is merged.

@JSCU-CNI
Copy link
Contributor Author

This is now ready for review.

dissect/target/plugins/os/windows/network.py Outdated Show resolved Hide resolved
dissect/target/plugins/os/windows/network.py Outdated Show resolved Hide resolved
tests/conftest.py Outdated Show resolved Hide resolved
@JSCU-CNI JSCU-CNI requested a review from Schamper October 23, 2024 10:26
dissect/target/plugins/os/windows/generic.py Outdated Show resolved Hide resolved
dissect/target/plugins/os/windows/network.py Outdated Show resolved Hide resolved
dissect/target/plugins/os/windows/network.py Outdated Show resolved Hide resolved
@JSCU-CNI JSCU-CNI requested a review from Schamper October 28, 2024 11:05
Schamper
Schamper previously approved these changes Oct 31, 2024
@Schamper Schamper merged commit 90cbaac into fox-it:main Oct 31, 2024
18 of 20 checks passed
wbi-ocd added a commit to wbi-ocd/dissect.target that referenced this pull request Nov 20, 2024
Add optional params to _get_config_value to split value according to a list of character
Regression added in fox-it#870
wbi-ocd added a commit to wbi-ocd/dissect.target that referenced this pull request Nov 20, 2024
Add optional params to _get_config_value to split value according to a list of character
Regression added in fox-it#870
wbi-ocd added a commit to wbi-ocd/dissect.target that referenced this pull request Nov 20, 2024
Add optional params to _get_config_value to split value according to a list of character
Regression added in fox-it#870
wbi-ocd added a commit to wbi-ocd/dissect.target that referenced this pull request Nov 20, 2024
Add optional params to _get_config_value to split value according to a list of character
Regression added in fox-it#870
wbi-ocd added a commit to wbi-ocd/dissect.target that referenced this pull request Nov 20, 2024
Add optional params to _get_config_value to split value according to a list of character
Regression added in fox-it#870
@JSCU-CNI JSCU-CNI deleted the fix/str-ips branch December 4, 2024 09:26
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.

Output of target.ips is inconsistent
3 participants