Variables in Metasploit
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 |
| 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. |
| 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. |
| Remote Host: This variable contains the IP address of our target system. |
| 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 will be set to 21. |
- The
get
command: Theget
command is used to retrieve the value contained in a particular local variable within the Metasploit...