GoBuster
To list directories, we can use:
gobuster dir --url <website_url> --wordlist <path_to_wordlist> -x php,html
dir : Uses directory/file enumeration mode.
--url : The target URL.
--wordlist : Path to the wordlist.
-x : File extension(s) to search for.
This will search all fies/directory on the website_url, using the path_to_wordlist wordlist, and searching only files with .html and .php extensions.
To list subdomains, we can use:
gobuster vhost -w <link_to_seclist> -u <url>