Problem 907. Now! (Anticheating version 1)
Difficult without a clue
Everything is in memory
Everything is IN MEMory
So I found a way... and I think it was tricky, bun funny! ;-)
I don't know how to use your CLUE in practice.
Is it possible to modify the code link directly in memory ?
The test code is impressive.
Congrats, you found a way... but not the one I was expecting. Someone called "game" is preventing you from passing the test suite. "game" is somehow stored in memory (see "inmem"). Try unloading it. Hope this helps
Try this one:
"Problem 1745 Get me!"
This is Solution 184498 rewritten for size.
I liked the idea of deleting game.p :)
Solution 184561 is a "smaller" implementation of this approach.
Very well done! That was the solution I was expecting.
Can you examine the test function's mtree to check for dangerous functions, or save function handles to builtins used by the test suite before calling the user code? Aside from making file i/o impossible (e.g. by fixing the sandbox filesystem permissions before calling user code), I don't see how to prevent these kinds of cheats.
Thank you for your hints! I'll see what to add to "Now! (Anticheating version 2)", I would not like to block file i/o.
Problem Recent Solvers16
Gauss Eliminate 2-by-2 example
Find Index of maximum Value and maximum Value of a vector
Convert a Cell Array into an Array
More from this Author8
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!