Page 1 of 1

Code Protection

Posted: Wed May 30, 2018 10:25 am
by oldn64
Hello All,

I have a client I have just thrown together a quick application for there dispatch area. (scans picking slips, picked items and connotes placing the results and processes into sql database for later reporting)

As this is the first time I have done .net applications I have found it is very easy to get the original code back. To protect my IP i think I should obfuscate my code but have no ideas on what I should do.

What does everyone else do or is this a case of you dont bother? I am concerned that they will use the knowledge I have from barcoding technologies and scanning engines to release this to the previous supplier who could not get this working (read sent a cheap programming request overseas)

cheers
oldn64

Re: Code Protection

Posted: Thu May 31, 2018 4:26 pm
by antus
I found confuser to be free and reasonable. Anything can be undone with enough time but you can make it harder. At least with the debug infos stripped its harder to figure out. If you do hard core binary protection with VMs and the like you can make it pretty damn secure but then virus scanners will start alerting with their heuristics engines as they cant validate the code is not malware. Again confuser on moderate settings seems to be a nice balance. ConfuserEX is slightly more updated. I have not used it. https://github.com/yck1509/ConfuserEx

Re: Code Protection

Posted: Fri Jun 01, 2018 9:52 am
by Tazzi
Anything that is free on the web is basically a one clip deobfuscate kinda deal.

A couple of he commercial items out do not fall into that category, some places other services to remove it, or sometimes theres even walkthrough guides to step someone through how to defeat it.

My suggestion.... make your own system. This does mean alot of work/time and effort to go into something for a 'quick application'.

Re: Code Protection

Posted: Fri Jun 01, 2018 12:53 pm
by oldn64
Tazzi wrote:My suggestion.... make your own system. This does mean alot of work/time and effort to go into something for a 'quick application'.
Yes Tazzi,

I understand this 100%. but that is the thing, how much do I value my IP. while I have never written a obfuscator before, plus I am not sure my coding skills are at that level, I am a hobbyist at best it is just that the client presented me an issue and after 4 days I had 1200 lines of code and a solution.

Wish I could trust people in this day and age. But we all know how many people wanted the aapl application with no regards to legal ramifications, in fact 99% of them wanted it for illegal practises.

cheers
oldn64

Re: Code Protection

Posted: Fri Jun 01, 2018 1:55 pm
by Tazzi
Don't have to write an obfuscator. For instance, majority of my own public applications don't actually use one of those free (Or paid) obfuscators.

Im speaking very generally here, but the people whom have the ability to break the application down to such a point that they removed all the protection Iv implemented, use it for private use. Im certainly not naive to believe no-one has done that, theres quite alot of very smart cookies out there.

Re: Code Protection

Posted: Sat Jun 02, 2018 11:25 am
by antus
confuser and confuser ex are open source and have a plugin architecture. you'd be able to start there and modify an existing module. But really, having any obfuscator will remove your function and variable names and make it harder to understand and debug. that introduces risk for anyone wishing to commercially rip off your product. the more complicated your application is the more confusing it'll be unpacked without that information included. pretty much the effect of the protection increases with the amount of work you put in to writing the application.

Re: Code Protection

Posted: Mon Jun 18, 2018 12:09 pm
by ecuunlock
Convert your code to C++ using an open source tool like AlterNative. C++ is alot harder to decompile to readable code this will protect your code far better than keeping it .net .Then pack it with a free installer like inno setup this will protect against a good 80% of anyone trying to steal your ip. Confuser is just way to easy to remove it would not be worth the time to download it