tags:

views:

183

answers:

1

How is it possible to only use ()[]+! to make javascript code?

Ex: http://discogscounter.getfreehosting.co.uk/js-noalnum.php

+10  A: 

See Java/script: no alnum cheat sheets.

In short, various constructs yield NaN/undefined/window/etc. Stringify and index them to yield any string. Extract a property and call it to execute code.

ephemient
And how does `+[]` yield 3?
0xA3
It doesn't, it yields 0 (in 3 characters). To get 3, use `3=true+true+true=!0+!0+!0=!+[]+!+[]+!+[]`.
ephemient