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 Impacket logoff session id check #291

Merged
merged 1 commit into from
Oct 8, 2024
Merged

Conversation

jborean93
Copy link
Owner

Fixes the session lookup logic when the logoff response contains a session id of 0. This occurs when using an Impacket server and will have the client just lookup the session id from the request.

Also adjusts the connection cache clearing behaviour to remove the connection from the cache regardless of the result of the disconnect behaviour.

Fixes: #289

Fixes the session lookup logic when the logoff response contains a
session id of 0. This occurs when using an Impacket server and will have
the client just lookup the session id from the request.

Also adjusts the connection cache clearing behaviour to remove the
connection from the cache regardless of the result of the disconnect
behaviour.
Copy link

codecov bot commented Oct 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.04%. Comparing base (a951779) to head (485cc1c).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #291   +/-   ##
=======================================
  Coverage   99.04%   99.04%           
=======================================
  Files          24       24           
  Lines        5116     5116           
=======================================
  Hits         5067     5067           
  Misses         49       49           
Flag Coverage Δ
macOS 68.17% <50.00%> (+0.01%) ⬆️
py3.10 99.00% <100.00%> (ø)
py3.11 99.00% <100.00%> (ø)
py3.12 99.00% <100.00%> (ø)
py3.8 99.00% <100.00%> (ø)
py3.9 99.04% <100.00%> (ø)
ubuntu 96.81% <100.00%> (ø)
windows 98.96% <100.00%> (ø)
x64 99.04% <100.00%> (ø)
x86 98.96% <100.00%> (ø)

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.

@jborean93 jborean93 merged commit 2bed7bc into master Oct 8, 2024
22 checks passed
@jborean93 jborean93 deleted the impacket-session-di branch October 8, 2024 21:21
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.

Trouble connecting with username and password
1 participant