Scanning HTTPS/SSL with Metasploit
Metasploit contains the SSL scanner module that can uncover a variety of information related to the SSL service on a target. Let us quickly set up and run the module as follows:
We have the SSL module from auxiliary/scanner/http
, as shown in the preceding screenshot. We can now set the RHOSTS
, a number of threads to run, and RPORT
if it is not 443
, and execute the module as follows:
Analyzing the preceding output, we can see that we have a self-signed certificate in place on the IP address 192.168.1.8
and other details such as CA authority, e-mail address, and much more. This information becomes vital to law enforcement agencies and in cases of fraud investigation. There have been many cases where the CA has accidentally signed malware spreading sites for SSL services.
We learned about various Metasploit modules. Let us now delve deeper and look at how the modules are built.