Problem 1752. Get me! v4 (Cody hacking challenge)
Solution Stats
Problem Comments
-
3 Comments
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 ?
Is this on purpose that the test case got split in 2 broken test cases because of the '%%' escaping char in the sprintf( )?
Solution Comments
-
1 Comment
simplifying Jean-Marie's hack
-
1 Comment
Borrowed from Alfonso ... (diabolic solution ;-)).
-
1 Comment
and while we are at it, let's throw in a perfect score...
-
1 Comment
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)
-
3 Comments
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
Problem Recent Solvers17
Suggested Problems
-
375 Solvers
-
6219 Solvers
-
342 Solvers
-
438 Solvers
-
Sum of odd numbers in a matrix
448 Solvers
More from this Author6
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!