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

Remove unnecessary remote ops check #185

Merged
merged 2 commits into from
Feb 21, 2024
Merged

Remove unnecessary remote ops check #185

merged 2 commits into from
Feb 21, 2024

Conversation

NeffIsBack
Copy link
Contributor

Impacket checks if remote ops is already running on the target system. If it does it does not "start it again", therefore we can remove the check in nxc.
Besides that, it intruduces a bug where, if we want to use remote ops, but it has been closed without setting the self.remote_ops variable to None, nxc thinks remote_ops are running, leading to a crash inside impacket. This happens for example if the target has not rrp running and we do --sam together with --lsa (lsa dump will not succeed, because of missing remote ops).

… here

Besides that, it intruduces a bug where nxc think rrp is enabled, but we closed it before without setting the self.remote_ops variable to None. This leads to sometimes crashing in lsa/sam dump if the service wasnt started originally.
@NeffIsBack NeffIsBack added the bug-fix This Pull Request fixes a bug label Feb 21, 2024
@Marshall-Hallenbeck
Copy link
Collaborator

Running tests

Copy link
Collaborator

@Marshall-Hallenbeck Marshall-Hallenbeck left a comment

Choose a reason for hiding this comment

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

LGTM

@Marshall-Hallenbeck Marshall-Hallenbeck merged commit a69f3e7 into main Feb 21, 2024
2 checks passed
@Marshall-Hallenbeck Marshall-Hallenbeck deleted the neff-fix-rrp branch February 21, 2024 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-fix This Pull Request fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants