4

In the Maxsea.SmartDesktop.dll, I want to edit and modify class b1g.

There is this in :

if (isCrackedResult != null && isCrackedResult.IsCracked)

and I want to modify for this :

if (isCrackedResult == null && !isCrackedResult.IsCracked)

I've try to save b1g.cs, edit with Notepad++ and modify but i don't arrive to inject the new one ...

Someone can help me ?

Thanks

13
  • Typically you shouldn't face this problem... Are you missing anything? Reflexil should let you manipulate the code instantly. Sep 25, 2017 at 9:16
  • ... I don't know ... If you want to see or to test you can DL this expirebox.com/download/acc551e93e79ef558482e4f2e03204d5.html It's a screenshot to ILSpy and the .dll
    – GeGaX
    Sep 25, 2017 at 9:26
  • you should not save the .cs file but rather the whole assmelby Sep 25, 2017 at 9:38
  • I can also propose you this. Download Visual Studio Community 2017 and dotpeek. Dotpeek can directly import any .net exe in a new visual studio project, and it does it pretty good. Plus, you can have ano of the best coding suites for anything else.. Sep 25, 2017 at 10:41
  • It's too complicated for me ... I do not have much knowledge in the field ...
    – GeGaX
    Sep 25, 2017 at 14:28

2 Answers 2

5

Try using dnSpy. It includes an ability to inject the recompiled code, and has the same interface as ILSpy. Use "Edit Method" option on the method you're editing, then "Build" and save the assembly. You won't need Reflexil then.

2
  • I downloaded it and i tried to modify the file ... but it doesn't work ... :'( I've a lot of errors ... I don't understand why ...
    – GeGaX
    Oct 4, 2017 at 19:36
  • I just use dnSpy for windows 2012 is there alteranate solution for working with windows server 2008. Nov 30, 2019 at 11:16
0

I'm not sure about straight code editing - sometimes it can't be recompiled correctly due to either obfuscation or bad references, etc. You have to edit the IL instead (lookup the Common Intermediate Language and learn about it). I would suggest, instead of doing != null and !cracked, just do if(false).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.