know if a session has completed the execution of a command sent via RPC calls #16624
Unanswered
EmilioPanti
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I would like to know if there is any way to know when a session has completed executing a command when using the (write) RPC calls specified here: https://github.com/rapid7/metasploit-framework/blob/master/lib/msf/core/rpc/v10/rpc_session.rb
So far the only (inefficient) solution I have found is to perform repeated reads on the session interspersed with a 1-second sleep: if for 5 consecutive reads (i.e., 5 seconds) I do not read any new bytes I consider the last written command terminated.
Beta Was this translation helpful? Give feedback.
All reactions