Re:JSFuck – Write any JavaScript with 6 Characters: []()!+
by frozenport on Friday September 13, 2013 @02:50PM
(#6382365)
I am worried about the file size.
[ Parent
| on HN ]
Re:JSFuck – Write any JavaScript with 6 Characters: []()!+
by IgorPartola on Friday September 13, 2013 @03:20PM
(#6382533)
Don't worry about it? :)
Realistically, how big is your exploit? 30KB? So it'll be 30*7 = 210 KB (JS is actually 7 bit ASCII). That's plenty of code to do something malicious. Nothing is preventing you from minifying the code before converting it to this whitespace encoding.
I suppose you could make your encoding include other whitespace chars, like newlines, carriage returns, etc. Then you could use base 4 instead of base 2.