For most exploits that we use within the Metasploit Framework, we need to set values to some of the variables. The following are some of the common and most important variables in the Metasploit Framework:
Variable name | Variable description |
LHOST | Local Host: This variable contains the IP address of the attacker's system that is the IP address of the system from where we are initiating the exploit. |
LPORT | Local Port: This variable contains the (local) port number of the attacker's system. This is typically needed when we are expecting our exploit to give us reverse shell. |
RHOST | Remote Host: This variable contains the IP address of our target system. |
RPORT | Remote Port: This variable contains the port number on the target system that we will attack/exploit. For example, for exploiting an FTP vulnerability on a remote target system, RPORT... |