MarkdownPad 2 Free - Limitations |
Declaimer:
I am not responsible for the misuse of the material you are about to see.
This article is only for educational purposes.
Hands on...
Tools needed:
- .NET Decompiler (Reflector.NET, ILSpy);
- IDA;
- Hex editor (anyone).
Open MarkdownPad.exe with the decompiler, look around just to have some understanding about the application. Open the License Engine, partially the "VerifyLicense" method which looks like this...
As you can see, in the very first verification if the license key or the email are empty or null our license is invalid, which is our the case. So, the strategy is very simple, we will modify the "return false;" to "return true;", easy, one byte patch.
Let's open MardownPad with IDA and locate the hexadecimal sequence to the our "return false;".
To easily locate the "VerifyLicense" method just focus the "Function Window" and press ALT-T. After you locate the method, let's take a look to the mnemonics...
A very nice list of CIL instructions.
So the idea is really simple, just change the byte 0x16 to 0x17. Switch to the hex editor in the "ldc.i4.0"...
So the idea is really simple, just change the byte 0x16 to 0x17. Switch to the hex editor in the "ldc.i4.0"...
Search for the selected pattern "16 2A 02 02 ..." in the hex editor...
Now, just change the 0x16 to 0x17 (which means "ldc.i4.1") and save the file. To verify the modification open again the MarkdownPad executable with your .NET decompiler and you should see something like this in the "VerifyLicense" method...
All done! :)
Support the developers, if you want MarkdownPad 2 Pro, just go to this page (it's only 15$).
11 comments:
Where do you get the IDA program that you mentioned in the post?
IDA Pro can be found here
https://www.hex-rays.com/products/ida/
This actually works! :-)
@Mario M: Just grab a pirated IDA version, you're pirating this anyway.
If you load the app as native you will only have a very simple entry point that starts the .NET interpreter. That's why you only see one function.
I tried this, and get a "An unexpected error has occurred. Object reference not set to an instance of an object. If the problem persists, please report the bug." .. Using version 2.4.4.40074 of MarkdownPad2 ... any suggestions?
using v2.5
But its not working, giving error:
"An unexpected error has occurred. Object reference not set to an instance of an object. If the problem persists, please report the bug."
Though ILSpy is showing "return true"
web lol
as Sam9 pointed out this fix is giving an error whenever the program checks for the license
You should do a crack for this! instead of doing manually
Nice but i have a key contact me at twitter i'll give you
@dogeblossom
I'm also getting what everyone else is getting.
"An unexpected error has occurred. Object reference not set to an instance of an object. If the problem persists, please report the bug"
This simply does not work. Thanks anyway.
Thanks for the tutorial but it's easier to use DnSpy and modify the C# code directly. The executable is not packed or protected so it's simple to just modify the author's code. To all those who receive the error when using this tutorial, it's okay -- it's still works it's just experiencing an error during the license validation. Check the professional features, you'll notice they work even though the error is appearing. To get rid of the error, you'll need to modify the license validation code as well.
Post a Comment