How to do it...

  1. The get_timeouts Meterpreter command displays the current timeout configuration:
meterpreter > get_timeoutsSession Expiry : @ 2017-11-19 05:59:46Comm Timeout : 300 secondsRetry Total Time: 3600 secondsRetry Wait Time : 10 seconds

Session Expiry specifies the timeout period assigned to the session, after which the session will be terminated. If network-related issues are preventing data from being transmitted between the two endpoints but don't cause the socket to completely disconnect, the Comm Timeout command allows you to specify how long Meterpreter will wait for communication before disconnecting or trying to reconnect, which by default is 5 minutes. The Retry Total Time is the total amount of time that Meterpreter will ...

Get Metasploit Penetration Testing Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.