RHOSTS is a variable commonly used in penetration testing frameworks like Metasploit. It represents the target hosts that an attacker wants to exploit.
In Metasploit, RHOSTS can be set to a single IP address, a range of IP addresses, or a subnet. This allows the user to specify multiple targets for an attack module.
For example, you can set RHOSTS like this:
set RHOSTS 192.168.1.1
Or for a range:
set RHOSTS 192.168.1.1-192.168.1.10
Or for a subnet:
set RHOSTS 192.168.1.0/24
This flexibility helps in conducting scans or attacks on multiple systems efficiently.
