December 3, 2026
How to Set Up DVTA for Thick Client Penetration Testing โ Complete Lab Guide
Overview
By Sandeepjadyar
11 min read
Overview
This document provides a step-by-step guide to configuring the DVTA (Damn Vulnerable Thick Client Application) lab environment for Thick Client Vulnerability Assessment and Penetration Testing (VAPT).
The lab requires the configuration of the following components:
- Microsoft SQL Server โ Database server.
- SQL Server Management Studio (SSMS) โ Database management.
- FileZilla Server โ FTP server.
- DVTA โ Vulnerable thick client application.
- dnSpy โ .NET application decompiler and debugger.
Downloadable Links
Component Download Link Vulnerable Lab (DVTA): https://github.com/srini0x00/dvta
SQL Server Management Studio (SSMS): https://learn.microsoft.com/en-us/ssms/install/install
Microsoft SQL Server 2025: https://www.microsoft.com/en-us/evalcenter/sql-server-2025-download
FileZilla Server: https://filezilla-project.org/download.php?type=server
dnSpy: https://sourceforge.net/projects/dnspy.mirror/files/latest/download
1. SQL Server Database Configuration
Step 1: Download and install SQL Server
During the SQL Server installation process, select the installation type as Custom.
After the installation files have been downloaded, launch the SQL Server Installation Center.
Click on New SQL Server standalone installation or add features to an existing installation.
Click Next until you reach the Azure-related configuration option.
Uncheck the Azure option and proceed with the installation.
Step 2: Select database engine services
Under Feature Selection, select Database Engine Services.
There is no requirement to select additional features for this lab.
Click Next to continue.
Step 3: Configure the SQL Server instance
Select Default instance.
The default instance uses the service name MSSQLSERVER.
Step 4: Configure SQL Server service accounts
Configure the SQL Server service Account Name as shown in the POCs.
Set the startup type to Automatic so that the SQL Server service starts automatically when Windows boots.
Step 5: Configure authentication mode
Under Database Engine Configuration, select Mixed Mode (SQL Server authentication and Windows authentication).
Set the following password for the SQL Server sa account:
Password: p@ssw0rd
Click Next and proceed with the installation.
No additional configuration is required on the remaining installation screens for this lab.
Click Install to complete the installation.
Your SQL Server database engine is now installed successfully.
Step 6: Enable TCP/IP protocol
Launch SQL Server Configuration Manager.
Navigate to:
SQL Server Network Configuration โ Protocols for MSSQLSERVER
Double-click the TCP/IP protocol.
Set the TCP/IP status to Enabled. If it is disabled, right-click TCP/IP and select Enable.
Step 7: Restart SQL Server
Since we modified the network configuration, restart the SQL Server service to apply the changes.
Navigate to: SQL Server Services โ SQL Server (MSSQLSERVER)
Right-click the service and select Restart.
Technical Note: Enabling TCP/IP allows applications to communicate with SQL Server over the TCP network protocol. For this local lab, the application will connect using the loopback address
127.0.0.1.
Our SQL Server database engine is now configured.
2. SQL Server Management Studio (SSMS) Configuration
Step 1: Download and install SSMS
Download SQL Server Management Studio using the link provided above.
During the installation process, select Download all and then install if this option is presented.
After downloading and installing SSMS, launch the application.
You do not need to sign in with a Microsoft account for this lab. Skip the sign-in process.
Step 2: Connect to the local SQL Server instance
Since SQL Server is already installed locally, connect to the local database instance.
Follow these steps:
- Click the Browse option in the Server Name field, if available.
- Select the locally configured SQL Server instance.
- Open the connection's encryption settings and enable Trust server certificate.
- Click Connect.
SSMS should now establish a connection with your local SQL Server instance.
Step 3: Create a new database
In Object Explorer, locate the Databases folder. Right-click Databases and select New Database.
Set the database name to: DVTA. Click OK.
Your new database has been created successfully and should now appear under the Databases folder.
Step 4: Create the users table
Download and extract the DVTA project from GitHub.
Open the README.md file available in the extracted project directory.
The README contains the SQL queries required to configure the database tables.
The following SQL queries are used to create and populate the database.
First, select the DVTA database:
Execute the following query to create the users table:
CREATE TABLE dbo.users (
id INT IDENTITY(0,1) NOT NULL,
username VARCHAR(100) NOT NULL,
password VARCHAR(100) NOT NULL,
email VARCHAR(100) NULL DEFAULT NULL,
isadmin INT NULL DEFAULT 0,
PRIMARY KEY (id)
);CREATE TABLE dbo.users (
id INT IDENTITY(0,1) NOT NULL,
username VARCHAR(100) NOT NULL,
password VARCHAR(100) NOT NULL,
email VARCHAR(100) NULL DEFAULT NULL,
isadmin INT NULL DEFAULT 0,
PRIMARY KEY (id)
);
Technical Note:
IDENTITY(0,1)automatically generates the ID values, starting from 0 and incrementing by 1 for each new record.
Step 5: Insert user records
Execute the following query to insert user information into the users table.
I have modified the default sample records according to my convenience to use the following credentials for easier lab testing.
INSERT INTO dbo.users (username, password, email, isadmin)
VALUES
('admin', 'admin123', 'admin@gmail.com', 1),
('sandeep', 'sandeep', 'sandeep@gmail.com', 0),
('shubham', 'shubham', 'shubham@gmail.com', 0);INSERT INTO dbo.users (username, password, email, isadmin)
VALUES
('admin', 'admin123', 'admin@gmail.com', 1),
('sandeep', 'sandeep', 'sandeep@gmail.com', 0),
('shubham', 'shubham', 'shubham@gmail.com', 0);
The user records have now been inserted into the users table.
Step 6: Verify inserted user records
To verify the inserted records:
- Expand the Tables folder.
- Right-click
dbo.users. - Select Select Top 1000 Rows.
The output window should display the user records.
Step 7: Create the expenses table
Execute the following SQL query to create another table named expenses.
CREATE TABLE dbo.expenses (
id INT IDENTITY(0,1) NOT NULL,
email VARCHAR(100) NOT NULL,
item VARCHAR(100) NOT NULL,
price VARCHAR(100) NOT NULL,
date VARCHAR(100) NOT NULL,
time VARCHAR(100) NULL DEFAULT NULL,
PRIMARY KEY (id)
);CREATE TABLE dbo.expenses (
id INT IDENTITY(0,1) NOT NULL,
email VARCHAR(100) NOT NULL,
item VARCHAR(100) NOT NULL,
price VARCHAR(100) NOT NULL,
date VARCHAR(100) NOT NULL,
time VARCHAR(100) NULL DEFAULT NULL,
PRIMARY KEY (id)
);
After executing the query, refresh the Tables folder.
You should now see the newly created expenses table.
Note:_ The column data types are retained according to the lab's original database structure to maintain application compatibility._
The DVTA database configuration is now complete.
3. FTP Server Configuration
Step 1: Install FileZilla Server
Download FileZilla Server using the link provided in the Downloadable Links section.
Install the application using the default installation settings.
Step 2: Configure FTP credentials
Configure the FTP server credentials according to the DVTA application's configuration.
Set the FTP administrator password to: p@ssw0rd
This password is required because the corresponding FTP password is configured in the lab application's source code.
This is the FTP logic implemented in the DVTA source code.
Complete the remaining configuration steps and ensure that the FileZilla Server service is running.
Technical Note: The FTP server must be accessible from the DVTA application. Since both are running on the same machine, the loopback address
127.0.0.1can be used.
Ensure that the FTP user and shared-directory permissions are configured according to the application's requirements.
4. DVTA Application Configuration
Step 1: Locate the DVTA executable
Navigate to the extracted DVTA project directory.
Locate the executable using the following path:
<YourExtractedPath>/dvta-master/data-master/DVTA/bin/Release
You should find the DVTA.exe application in this directory.
Before launching the application, we need to modify its configuration to enable the server configuration option. If not then it will give this kind of error and Configure button also disable.
During the lab setup, you may encounter the following SQL-related error.
This error occurs because the DVTA application is unable to establish a connection with the SQL Server database.
The original database IP address configured by the developer may differ from your local database configuration. Since we have installed SQL Server on our local machine, we need to update the database server address in the application configuration file.
5. Troubleshooting SQL Server Connection Errors
5.1 Hard step (make changes via DNSpy)
This step followed in all Youtube videos and Other Medium blogs.
Step 1: Download and launch dnSpy
Download dnSpy using the link provided in the Downloadable Links section.
Extract the downloaded ZIP archive and launch dnSpy.exe.
Step 2: Load the DVTA executable
Press Ctrl + O to open a new file.
Browse to the location of DVTA.exe and open it.
dnSpy will load the .NET assembly and display its decompiled structure.
Step 3: Locate the server configuration method
DVTA(1.0.0.0) > DVTA.exe > DVTA > LoginDVTA(1.0.0.0) > DVTA.exe > DVTA > LoginNavigate to the this.configserver.Enabled method.
Locate the Boolean condition that controls the server configuration functionality.
The relevant condition is initially set to false.
Right-click the relevant method and select Edit IL Instructions.
Step 4: Modify the IL instruction
After switching from C# to IL, you will see the Boolean value false in the IL code.
Right-click on the relevant instruction and select Edit IL Instructions.
Under the DVTA.login::configserver method, locate the instruction ldc.i4.0. Click on it to display the available instructions and replace it with ldc.i4.1.
Once the modification is complete, switch back from IL to C#.
Step 5: Verify the modification
After modifying the IL instruction, return to the decompiled C# view.
The relevant configuration property should now appear as:
this.configserver.Enabled = true;this.configserver.Enabled = true;
This confirms that the server configuration option has been enabled.
Save the modified assembly.
Technical Note: dnSpy allows inspection and modification of .NET assemblies, including their Intermediate Language (IL) instructions. Changing the relevant IL instruction modifies the application's existing logic.
Step 6: Configure the server address
Since SQL Server and FileZilla Server are configured locally on the same machine, use the following IP address in the DVTA server configuration:
Server IP: 127.0.0.1
Save or apply the server configuration.
5.2 Troubleshooting SQL Server Connection Errors (Easy way)
Double-click on DVTA.exe.config to open the application configuration file.
Locate the following configuration entry:
<add key="DBSERVER" value="192.168.1.103/SQLEXPRESS" /> .... for SQL server
----
----
----
<add key="FTPSERVER" value="192.168.1.103" /> .........for FTP server<add key="DBSERVER" value="192.168.1.103/SQLEXPRESS" /> .... for SQL server
----
----
----
<add key="FTPSERVER" value="192.168.1.103" /> .........for FTP server
Here, the configured database server IP and FTP server IP is 192.168.1.103.
Since our SQL Server and FTP server is running locally, replace this IP address with the loopback IP address 127.0.0.1.
The updated configuration should look like this:
<add key="DBSERVER" value="127.0.0.1/SQLEXPRESS" /> .... for SQL server
----
----
----
<add key="FTPSERVER" value="127.0.0.1" /> .........for FTP server<add key="DBSERVER" value="127.0.0.1/SQLEXPRESS" /> .... for SQL server
----
----
----
<add key="FTPSERVER" value="127.0.0.1" /> .........for FTP server
Save the configuration file and launch the DVTA application again.
The application can now communicate with the FTP server successfully, but the SQL Server connection is still not established.
6. Update SQL Server Instance Name in DVTA.exe.config
Therefore, we need to verify and update the SQL Server Instance name.
So in this case, there will be 2 Scenario occurred.
Scenario 1: SQL Server Instance Name Is NULL
In the previous configuration, you may notice that /SQLEXPRESS is appended to the database IP address.
We need to verify whether our SQL Server instance actually uses this name.
During SQL Server installation, we selected Default Instance, which uses the instance name MSSQLSERVER.
However, the default instance name is not displayed in SSMS as a named instance.
You can also verify the instance name by executing the following SQL query in SSMS:
SELECT
@@SERVERNAME AS ServerName,
SERVERPROPERTY('MachineName') AS MachineName,
SERVERPROPERTY('InstanceName') AS InstanceName,
ORIGINAL_LOGIN() AS LoginName,
DB_NAME() AS DatabaseName;SELECT
@@SERVERNAME AS ServerName,
SERVERPROPERTY('MachineName') AS MachineName,
SERVERPROPERTY('InstanceName') AS InstanceName,
ORIGINAL_LOGIN() AS LoginName,
DB_NAME() AS DatabaseName;
In my case, the InstanceName value is NULL.
Therefore, remove /SQLEXPRESS from the DVTA.exe.config file.
The updated configuration should look like this:
<add key="DBSERVER" value="127.0.0.1" /><add key="DBSERVER" value="127.0.0.1" />
Save the changes and relaunch DVTA.
Scenario 2: SQL Server Instance Name Is Configured
In this scenario, SSMS shows the SQL Server instance name as SQLEXPRESS.
If your SQL Server is configured as a named instance, include the instance name after the loopback IP address.
For example:
<add key="DBSERVER" value="127.0.0.1\SQLEXPRESS" /><add key="DBSERVER" value="127.0.0.1\SQLEXPRESS" />Save the configuration file and relaunch the DVTA application.
Technical Note: A default SQL Server instance (
MSSQLSERVER) does not require an instance name in the connection string, whereas a named instance (such asSQLEXPRESS) requires the instance name to be specified.
Successfully login as a user Sandeep
Finally, the DVTA lab is up and running!
โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ
What started as a simple lab setup turned into multiple installation attempts, SQL Server connection errors, configuration changes, and quite a bit of troubleshooting. But that's part of the learning process.
Setting up the environment is just the first step. The real learning begins when we start exploring how thick client applications work, how they communicate with backend services, where they store sensitive information, and how their security can be tested.
If you're also starting your journey in Thick Client VAPT, I hope this guide saves you some time and helps you avoid the installation issues I faced.
Now that the lab is ready, it's time to break things (ethically)!
Happy Learning and Happy Hacking!