Skip to content

Instantly share code, notes, and snippets.

@christopherdebeer
Forked from aemkei/index.js
Created July 17, 2012 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christopherdebeer/3130273 to your computer and use it in GitHub Desktop.
Save christopherdebeer/3130273 to your computer and use it in GitHub Desktop.
Obfuscate JS
// RUN THIS IN JAVASCRIPT
([]+{}+[])[!!{}+![]]+([]+
{}+[])[!!{}+!![]]+(!{}+[]
)[!{}+![]]+([][{}]+[])[!{
}+![]]+(!{}+[])[![]+!!{}+
!!{}+!![]]+({}+{})[(!!{}+
!![])*(!!{}+!![])+!!{}]+(
{}-{}+[])[!!{}+![]]+([]+!
!{})[!{}+![]]+([]+!!{})[!
[]+!!{}+!!{}+!![]]+([][{}
]+[])[![]+!!{}+!![]] // !
possible characters: abcdefijlnorstuy NOI []
sample string: obfuscated
undefined = ([][{}]+[])
[object Object] = ({}+[])
false = (!{}+[])
true = ([]+!!{})
NaN = ({}-{}+[])
Infinity = (!!{}/![]+[])
0 = !{}+![]
0 = +!{}
1 = !!{}+![]
1 = +!![]
1 = +!+{}
2 = ![]+!!{}+!![]
2 = !!{}+!![]
2 = +!+[]+!!{}
3 = ![]+!!{}+!!{}+!![]
5 = (!!{}+!![])*(![]+!!{}+!![])+!!{}
o ([]+{}+[])[1]
b ([]+{}+[])[2]
f (!{}+[])[0]
u ([][{}]+[])[0]
s (!{}+[])[3]
c ({}+{})[5]
a ({}-{}+[])[1]
t ([]+!!{})[0]
e ([]+!!{})[3]
d ([][{}]+[])[2]
([]+{}+[])[!!{}+![]]+
([]+{}+[])[!!{}+!![]]+
(!{}+[])[!{}+![]]+
([][{}]+[])[!{}+![]]+
(!{}+[])[![]+!!{}+!!{}+!![]]+
({}+{})[(!!{}+!![])*(!!{}+!![])+!!{}]+
({}-{}+[])[!!{}+![]]+
([]+!!{})[!{}+![]]+
([]+!!{})[![]+!!{}+!!{}+!![]]+
([][{}]+[])[![]+!!{}+!![]]
([]+{}+[])[!!{}+![]]+([]+{}+[])[!!{}+!![]]+(!{}+[])[!{}+![]]+([][{}]+[])[!{}+![]]+(!{}+[])[![]+!!{}+!!{}+!![]]+({}+{})[(!!{}+!![])*(!!{}+!![])+!!{}]+({}-{}+[])[!!{}+![]]+([]+!!{})[!{}+![]]+([]+!!{})[![]+!!{}+!!{}+!![]]+([][{}]+[])[![]+!!{}+!![]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment