Content Discovery (for Website Enumeration)
Sometimes when frameworks are used to build a website, a favicon that is part of the installation gets leftover, and if the website developer doesn't replace this with a custom one, this can give us a clue on what framework is in use. OWASP host a database of common framework icons that can be used to check against a targets favicon: https://wiki.owasp.org/index.php/OWASP_favicon_database.
To pull favicon from website: curl https://static-labs.tryhackme.cloud/sites/favicon/images/favicon.ico -UseBasicParsing -o favicon.ico
To check MD5 hash against OWASP: Get-FileHash .\favicon.ico -Algorithm MD5
Sitemap: XML files such as sitemap.xml can reveal every file on a website that a developer does not necessarily want viewed. This can help a pentester enumerate a system.
HTTP Headers: curl http://<IP_HERE> -v
This can sometimes reveal useful information such as the webserver software and possible programming or scripting language used. As a pentester, this is critical for exploiting known vulnerabilities.
OSINT: Wayback Machine: https://archive.org/web/
Automated Discovery
FFUF: ffuf -w /usr/share/wordlists/SecLists/Discovery/Web-Content/common.txt -u http://<IP_HERE>/FUZZ
DIRB: dirb http://<IP_HERE>/ /usr/share/wordlists/SecLists/Discovery/Web-Content/common.txt
-
- This one is really fast and thorough
GOBUSTER: gobuster dir --url http://<IP_HERE>/ -w /usr/share/wordlists/SecLists/Discovery/Web-Content/common.txt