Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Decompile Code


  • Please log in to reply
3 replies to this topic

#1 xmen

xmen

    Advanced Member

  • Members
  • PipPipPip
  • 72 posts

Posted 18 January 2015 - 12:04 PM

Is there any way to recover code from netduino 2 and decompile it ?



#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 19 January 2015 - 02:37 AM

Hi xmen,

If you have the original DLLs, you can use Red Gate Reflector or similar to "decompile" the IL code.

The special version of IL code that NETMF uses is compressed, and there are no off-the-shelf tools which can "decompile" (or disassemble) it. Given a few weekends (or a few weeks) one could probably create an in-reverse version of MetaDataProcessor (especially the C# Xamarin version) which turned PE files into DLLs...which you could then "decompile".

That said...if you obfuscated your IL at any point...that would make it harder (or near-impossible) to get back original source.

Does that help?

Chris

#3 xmen

xmen

    Advanced Member

  • Members
  • PipPipPip
  • 72 posts

Posted 19 January 2015 - 02:55 AM

So if I deploy my app on netduino I can not get it back from it ? And how do I obfuscate the .net framework app that going in netduino ?

 

Thank you :)



#4 Nevyn

Nevyn

    Advanced Member

  • Members
  • PipPipPip
  • 1072 posts
  • LocationNorth Yorkshire, UK

Posted 19 January 2015 - 12:50 PM

If you have the original DLLs, you can use Red Gate Reflector or similar to "decompile" the IL code.

 

I switched to ILSpy when Red Gate started to charge for Reflector.

 

Regards,

Mark


To be or not to be = 0xFF

 

Blogging about Netduino, .NET, STM8S and STM32 and generally waffling on about life

Follow @nevynuk on Twitter





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.