rapid7 / meterpreter

THIS REPO IS OBSOLETE. USE https://github.com/rapid7/metasploit-payloads INSTEAD
Other
325 stars 144 forks source link

Multiple Sessions Kills previous #205

Closed Sicks3c closed 6 years ago

Sicks3c commented 6 years ago

Hello guys I want to know if there's an options in "show advanced" I can use to prevent my first session from dying if another sessions get's opened

busterb commented 6 years ago

Are you the guy who hung out for 20 minutes and disappeared on IRC? There's not enough information here to know what problem you're actually having.

busterb commented 6 years ago

It sounds like maybe you have a misconfiguration, or are encountering a bug. There is no option to my knowledge for setting the maximum number of sessions that can be connected. It is possible you have a limited number of ports available, e.g. if you're trying to connect multiple sessions via the 'bind' method.

Sicks3c commented 6 years ago

No the thing is when I sent Payload to victim machine and the payload is clicked I get Meterpreter session But if the payloads is clicked more than once it create a lot of sessions that kills the previous one's I want to know if there's is a method or an option that I can activate to keep just the first and If the payloads is clicked more than once the other session will be on background or smthing like that I hope i'm clear x)

busterb commented 6 years ago

You're not really showing me what you're doing, so I'll try to guess. Did you set 'ExitOnSession' to false? Are you running your handler as a background job? run -j ?

It'd be more helpful if rather than describing, you pasted output, configuration parameters, etc.

Sicks3c commented 6 years ago

No I didnt I think that what I was looking for that ' ExitOnSession' to false It will prevent my first session from dying even If the victim clicks more than once

timwr commented 6 years ago

I presume you're using Android? Have you tried the AndroidWakelock and AndroidHideAppIcon options?

timwr commented 6 years ago

Stay on IRC and we'll try help you out.