Can we listen for 10 connections at once using any options present in Metasploit.
2 Answers
The concept you are looking for is "sessions". Metasploit supports multiple sessions by default.
Make sure you use set ExitOnSession false
to ensure that the handler does not exit once it handles a session.
I cannot quickly find the maximum number of sessions Metasploit can handle by default, but I found one reference where a user was able to trigger 300 sessions. The suggestion is that the limit is an OS limit and not a limit imposed by Metasploit.
Use RHOSTS
instead of RHOST
to engage with multiple targets at once.
Reference:- RHOSTS Service Enum
-
1RHOSTS is for specifying targets, not incoming connections– schroeder ♦Commented Oct 1, 2019 at 6:57