How to do it...

  1. Using the search command without any options displays all the available services:
  1. The services command allows us to filter the stored information with granularity, allowing us to search for a specific service name:
  1. Search for a port number as follows:
  1. Like the hosts command, we can use the -S option to search for specific strings:
  1. By combining multiple options, you can search just a specific host and only display the ...

Get Metasploit Penetration Testing Cookbook - Third Edition 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.