Taking advantage of public APIs during the reconnaissance phase can provide a lot of information about our targets. Profile information from people in organizations using Gmail can be obtained via Google's People API. This service provides name details and the profile photo from the registered contact information and can be queried by anyone with a valid Gmail account. This makes the API perfect for enumerating and obtaining information from valid users in organizations.
This recipe shows how to obtain profile information from people in organizations using Gmail with Nmap.
For this task, we are going to use the NSE script that is not included in the official Nmap repository. Please install it manually before continuing.You can download google-people-enum.nse
from https://raw.githubusercontent.com/cldrn/nmap-nse-scripts/master/scripts/google-people-enum.nse.