News for hackers. Stuff that matters.
Re:Show HN: Untrusted, a JavaScript adventure game you play ... by gizmo686 on Monday April 07, 2014 @04:30PM (#7549258)
Aww, I thought that was to easy. That trick works for basically any level.

Also, is there a good way to completly prevent tampering with functions, or is this just going to be an arms race?

Re:Show HN: Untrusted, a JavaScript adventure game you play ... by TeMPOraL on Monday April 07, 2014 @06:28PM (#7550051)
> Also, is there a good way to completly prevent tampering with functions, or is this just going to be an arms race?

Let's hope for an arms race - it will be far more fun and educating at the same time.

Re:Show HN: Untrusted, a JavaScript adventure game you play ... by skrebbel on Tuesday April 08, 2014 @01:44AM (#7551614)
hmm a multi player javascript API tampering arms race game would be pretty awesome too.
Re:Show HN: Untrusted, a JavaScript adventure game you play ... by demallien on Monday April 07, 2014 @05:36PM (#7549697)
Object.defineProperty with 'writable' = false?
Re:Show HN: Untrusted, a JavaScript adventure game you play ... by yuchi on Monday April 07, 2014 @05:59PM (#7549857)
Object.freeze?
Re:Show HN: Untrusted, a JavaScript adventure game you play ... by alnis on Monday April 07, 2014 @09:23PM (#7550871)
I just added a feature to the game that watches certain functions and compares them to what they were at the start of the game (during the level validation phase). I'm sure this can still be gamed though.
Re:Show HN: Untrusted, a JavaScript adventure game you play ... by lawl on Monday April 07, 2014 @04:46PM (#7549355)
Don't use the functions from the map object, but keep a separate function reference for validation?

I mean if you want to cheat you always can. But that's not the point. Right now you can cheat using official apis.

Just use map._blah() for internal use

By the way: Same trick works for keys.