recon_07 (vhost over TLS)

View the exercise here: PentesterLab: Recon 07

OBJECTIVE

For this challenge, your goal is to access the default virtual host ("vhost") over TLS.

DEFAULT VHOST OVER TLS

When accessing a new webserver, it often pays off to replace the hostname with the IP address or to provide a random Host header in the request. To do this, you can either modify the request in a web proxy or use:

curl -H "Host: ...."

This time you need to check the TLS version of the website to get the key

SOLUTION

This command performs a DNS lookup to retrieve the IP address associated with the domain hackycorp.com.

dig hackycorp.com

curl https://51.X.X.X/
  • curl is used to send HTTP requests to the given IP address. In this case, you're trying to access the site using its IP directly over TLS (https://). However, because the IP address does not match the hostname in the SSL certificate, this step is likely to fail with an SSL error.


curl https://51.X.X.X --insecure -v
  • -v flag enables verbose mode, showing you detailed information about the request, including SSL/TLS handshake details, headers, and response.

Last updated

Was this helpful?