String key = “J8gLXc454o5tW2HEF7HahcXPufj9v8k8” Private void decrypt(object sender, EventArgs e) Let us create a new application in C# using Visual Studio and decrypt the password using the information available. In PART-1 of this series, we observed a configuration file inside DVTA directory, where we found encrypted database password, AES Key, and IV as shown in the figure below.ĪES KEY: J8gLXc454o5tW2HEF7HahcXPufj9v8k8 This logic is useful to write a new application that can decrypt the Database password in the same way as DVTA is decrypting it. If you closely observe the above piece of code, there is a function called decryptPassword() inside which, the encrypted database password is being decrypted. This will produce the code from DBAccessClass.cs file as shown in the figure below. Load DBAccess.dll and then choose DBAccessClass as shown in the figure below. So, let us decompile DBAccess.dll using the same steps we used with DVTA.exe. IN DVTA, most of the database related code is written in DBAccess.dll. If we click on any of the files shown under DVTA, dotPeek shows the decompiled code automatically as shown in the following figure. This will load DVTA.exe into Assembly Explorer as shown in the following figure. This looks as shown in the figure below.Ĭhoose DVTA.exe file from DVTA application as shown in the figure below.
Let us load individual files by navigating to File | Open. dotPeek supports individual files as well as complete folders with. Let us proceed to decompile DVTA application and explore if there is anything of our interest. You may explore its features from the following URL if you are interested. dotPeek has various other features apart from what we need in this article. NET assemblies into its equivalent c# source code. It should look as shown in the figure below.ĭotPeek comes handy when you need to decompile the. dotPeek can be downloaded from the following URL. We are going to use dotPeek in this article. There are multiple tools available for decompiling.