Meterpreter basics
In this section, we'll learn some basics on how to interact with Metasploit's Meterpreter. In Linux, the help
command is always the best command to run in terms of getting information about a specific command. So, the first thing that we will do is run the help
command, to get a big list of all of the commands that we can run, and a description of what each command does, as shown in the following screenshot:

Looking at some of the basics, the first thing that we will highlight is the background
command, as follows:

The background
command basically backgrounds the current session without terminating it. It's very similar to minimizing a window. So, after running the background
command, we can go back to Metasploit and run other commands to further exploit the target machine (or other machines), maintaining our connection to the computer that we just hacked. To see a list of all of the computers and sessions that we have in use, we can run the sessions -l
command, which shows...