-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
Support session -1 for ListenerComm options #16096
Conversation
@@ -200,6 +200,8 @@ def create(cid, ssh_channel, peer_host, peer_port) | |||
} | |||
end | |||
|
|||
attr_reader :client |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes the missing via
string when starting a reverse listener from an SSH session.
RevListenerComm
ListenerComm
LGTM will land this now. |
Release NotesThe implementation of the |
This updates the implementation for the
ReverseListenerComm
andListenerComm
datastore options to support the -1 session like theSESSION
datastore option does. This allows the user to refer to the most recently created session without having to either remember what it was or change it when a new session is created.Verification
msfconsole
ReverseListenerComm
datastore optionpayload/python/meterpreter/reverse_tcp
ReverseListenerComm
option to -1to_handler
and see that the port from the LPORT option is now bound and listening on the remote host (use netstat in meterpreter or from the console)ListenerComm
datastore optionauxiliary/server/capture/http
ListenerComm
option to -1