During a penetration test, there are sometimes when you need a Meterpreter session to go quiet for a while; for example, if you think the security team is on to you and is trying to stop your attack. For that reason, Meterpreter has a simple but very useful command called sleep.
Meterpreter sleep control
How to do it...
- The sleep command does exactly what you would expect; it makes the current Meterpreter session go to sleep for a specified period of time, and wake up again once that time has expired. So, let's put our session to sleep for 10 seconds. Before using the sleep command, we need to set up a handler, which listens for the new Meterpreter connection:
msf > use exploit/multi/handler
msf exploit...