Scanning virtual hosts

Metasploit also allows us to scan for virtual hosts configured on the same IP. Virtual hosting is the hosting of multiple domains on a single server and each domain name is configured with a different service. It allows a single server to share resources:

  1. We will use the Metasploit console for this module. To search for the vhost module, we can use the vhost_scanner keyword:
  1. We set rhosts and domain. In our case, we have used the packtpub.com domain and the 151.101.21.124 IP:
  1. We run the module by typing run. The ...

Get Hands-On Web Penetration Testing with Metasploit now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.