Hackfail.htb -
10.10.10.250 hackfail.htb Now, when you visit http://hackfail.htb in your browser, the web server actually has a virtual host configuration for hackfail.htb (perhaps a default catch-all). The page changes. You start enumerating hackfail.htb —checking subdomains, looking for hidden directories. You are now completely off-target.
You add the entry to /etc/hosts :
echo "[*] Checking /etc/hosts..." grep $TARGET_DOMAIN /etc/hosts || echo "FAIL: Domain not in hosts file." hackfail.htb
