Drupal has the following directory structure:
- Core: This consists of files used by the default Drupal installation.
- Modules: All the custom-created modules that are installed in Drupal are stored here.
- Profiles: This folder stores the installation profile. The installation profile contains information about pre-installed modules, themes, and the configuration of the given Drupal site.
- Sites: This contains site-specific modules in the event that Drupal is used with more than one site.
- Themes: The base theme and all other custom themes are stored in this directory.
- Vendors: This directory contains backend libraries used by Drupal, such as Symfony.
The directory structure of a default Drupal installation is shown in the following screenshot:
Now that we have an idea of the basics of Drupal and its directory structure, let's move on to the next topic: Drupal reconnaissance and enumeration.