> For the complete documentation index, see [llms.txt](https://hacktools.aprasanna.com.np/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacktools.aprasanna.com.np/metasploit/meterpreter.md).

# Meterpreter

## Introduction

Meterpreter is a metasploit attack payload that provides an interactive shell from which an attacker can explore the target machine and execute code after successful execution of payload in the target machine and creation of meterpreter session or prompt.

## Commands

These are the commands that can be used in the meterpreter prompt.

1. `help`

It displays the help menu. The help menu has different codes related to core commands, file system commands, user interface commands, system commands, networking commands, webcam commands, audio output commands, elevation commands, password database commands, timestamp commands.

2. `getuid`

It gets the session GUID (Globally Unique Identifier) for knowing the privilege level.

3. `ps`

It lists the running processes.

4. `migrate [pid]`

It migrates to interact with other processes with specific process id (pid).

5. `hashdump`

It lists the context of SAM (Security Account Manager) database, that stores user's password on Windows system.

6. `search -f [file_name]`

It is used to locate a particular file.

7. `shell`

It launches the regular command line shell on the target system.
