![]() |
![]() |
![]() |
![]() |
![]() |
||||||||||
|
||||||||||||||
![]() |
#1
|
|||
|
|||
![]() Hi all, I'm dealing with this function:
http://cablemodem.fibertel.com.ar/marton79/func.txt It is called like this: Code:
private void btnOK_Click(object sender, EventArgs e) { ClientSessionManager.Instance.SaveAndSetServerInfos(this.serverInfos); if (ActivationHandler.Activator.GetStrongestEdition(new Product(Product.ProductTypes.prApplication)) == null) { MessageBox.Show(this, ApplicationResourceManager.Instance.GetString("Project.ActivationForm.NeedActivtion.Text"), ApplicationResourceManager.Instance.GetString("Project.ActivationForm.NeedActivtion.Caption"), MessageBoxButtons.OK, MessageBoxIcon.Asterisk); } base.Close(); } I spent many hours trying to figure this out but it is beyond my knowledge. I could make a donation to anyone who could help me achieve the goal ![]() TIA |
#2
|
|||
|
|||
![]() Donations not allowed here, unless to charity.
It sounds like the program has verification in the form of CRC or hashing of some kind. Disassemble near the start of the program and you should find it. It may help to run a crypto/hash detector on the exe. Git |
#3
|
|||
|
|||
![]() Sure you can do it, you just need to be extremely careful when patching your program. The crashes you see most likely come from .NET framework detecting invalid IL code or type.
The proper code should look like this: Code:
edition = new Edition(Edition.EditionTypes.edApplicationServerStandard); // or whatever edition you like return edition; I'd use hex editor/CFF for patching and ILDASM/PEVERIFY to verify that I didn't mess up. Last edited by kao : 01-19-2012 at 04:53 PM. Reason: added suggested tools. |
#4
|
|||
|
|||
![]() Thanks for the tips!
I'll try manually coding it with the hex editor and try to get it as kao suggests. Is it OK to fill the rest of the function with nops till the end, or something else is required? Will post the results ![]() Thanks again! |
#5
|
|||
|
|||
![]() Quote:
DNR |
#6
|
|||
|
|||
![]() I think it's very easy to edit methods with CFF explorer. You can go to the methods table and highlight instructions, right click -> nop. You can also edit branches this way.
|