From db8bc751a2ddddad5e781d0c022f0f6df668e9d2 Mon Sep 17 00:00:00 2001 From: adfoster-r7 <60357436+adfoster-r7@users.noreply.github.com> Date: Thu, 26 Aug 2021 14:12:01 +0100 Subject: [PATCH] Add note on existing rhosts functionality --- Using-Metasploit.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Using-Metasploit.md b/Using-Metasploit.md index 9bb8bdf09a..2f35e1c2e3 100644 --- a/Using-Metasploit.md +++ b/Using-Metasploit.md @@ -59,6 +59,13 @@ set lport 5000 run ``` +Traditionally, you can also specify multiple RHOSTS separated by spaces or with a CIDR subnet mask: + +``` +set rhosts 127.0.0.1 127.0.0.2 +set rhosts 127.0.0.1/24 +``` + This document describes a modern approach to setting multiple options in a command. This workflow will not only make it easier to use `reverse-i-search` with `CTRL+R` in Metasploit's console, but it will also make it easier to share cheat sheets amongst pentesters. ### URI support for RHOSTS