Files and their directory structures

The file and directory structure of Tomcat is similar to that of JBoss, which we discussed in the previous chapter. In this section, we will quickly go through the directory structure of Tomcat, shown in the following screenshot:

The subdirectories in the Tomcat directory can be explained as follows:

One of the most interesting directories is the webapps directory:

By navigating to the webapps directory and listing the contents, we can take a look at the directories, as in the preceding screenshot:

A clear understanding of the file and directory structures can help us to perform quite an efficient reconnaissance for our penetration tests on the target Tomcat server.