Finally the main limitation of the anti hacking techniques it that they can't never control the name of the function that execute in first. So it's always possible to execute code before any protections.
What was your solution Frequency Domain ?
Did you think that the testsuite was perfect ?
simplifying Jean-Marie's hack
Borrowed from Alfonso ... (diabolic solution ;-)).
and while we are at it, let's throw in a perfect score...
this is a more sophisticated hack that bypasses whatever security measures you might include in the testsuite (it even bypasses cody's function blocking scheme). Please do not repost or use elsewhere (we don't need this in the wild, get_me v4 seems like a good forum for hacking tricks)
You opened the pandora box! This destroyed my hope on a cody anti-hacking framework... :'( This solutions means two things: 1 - Mathworks guys will have a hard-time shielding cody (if they dare to); 2 - Matlab is such a beautiful highly-customizable piece of software!
thanks, and I agree with both your points :) but please don't give up, this series has been fun!. In any way, my two cents, I believe if you avoid 'assert' (e.g. instead of 'assert(condition)' use something like 'if ~condition, 1/[1 1]; end') you should be able to lock down any evaluation code pretty safely (just need to avoid using functions that may be overloaded by the user routines, and be careful against 'evalin' attacks... hacking attempts would then need to target the Cody code instead of your evaluation code).
A collegue just told me about a DSP challenge on you tube. Level one its just too lame, so here is the link to the second level: https://www.youtube.com/watch?v=0lbgepTiIaU
Calculate the area of a triangle between three points
We love vectorized solutions. Problem 1 : remove the row average.
Given area find sides
02 - Vector Variables 5
07 - Common functions and indexing 2
Get me! v3
Get me! v2
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office