Summery

XAMPP is a web-server stack that bundles Apache, PHP, MySQL/MariaDB, and phpMyAdmin for running web applications locally. It’s often used for styding and testing, It’s mainly designed as a convenient development environment rather than a production platform.

It’s name is actually an acronym:
X - Cross-platform (Windows, Linux, macOS)
A - Apache HTTP Server
M - MariaDB / MySQL database
P - PHP scripting language
P - Perl scripting language

Directories

As XAMPP is basically a bundle of several separate server applications, each major component gets its own directory and in them, there are some interesting files worth checking out:

  1. Apache
    C:\xampp\apache\ - Apache web server. The main executable is contains httpd.exe which can also run as a service called ApacheServer.
    C:\xampp\apache\conf\ - Apache’s configuration directory. Important files include httpd.conf, which controls ports, modules, document root, logging, virtual hosts, authentication, and other server behavior.
    C:\xampp\apache\bin\ - Apache’s executables and DLLs. It contains httpd.exe, supporting executables, and DLL dependencies. For pentesting, writable files here can matter for executable or DLL hijacking.

  2. MySQL
    C:\xampp\mysql\ - MySQL/MariaDB database server. The main executable is mysqld.exe which can also run as a service called MySQL.
    C:\xampp\mysql\bin\ - MySQL executables and supporting DLLs. mysqld.exe is the database-server executable.
    C:\xampp\mysql\data\ - Actual database files and contents; potentially sensitive.
    C:\xampp\mysql\bin\my.ini - MySQL configuration file; useful for discovering ports, paths, authentication settings, and other configuration.

  3. PHP
    C:\xampp\php\ - PHP interpreter used to execute PHP applications. The main executable is php.exe, Apache can load PHP through its module.
    C:\xampp\php\php.ini - Main PHP configuration; inspect enabled extensions and security settings.

  4. phpMyAdmin
    C:\xampp\phpMyAdmin\ - Web interface for managing MySQL/MariaDB databases. It runs through Apache and PHP.
    C:\xampp\phpMyAdmin\config.inc.php - phpMyAdmin configuration; may contain database connection credentials.

  5. htdocs
    C:\xampp\htdocs\ - Apache’s web root. PHP applications and other website files placed here can be accessed through the web server. Pay extra attention here as these are the main web server files, especially for conifg files!

  6. FileZilla
    C:\xampp\FileZilla\ - FileZilla FTP server. Main executable is typically filezilla-server.exe. Provides FTP functionality and can run as a Windows service called FileZilla Server.

  7. Tomcat
    C:\xampp\Tomcat\ - Apache Tomcat Java application server. Main executable is typically tomcat.exe. It runs Java-based web applications and can run as a Windows service called Tomcat or Tomcat9, depending on the installed Tomcat and XAMPP versions.

Note:
Although it’s XAMPP, there could be more places.