Exetools

Exetools (https://forum.exetools.com/index.php)
-   General Discussion (https://forum.exetools.com/forumdisplay.php?f=2)
-   -   Decompile Xsql Server Comparison (https://forum.exetools.com/showthread.php?t=19253)

ian 07-08-2019 19:59

Decompile Xsql Server Comparison
 
Hello mate,
I started to crack the SQL Server Comparison Bundle v9 program (.net).
I decompile xSQL.Licensing.v4.dll file by using justDecompile tools, then extract the code and open with Visual Studio .
Final rebuild the dll and extract new dll.
After run the program there is an error in eventViewer:

Quote:

Application: xSQL.DataCompare.SqlServer.UI.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.MissingMethodException
at k0.c()
Quote:

Faulting application name: xSQL.DataCompare.SqlServer.UI.exe, version: 9.5.2.0, time stamp: 0x5c143804
Faulting module name: KERNELBASE.dll, version: 10.0.17763.475, time stamp: 0x69a188f0
Exception code: 0xe0434352
Fault offset: 0x0000000000039129
Faulting process id: 0x2560
Faulting application start time: 0x01d535822d244178
Faulting application path: C:\Program Files (x86)\xSQL Software\Test\xSQL.DataCompare.SqlServer.UI.exe
Faulting module path: C:\Windows\System32\KERNELBASE.dll
Report Id: 322ccb70-d387-4ba9-8dc8-d92061f5ed1b
Faulting package full name:
Faulting package-relative application ID:
Does the error result due to unsigned dll or what?
Can help me to solve this error.
Thanks in advance
ian

goku 07-09-2019 09:26

try decompile xSQL.Licensing.v4.dll DNS SPY

computerline 07-09-2019 12:06

I don't think decompile and rebuild the obfuscate .net dll is a good idea :( why don't direct modify it in dnspy

NoneForce 07-09-2019 18:05

Hi,

Just de4dot the xSQL.Licensing.v4.dll and patch InTrial (16 2A) and IsProductLicensed(Boolean) (17 2A) functions.

don't get messy with decompile/compile process.

ian 07-09-2019 20:30

Hello mates,
I've worked on de4dot and then make decompile/compile process.
I have the same error.
Thanks in advance.
ian

NoneForce 07-09-2019 21:05

Quote:

Originally Posted by ian (Post 117626)
Hello mates,
I've worked on de4dot and then make decompile/compile process.
I have the same error.
Thanks in advance.
ian

As mentioned above decompile/recompile is not a proper way for obfuscated targets.
Just deobfuscate and patch a few bytes.

Code:

https://mega.nz/#!uktDCKaa!wX6yGTWx-DzMZste9XE0uykgkebjdUQeclmbgk4ufKU

yoza 07-09-2019 22:42

Quote:

Originally Posted by NoneForce (Post 117624)
Hi,

Just de4dot the xSQL.Licensing.v4.dll and patch InTrial (16 2A) and IsProductLicensed(Boolean) (17 2A) functions.

don't get messy with decompile/compile process.

Yes you right, just patch the two above function...
xSQL Sotft use this functions (on xSQL.Licensing.v4.dll) for all products.
It's protected with Dotfuscator, but its very clear, not obfuscated. So no need de4dot to decompile/deobfuscation.
I as far as I remember for some years ago... Simple, JUST PATCH on an editor, reflexil or something like that... there you go.

ian 07-10-2019 14:06

Quote:

Originally Posted by NoneForce (Post 117627)
As mentioned above decompile/recompile is not a proper way for obfuscated targets.
Just deobfuscate and patch a few bytes.

Code:

https://mega.nz/#!uktDCKaa!wX6yGTWx-DzMZste9XE0uykgkebjdUQeclmbgk4ufKU

The patch file works fine.
I regenerate the patched file using dnspy, it works fine.
Thanks all
ian


All times are GMT +8. The time now is 03:10.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX