Feature #2514

sessions command to check alive and idle time

Added by Rob Fuller over 1 year ago. Updated 4 months ago.

Status:Rejected Start date:09/10/2010
Priority:Normal Due date:
Assignee:Rob Fuller % Done:

0%

Category:-
Target version:-
Resolution:invalid How To Use:
Release Note:

Description

I wrote a meterpreter script to check alive status of a session and just run and idletime but it'd be nice to have it built in to the sessions command:

msf > sessions

Active sessions
===============

  Id  Type                   Information                      Connection
  --  ----                   -----------                      ----------
  1   meterpreter x86/win32  STEVESWIGETS\bob @ WORKSTATION1  192.168.100.150:443 -> 192.168.100.200:23856
  2   meterpreter x86/win32  STEVESWIGETS\steve @ DC1         192.168.100.150:443 -> 192.168.100.201:55189

msf > sessions -h
Usage: sessions [options]

Active session manipulation and interaction.

OPTIONS:

    -K        Terminate all sessions.
    -a        Check alive status and idle time of all listed sessions
    -c <opt>  Run a command on all live sessions
    -d <opt>  Detach an interactive session
    -h        Help banner.
    -i <opt>  Interact with the supplied session identifier.
    -k <opt>  Terminate session.
    -l        List all active sessions.
    -q        Quiet mode.
    -s <opt>  Run a script on all live meterpreter sessions
    -u <opt>  Upgrade a win32 shell to a meterpreter session
    -v        List verbose fields.

msf > sessions -a
[*] Checking alive status of Meterpreter session 1.
[*] Meterpreter session 1 closed.
[*] Checking alive status of Meterpreter session 2.
[*] Meterpreter session 2 has been idle for: 12 secs
msf > 

History

Updated by James Lee 12 months ago

  • Status changed from New to Feedback
  • Assignee set to Rob Fuller

That's lovely... where's the code? =)

Updated by Tod Beardsley 4 months ago

  • Status changed from Feedback to Rejected
  • Resolution set to invalid
  • 10 set to 0

No code provided, can't really do much with this.

Also available in: Atom PDF