-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
Improves handling of dying SMB and SQL sessions #18960
Merged
adfoster-r7
merged 1 commit into
rapid7:master
from
cgranleese-r7:improves-handling-of-dying-smb-and-sql-sessions
Mar 20, 2024
Merged
Improves handling of dying SMB and SQL sessions #18960
adfoster-r7
merged 1 commit into
rapid7:master
from
cgranleese-r7:improves-handling-of-dying-smb-and-sql-sessions
Mar 20, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cgranleese-r7
force-pushed
the
improves-handling-of-dying-smb-and-sql-sessions
branch
from
March 13, 2024 13:53
0da6866
to
8690dc2
Compare
adfoster-r7
reviewed
Mar 13, 2024
adfoster-r7
reviewed
Mar 13, 2024
cgranleese-r7
force-pushed
the
improves-handling-of-dying-smb-and-sql-sessions
branch
from
March 15, 2024 11:56
8690dc2
to
a1a9055
Compare
cgranleese-r7
force-pushed
the
improves-handling-of-dying-smb-and-sql-sessions
branch
from
March 19, 2024 13:15
a1a9055
to
9975fcd
Compare
adfoster-r7
reviewed
Mar 20, 2024
adfoster-r7
reviewed
Mar 20, 2024
adfoster-r7
reviewed
Mar 20, 2024
cgranleese-r7
force-pushed
the
improves-handling-of-dying-smb-and-sql-sessions
branch
2 times, most recently
from
March 20, 2024 14:13
33ad5f6
to
91a73f6
Compare
cgranleese-r7
force-pushed
the
improves-handling-of-dying-smb-and-sql-sessions
branch
from
March 20, 2024 14:16
91a73f6
to
961a072
Compare
sql
smb (Better, but still not perfect 😄)
postgres
mssql
|
Release NotesThis PR improves the handling of dying SMB and SQL sessions. Previously when a session was killed, then interacting with it would return errors but not exit the session. Now the session will close as expected. |
cgranleese-r7
deleted the
improves-handling-of-dying-smb-and-sql-sessions
branch
March 20, 2024 16:11
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Note
This PR is in conjunction with a PR in ruby_smb . This PR will need to be landed before the framework PR.
This PR improves the handling of dying SMB and SQL sessions. Previously when a session was killed, then interacting with it would return errors but not exit the session. Now the session will close as expected.
MSSQL
SMB
Targets for testing
PostgreSQL
Docker command:
Module commands:
MSSQL
Docker command:
Module commands:
use mssql_login run rhost=127.0.0.1 rport=1433 username=sa password=MyMSSQLServerPassword__<> use_windows_authent=false createsession=true
MySQL
Docker command:
MariaDB:
docker run -it --rm -e MYSQL_ROOT_PASSWORD='password' -p 4306:3306 mariadb:11.2.2
MySQL:
docker run -it --rm -e MYSQL_ROOT_PASSWORD='password' -p 3306:3306 mysql:8.3.0
Module commands:
MariaDB:
MySQL
Verification
msfconsole
use smb_login
,use mysql_login
,use mssql_login
,use postgres_login
sessions -i -1