-
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
extend error message for timeouts to include more detail to user #18299
Conversation
ce438c9
to
888ee07
Compare
d691e9e
to
cd0ccd1
Compare
Let's rename that final variable, and squash the commits down for git hygiene purposes |
299b237
to
157ae80
Compare
initial functionality, testing/cleanup still needed script and command functionality remove unnecessary accessor switch puts to print_error in proc ensure proc is reset, run on every error, add yard docs fix yard, refactor/remove dead code rename on_error_proc
157ae80
to
862e738
Compare
OSX osx/x64/shell_reverse_tcp⚪ No timeout error printed, the timeout also seems to be lower than Meterpreter
It looks like this is because the shell first tcp session has no configurable timeout
OSX Meterpreter🔴 Looks like this doesn't work with the OSX Meterpreter with the
The timeout exception is swallowed deeper down in the stack and the channel response is just read as being empty Windows Meterpreter🍏 Original windows UX improvement is working as expected:
🍏 via sessions
🍏 Works with the
|
I don't think the OSX edgecase is a blocker, as we've made improvements to the powershell side of things now which was our main focus/target user workflow 👍 |
Release NotesImproves error messages for timeouts when interacting with a Meterpreter session. Before an unclear error was printed. Now the user is notified how to increase the timeout limit. |
Partially addresses #6274 - specifically implements #6274 (comment) for all functions that use that timeout error.
Verification
List the steps needed to make sure this thing works
Short version - trigger any Rex::TimeoutError and verify more verbose text
Longer version:
For interactive:
msfconsole
windows/meterpreter/reverse_http
)powershell_execute 'sleep 20; echo abc'
)For script:
foo.rc
file with the following contents:msfconsole
sessions --script foo.rc your_session_id
For command:
msfconsole
windows/meterpreter/reverse_http
)sessions -C "load powershell" your_session_id
sessions -C "powershell_execute 'sleep 20; echo abc'" your_session_id